c0ckp1t 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/DefaultConfig.mjs DELETED
@@ -1,177 +0,0 @@
1
- /**
2
- * Default Configuration for a C0ckp1t Application
3
- */
4
- // ________________________________________________________________________________
5
- // Properties
6
- // ________________________________________________________________________________
7
- // XMLHttpRequest from a different domain cannot set cookie values for their own
8
- // domain unless withCredentials is set to true before making the request.
9
- // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials
10
- const WITH_CREDENTIALS = false
11
- // Note: VueUtils requires this to be 'default'
12
- const instanceId = "default";
13
- // Used for requestion app components and files
14
- const appEndpoint = "";
15
-
16
- // ________________________________________________________________________________
17
- // GLOBAL CONSTANTS
18
- // ________________________________________________________________________________
19
- export default {
20
- isDev: true,
21
- WITH_CREDENTIALS: WITH_CREDENTIALS,
22
-
23
- // logger config
24
- defaultLogLevel: "INFO",
25
- defaultLoggerLevels: {
26
- "GlobalStore.mjs": "INFO",
27
- "VueUtils.mjs": "INFO",
28
- "Connection.mjs": "INFO",
29
- "default": "INFO",
30
- "anonymous": "INFO",
31
- "demo": "INFO"
32
- },
33
-
34
- instanceId: instanceId,
35
- type: "LOCAL",
36
- appName: "C0ckp1t App",
37
- appEndpoint: appEndpoint,
38
-
39
- // This creates the navigation tree
40
- root: {
41
- icon: "fa-house",
42
- depth: 0,
43
- endpoint: "/",
44
- isLeaf: false,
45
- isRoot: true,
46
- name: "",
47
- path: [],
48
- children: [
49
- {
50
- depth: 1,
51
- endpoint: `/${instanceId}/connections`,
52
- isLeaf: true,
53
- isRoot: false,
54
- path: ["connections"],
55
- name: "Connections",
56
- children: []
57
- },
58
- {
59
- depth: 1,
60
- endpoint: `/${instanceId}/cache`,
61
- isLeaf: true,
62
- isRoot: false,
63
- path: ["cache"],
64
- name: "Cache",
65
- children: []
66
- },
67
- {
68
- icon: "fa-network-wired",
69
- depth: 1,
70
- endpoint: `/${instanceId}/traffic`,
71
- isLeaf: true,
72
- isRoot: false,
73
- path: ["traffic"],
74
- name: "Traffic",
75
- children: []
76
- },
77
- {
78
- icon: "fa-bell",
79
- depth: 1,
80
- endpoint: `/${instanceId}/notifies`,
81
- isLeaf: true,
82
- isRoot: false,
83
- path: ["notifies"],
84
- name: "Notifies",
85
- children: []
86
- },
87
- {
88
- icon: "fa-info",
89
- depth: 1,
90
- endpoint: `/${instanceId}/docs`,
91
- isLeaf: true,
92
- isRoot: false,
93
- path: ["docs"],
94
- name: "Documentation",
95
- children: []
96
- },
97
- {
98
- icon: "fa-info",
99
- depth: 1,
100
- endpoint: `/${instanceId}/components`,
101
- isLeaf: true,
102
- isRoot: false,
103
- path: ["components"],
104
- name: "Components",
105
- children: [
106
- {
107
- icon: "fa-info",
108
- depth: 2,
109
- endpoint: `/${instanceId}/components/bootstrap`,
110
- isLeaf: true,
111
- isRoot: false,
112
- path: ["bootstrap"],
113
- name: "Bootstrap",
114
- children: []
115
- },
116
- {
117
- icon: "fa-info",
118
- depth: 2,
119
- endpoint: `/${instanceId}/components/basic`,
120
- isLeaf: true,
121
- isRoot: false,
122
- path: ["basic"],
123
- name: "Basic",
124
- children: []
125
- },
126
- {
127
- icon: "fa-info",
128
- depth: 2,
129
- endpoint: `/${instanceId}/components/advanced`,
130
- isLeaf: true,
131
- isRoot: false,
132
- path: ["advanced"],
133
- name: "Advanced",
134
- children: []
135
- },
136
- {
137
- icon: "fa-info",
138
- depth: 2,
139
- endpoint: `/${instanceId}/components/theme`,
140
- isLeaf: true,
141
- isRoot: false,
142
- path: ["theme"],
143
- name: "Theme",
144
- children: []
145
- },
146
- ]
147
- }
148
- ]
149
- },
150
-
151
- // This is used to create routes for the vue router
152
- routes: [
153
- { path: '/', name: 'root', children: [
154
- {path: '', redirect: '/default/docs/Introduction.md'},
155
- {path: `${instanceId}`, children :[
156
- {path: 'docs', redirect: `/${instanceId}/docs/Introduction.md`},
157
- {path: 'docs/:pathMatch(.*)*', location: `${appEndpoint}/core/pages/Documentation.vue`},
158
- {path: 'connections', location: `${appEndpoint}/core/pages/Connections.vue`},
159
- {path: 'connections/:id', location: `${appEndpoint}/core/pages/Connection.vue`},
160
- {path: 'cache', location: `${appEndpoint}/core/pages/Cache.vue`},
161
- {path: 'traffic', location: `${appEndpoint}/core/pages/Traffic.vue`},
162
- {path: 'notifies', location: `${appEndpoint}/core/pages/Notifies.vue`},
163
- {path: 'components', location: `${appEndpoint}/core/pages/frontend/Components.vue`, children: [
164
- {path: 'basic', location: `${appEndpoint}/core/pages/frontend/ComponentsBasic.vue`},
165
- {path: 'advanced', location: `${appEndpoint}/core/pages/frontend/ComponentsAdv.vue`},
166
- {path: 'theme', location: `${appEndpoint}/core/pages/frontend/Theme.vue`},
167
- {path: 'bootstrap', location: `${appEndpoint}/core/pages/frontend/Bootstrap.vue`},
168
- ]},
169
- ]}
170
- ] },
171
- { path: '/:pathMatch(.*)*', name: '404', location: `${appEndpoint}/core/Page404.vue` }
172
-
173
- ]
174
-
175
-
176
- } // end of Constants
177
-
@@ -1,68 +0,0 @@
1
- // ________________________________________________________________________________
2
- // Properties
3
- // ________________________________________________________________________________
4
- // XMLHttpRequest from a different domain cannot set cookie values for their own
5
- // domain unless withCredentials is set to true before making the request.
6
- // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials
7
- const WITH_CREDENTIALS = false
8
- // Note: VueUtils requires this to be 'default'
9
- const instanceId = "demo";
10
- // Used for requestion app components and files
11
- const appEndpoint = "https://cdn.jsdelivr.net/npm/c0ckp1t@latest";
12
-
13
- // ________________________________________________________________________________
14
- // GLOBAL CONSTANTS
15
- // ________________________________________________________________________________
16
- export default {
17
- isDev: true,
18
- WITH_CREDENTIALS: WITH_CREDENTIALS,
19
-
20
- instanceId: instanceId,
21
- type: "LOCAL",
22
- appName: "C0ckp1t Demo",
23
- appEndpoint: appEndpoint,
24
-
25
- // This creates the navigation tree
26
- root: {
27
- icon: "fa-house",
28
- depth: 0,
29
- endpoint: "/",
30
- isLeaf: false,
31
- isRoot: true,
32
- name: "",
33
- path: [],
34
- children: [
35
- {
36
- depth: 1,
37
- endpoint: `/${instanceId}/homepage`,
38
- isLeaf: true,
39
- isRoot: false,
40
- path: ["homepage"],
41
- name: "homepage",
42
- children: []
43
- },
44
- {
45
- depth: 1,
46
- endpoint: `/${instanceId}/docs`,
47
- isLeaf: true,
48
- isRoot: false,
49
- path: ["docs"],
50
- name: "docs",
51
- children: []
52
- }
53
- ]
54
- },
55
-
56
- // This is used to create routes for the vue router
57
- routes: [
58
- {path: instanceId, location: `${appEndpoint}/c0ckp1t-demo/main.vue`, children: [
59
- {path: '', redirect: `/${instanceId}/homepage`},
60
- {path: 'homepage', location: `${appEndpoint}/c0ckp1t-demo/pages/homepage.vue`},
61
- {path: 'docs', redirect: `/${instanceId}/docs/Introduction.md`},
62
- {path: 'docs/:pathMatch(.*)*', location: `${appEndpoint}/core/pages/Documentation.vue`},
63
- ] },
64
- ]
65
-
66
-
67
- } // end of Constants
68
-
@@ -1,3 +0,0 @@
1
-
2
- # C0ckp1t Webroot Documentation
3
-