expressa 2.0.21 → 2.0.22
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/.circleci/config.yml +21 -21
- package/.eslintrc.json +29 -29
- package/.vscode/launch.json +19 -0
- package/LICENSE +21 -21
- package/README.md +137 -137
- package/auth/index.js +76 -76
- package/auth/jwt.js +31 -31
- package/controllers/collections.js +260 -260
- package/controllers/install.js +105 -105
- package/controllers/status.js +43 -43
- package/controllers/users.js +52 -52
- package/cypress/fixtures/example.json +4 -4
- package/cypress/integration/0_install_spec.js +8 -8
- package/cypress/integration/custom_collections.js +30 -30
- package/cypress/integration/home.js +9 -9
- package/cypress/integration/settings.js +34 -34
- package/cypress/integration/users.js +61 -61
- package/cypress/plugins/index.js +17 -17
- package/cypress/support/commands.js +69 -69
- package/cypress/support/index.js +20 -20
- package/cypress/support/util.js +10 -10
- package/cypress.config.js +18 -18
- package/cypress.json +4 -4
- package/db/cached.js +44 -40
- package/db/file.js +131 -112
- package/db/memory.js +92 -79
- package/db/mongo.js +93 -86
- package/db/postgres.js +100 -93
- package/doc/authentication.md +38 -38
- package/doc/automatic-fields.md +12 -12
- package/doc/blogexample.md +16 -16
- package/doc/custom-endpoints.md +20 -20
- package/doc/database.md +23 -23
- package/doc/development.md +33 -33
- package/doc/listeners.md +103 -103
- package/doc/modules.md +8 -8
- package/doc/permissions.md +14 -14
- package/doc/relationships.md +65 -65
- package/doc/testing.md +47 -47
- package/doc/uploading-files.md +53 -53
- package/index.js +297 -297
- package/listeners.js +65 -65
- package/listeners_collection_permissions.js +29 -29
- package/listeners_users.js +96 -96
- package/listeners_validation.js +43 -43
- package/middleware/logging.js +30 -30
- package/middleware/permissions.js +41 -41
- package/modules/access_keys/access_keys.js +32 -32
- package/modules/admin/.babelrc +19 -19
- package/modules/admin/.editorconfig +14 -14
- package/modules/admin/.eslintignore +5 -5
- package/modules/admin/.eslintrc.js +197 -197
- package/modules/admin/.postcssrc.js +10 -10
- package/modules/admin/.travis.yml +5 -5
- package/modules/admin/LICENSE +21 -21
- package/modules/admin/README.md +88 -88
- package/modules/admin/build/build.js +46 -46
- package/modules/admin/build/check-versions.js +64 -64
- package/modules/admin/build/utils.js +109 -109
- package/modules/admin/build/vue-loader.conf.js +5 -5
- package/modules/admin/build/webpack.base.conf.js +112 -112
- package/modules/admin/build/webpack.dev.conf.js +95 -95
- package/modules/admin/build/webpack.prod.conf.js +112 -112
- package/modules/admin/config/dev.env.js +8 -8
- package/modules/admin/config/index.js +86 -86
- package/modules/admin/config/prod.env.js +5 -5
- package/modules/admin/dist/css/136.1055b646.css +69 -0
- package/modules/admin/dist/css/136.1055b646.css.gz +0 -0
- package/modules/admin/dist/css/{430.8c9b0482.css → 165.e83d8cfe.css} +4 -4
- package/modules/admin/dist/css/165.e83d8cfe.css.gz +0 -0
- package/modules/admin/dist/css/220.e946bda7.css.gz +0 -0
- package/modules/admin/dist/css/{197.7a90435e.css → 236.e66ce8d8.css} +4 -4
- package/modules/admin/dist/css/236.e66ce8d8.css.gz +0 -0
- package/modules/admin/dist/css/338.1fd9d57c.css.gz +0 -0
- package/modules/admin/dist/css/{566.7a90435e.css → 566.e66ce8d8.css} +4 -4
- package/modules/admin/dist/css/566.e66ce8d8.css.gz +0 -0
- package/modules/admin/dist/css/76.46fe6799.css +66 -0
- package/modules/admin/dist/css/76.46fe6799.css.gz +0 -0
- package/modules/admin/dist/css/807.f450521e.css +1 -0
- package/modules/admin/dist/css/807.f450521e.css.gz +0 -0
- package/modules/admin/dist/css/{750.4086915d.css.gz → 913.4086915d.css.gz} +0 -0
- package/modules/admin/dist/css/{app.eba5f5e2.css → app.1c3232a3.css} +25 -25
- package/modules/admin/dist/css/app.1c3232a3.css.gz +0 -0
- package/modules/admin/dist/index.html +1 -1
- package/modules/admin/dist/static/js/115.108d0dd5.js +1 -0
- package/modules/admin/dist/static/js/115.108d0dd5.js.gz +0 -0
- package/modules/admin/dist/static/js/136.1f9f4cb0.js +1 -0
- package/modules/admin/dist/static/js/136.1f9f4cb0.js.gz +0 -0
- package/modules/admin/dist/static/js/165.b3d51941.js +1 -0
- package/modules/admin/dist/static/js/165.b3d51941.js.gz +0 -0
- package/modules/admin/dist/static/js/220.02b2cd49.js +1 -0
- package/modules/admin/dist/static/js/220.02b2cd49.js.gz +0 -0
- package/modules/admin/dist/static/js/236.98c79868.js +1 -0
- package/modules/admin/dist/static/js/236.98c79868.js.gz +0 -0
- package/modules/admin/dist/static/js/338.4ba49501.js +1 -0
- package/modules/admin/dist/static/js/338.4ba49501.js.gz +0 -0
- package/modules/admin/dist/static/js/381.a05421de.js +1 -0
- package/modules/admin/dist/static/js/381.a05421de.js.gz +0 -0
- package/modules/admin/dist/static/js/412.0914ff23.js +1 -0
- package/modules/admin/dist/static/js/412.0914ff23.js.gz +0 -0
- package/modules/admin/dist/static/js/533.507df4cb.js +1 -0
- package/modules/admin/dist/static/js/533.507df4cb.js.gz +0 -0
- package/modules/admin/dist/static/js/556.d7586b89.js +1 -0
- package/modules/admin/dist/static/js/556.d7586b89.js.gz +0 -0
- package/modules/admin/dist/static/js/76.811d0e96.js +1 -0
- package/modules/admin/dist/static/js/76.811d0e96.js.gz +0 -0
- package/modules/admin/dist/static/js/807.8b7455a7.js +1 -0
- package/modules/admin/dist/static/js/807.8b7455a7.js.gz +0 -0
- package/modules/admin/dist/static/js/913.8b376386.js +1 -0
- package/modules/admin/dist/static/js/913.8b376386.js.gz +0 -0
- package/modules/admin/dist/static/js/app.834abee4.js +2 -0
- package/modules/admin/dist/static/js/{app.083328f8.js.LICENSE.txt → app.834abee4.js.LICENSE.txt} +3 -3
- package/modules/admin/dist/static/js/app.834abee4.js.LICENSE.txt.gz +0 -0
- package/modules/admin/dist/static/js/app.834abee4.js.gz +0 -0
- package/modules/admin/index.html +16 -16
- package/modules/admin/package.json +102 -101
- package/modules/admin/src/App.vue +11 -11
- package/modules/admin/src/api/login.js +26 -26
- package/modules/admin/src/api/table.js +9 -9
- package/modules/admin/src/components/Breadcrumb/index.vue +79 -79
- package/modules/admin/src/components/Hamburger/index.vue +62 -62
- package/modules/admin/src/components/JSONEditor.vue +206 -180
- package/modules/admin/src/components/SvgIcon/index.vue +43 -43
- package/modules/admin/src/icons/index.js +9 -9
- package/modules/admin/src/icons/svgo.yml +22 -22
- package/modules/admin/src/main.js +42 -42
- package/modules/admin/src/permission.js +49 -49
- package/modules/admin/src/router/index.js +200 -200
- package/modules/admin/src/store/getters.js +11 -11
- package/modules/admin/src/store/index.js +17 -17
- package/modules/admin/src/store/modules/app.js +43 -43
- package/modules/admin/src/store/modules/user.js +104 -104
- package/modules/admin/src/styles/element-ui.scss +29 -29
- package/modules/admin/src/styles/index.scss +78 -78
- package/modules/admin/src/styles/mixin.scss +27 -27
- package/modules/admin/src/styles/sidebar.scss +133 -133
- package/modules/admin/src/styles/transition.scss +46 -46
- package/modules/admin/src/styles/variables.scss +4 -4
- package/modules/admin/src/utils/auth.js +15 -15
- package/modules/admin/src/utils/index.js +74 -74
- package/modules/admin/src/utils/request.js +47 -47
- package/modules/admin/src/utils/validate.js +31 -31
- package/modules/admin/src/views/404.vue +235 -235
- package/modules/admin/src/views/Dev.vue +33 -33
- package/modules/admin/src/views/EditDocument.vue +121 -121
- package/modules/admin/src/views/Endpoints.vue +279 -279
- package/modules/admin/src/views/Home.vue +84 -84
- package/modules/admin/src/views/Install.vue +79 -79
- package/modules/admin/src/views/ListDocuments.vue +72 -72
- package/modules/admin/src/views/ListDocuments2.vue +467 -467
- package/modules/admin/src/views/ManageListeners.vue +67 -67
- package/modules/admin/src/views/ManageMiddleware.vue +43 -43
- package/modules/admin/src/views/ManagePermissions.vue +75 -75
- package/modules/admin/src/views/ViewRequest.vue +77 -77
- package/modules/admin/src/views/form/index.vue +91 -91
- package/modules/admin/src/views/layout/Layout.vue +69 -69
- package/modules/admin/src/views/layout/components/AppMain.vue +41 -41
- package/modules/admin/src/views/layout/components/Navbar.vue +97 -97
- package/modules/admin/src/views/layout/components/Sidebar/Item.vue +29 -29
- package/modules/admin/src/views/layout/components/Sidebar/Link.vue +39 -39
- package/modules/admin/src/views/layout/components/Sidebar/SidebarItem.vue +103 -103
- package/modules/admin/src/views/layout/components/Sidebar/index.vue +62 -62
- package/modules/admin/src/views/layout/components/index.js +3 -3
- package/modules/admin/src/views/layout/mixin/ResizeHandler.js +41 -41
- package/modules/admin/src/views/login/index.vue +195 -195
- package/modules/admin/src/views/tree/index.vue +77 -77
- package/modules/collections/collections.js +39 -39
- package/modules/core/core.js +197 -197
- package/modules/logging/logging.js +88 -88
- package/modules/permissions/permissions.js +106 -106
- package/package.json +59 -59
- package/scripts/expressa +12 -12
- package/scripts/run_cypress_tests.sh +35 -35
- package/scripts/run_db_tests.sh +8 -8
- package/test/0-install.js +96 -96
- package/test/collections.js +431 -431
- package/test/collections.querying.js +288 -288
- package/test/db.js +258 -258
- package/test/db.strings.js +73 -73
- package/test/db.updating.js +186 -144
- package/test/logging.js +29 -29
- package/test/test.js +93 -93
- package/test/testserver.js +30 -30
- package/test/testutils.js +136 -136
- package/test/users.js +425 -425
- package/util.js +522 -522
- package/modules/admin/dist/css/197.7a90435e.css.gz +0 -0
- package/modules/admin/dist/css/430.8c9b0482.css.gz +0 -0
- package/modules/admin/dist/css/451.c6646d20.css +0 -1
- package/modules/admin/dist/css/451.c6646d20.css.gz +0 -0
- package/modules/admin/dist/css/566.7a90435e.css.gz +0 -0
- package/modules/admin/dist/css/569.f7d5c7d5.css +0 -37
- package/modules/admin/dist/css/569.f7d5c7d5.css.gz +0 -0
- package/modules/admin/dist/css/572.74d8e965.css +0 -34
- package/modules/admin/dist/css/572.74d8e965.css.gz +0 -0
- package/modules/admin/dist/css/651.e946bda7.css.gz +0 -0
- package/modules/admin/dist/css/950.1fd9d57c.css.gz +0 -0
- package/modules/admin/dist/css/app.eba5f5e2.css.gz +0 -0
- package/modules/admin/dist/static/js/197.e511d91e.js +0 -1
- package/modules/admin/dist/static/js/197.e511d91e.js.gz +0 -0
- package/modules/admin/dist/static/js/430.b3941f30.js +0 -1
- package/modules/admin/dist/static/js/430.b3941f30.js.gz +0 -0
- package/modules/admin/dist/static/js/451.645974a8.js +0 -1
- package/modules/admin/dist/static/js/451.645974a8.js.gz +0 -0
- package/modules/admin/dist/static/js/460.962d5bc0.js +0 -1
- package/modules/admin/dist/static/js/460.962d5bc0.js.gz +0 -0
- package/modules/admin/dist/static/js/550.f27feb23.js +0 -1
- package/modules/admin/dist/static/js/550.f27feb23.js.gz +0 -0
- package/modules/admin/dist/static/js/556.1e08866a.js +0 -1
- package/modules/admin/dist/static/js/556.1e08866a.js.gz +0 -0
- package/modules/admin/dist/static/js/569.0fecfbee.js +0 -1
- package/modules/admin/dist/static/js/569.0fecfbee.js.gz +0 -0
- package/modules/admin/dist/static/js/572.13392e1d.js +0 -1
- package/modules/admin/dist/static/js/572.13392e1d.js.gz +0 -0
- package/modules/admin/dist/static/js/603.7b34a650.js +0 -1
- package/modules/admin/dist/static/js/603.7b34a650.js.gz +0 -0
- package/modules/admin/dist/static/js/651.564b24b6.js +0 -1
- package/modules/admin/dist/static/js/651.564b24b6.js.gz +0 -0
- package/modules/admin/dist/static/js/653.02ec1098.js +0 -1
- package/modules/admin/dist/static/js/653.02ec1098.js.gz +0 -0
- package/modules/admin/dist/static/js/750.50c950da.js +0 -1
- package/modules/admin/dist/static/js/750.50c950da.js.gz +0 -0
- package/modules/admin/dist/static/js/950.d4ff0a18.js +0 -1
- package/modules/admin/dist/static/js/950.d4ff0a18.js.gz +0 -0
- package/modules/admin/dist/static/js/app.083328f8.js +0 -2
- package/modules/admin/dist/static/js/app.083328f8.js.LICENSE.txt.gz +0 -0
- package/modules/admin/dist/static/js/app.083328f8.js.gz +0 -0
- /package/modules/admin/dist/css/{651.e946bda7.css → 220.e946bda7.css} +0 -0
- /package/modules/admin/dist/css/{950.1fd9d57c.css → 338.1fd9d57c.css} +0 -0
- /package/modules/admin/dist/css/{750.4086915d.css → 913.4086915d.css} +0 -0
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
// Template version: 1.2.6
|
|
3
|
-
// see http://vuejs-templates.github.io/webpack for documentation.
|
|
4
|
-
|
|
5
|
-
const path = require('path')
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
dev: {
|
|
9
|
-
// Paths
|
|
10
|
-
assetsSubDirectory: 'static',
|
|
11
|
-
assetsPublicPath: '/',
|
|
12
|
-
proxyTable: {},
|
|
13
|
-
|
|
14
|
-
// Various Dev Server settings
|
|
15
|
-
host: 'localhost', // can be overwritten by process.env.HOST
|
|
16
|
-
port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
|
17
|
-
autoOpenBrowser: true,
|
|
18
|
-
errorOverlay: true,
|
|
19
|
-
notifyOnErrors: false,
|
|
20
|
-
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
|
|
21
|
-
|
|
22
|
-
// Use Eslint Loader?
|
|
23
|
-
// If true, your code will be linted during bundling and
|
|
24
|
-
// linting errors and warnings will be shown in the console.
|
|
25
|
-
useEslint: true,
|
|
26
|
-
// If true, eslint errors and warnings will also be shown in the error overlay
|
|
27
|
-
// in the browser.
|
|
28
|
-
showEslintErrorsInOverlay: false,
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Source Maps
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
// https://webpack.js.org/configuration/devtool/#development
|
|
35
|
-
devtool: 'cheap-source-map',
|
|
36
|
-
|
|
37
|
-
// CSS Sourcemaps off by default because relative paths are "buggy"
|
|
38
|
-
// with this option, according to the CSS-Loader README
|
|
39
|
-
// (https://github.com/webpack/css-loader#sourcemaps)
|
|
40
|
-
// In our experience, they generally work as expected,
|
|
41
|
-
// just be aware of this issue when enabling this option.
|
|
42
|
-
cssSourceMap: false
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
build: {
|
|
46
|
-
// Template for index.html
|
|
47
|
-
index: path.resolve(__dirname, '../dist/index.html'),
|
|
48
|
-
|
|
49
|
-
// Paths
|
|
50
|
-
assetsRoot: path.resolve(__dirname, '../dist'),
|
|
51
|
-
assetsSubDirectory: 'static',
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* You can set by youself according to actual condition
|
|
55
|
-
* You will need to set this if you plan to deploy your site under a sub path,
|
|
56
|
-
* for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
|
|
57
|
-
* then assetsPublicPath should be set to "/bar/".
|
|
58
|
-
* In most cases please use '/' !!!
|
|
59
|
-
*/
|
|
60
|
-
assetsPublicPath: '/admin/',
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Source Maps
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
productionSourceMap: false,
|
|
67
|
-
// https://webpack.js.org/configuration/devtool/#production
|
|
68
|
-
devtool: 'source-map',
|
|
69
|
-
|
|
70
|
-
// Gzip off by default as many popular static hosts such as
|
|
71
|
-
// Surge or Netlify already gzip all static assets for you.
|
|
72
|
-
// Before setting to `true`, make sure to:
|
|
73
|
-
// npm install --save-dev compression-webpack-plugin
|
|
74
|
-
productionGzip: true,
|
|
75
|
-
productionGzipExtensions: ['json','js','js.map','css','html','svg','xml','txt'],
|
|
76
|
-
|
|
77
|
-
// Run the build command with an extra argument to
|
|
78
|
-
// View the bundle analyzer report after build finishes:
|
|
79
|
-
// `npm run build --report`
|
|
80
|
-
// Set to `true` or `false` to always turn it on or off
|
|
81
|
-
bundleAnalyzerReport: process.env.npm_config_report || false,
|
|
82
|
-
|
|
83
|
-
// `npm run build:prod --generate_report`
|
|
84
|
-
generateAnalyzerReport: process.env.npm_config_generate_report || false
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
'use strict'
|
|
2
|
+
// Template version: 1.2.6
|
|
3
|
+
// see http://vuejs-templates.github.io/webpack for documentation.
|
|
4
|
+
|
|
5
|
+
const path = require('path')
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
dev: {
|
|
9
|
+
// Paths
|
|
10
|
+
assetsSubDirectory: 'static',
|
|
11
|
+
assetsPublicPath: '/',
|
|
12
|
+
proxyTable: {},
|
|
13
|
+
|
|
14
|
+
// Various Dev Server settings
|
|
15
|
+
host: 'localhost', // can be overwritten by process.env.HOST
|
|
16
|
+
port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
|
17
|
+
autoOpenBrowser: true,
|
|
18
|
+
errorOverlay: true,
|
|
19
|
+
notifyOnErrors: false,
|
|
20
|
+
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
|
|
21
|
+
|
|
22
|
+
// Use Eslint Loader?
|
|
23
|
+
// If true, your code will be linted during bundling and
|
|
24
|
+
// linting errors and warnings will be shown in the console.
|
|
25
|
+
useEslint: true,
|
|
26
|
+
// If true, eslint errors and warnings will also be shown in the error overlay
|
|
27
|
+
// in the browser.
|
|
28
|
+
showEslintErrorsInOverlay: false,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Source Maps
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
// https://webpack.js.org/configuration/devtool/#development
|
|
35
|
+
devtool: 'cheap-source-map',
|
|
36
|
+
|
|
37
|
+
// CSS Sourcemaps off by default because relative paths are "buggy"
|
|
38
|
+
// with this option, according to the CSS-Loader README
|
|
39
|
+
// (https://github.com/webpack/css-loader#sourcemaps)
|
|
40
|
+
// In our experience, they generally work as expected,
|
|
41
|
+
// just be aware of this issue when enabling this option.
|
|
42
|
+
cssSourceMap: false
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
build: {
|
|
46
|
+
// Template for index.html
|
|
47
|
+
index: path.resolve(__dirname, '../dist/index.html'),
|
|
48
|
+
|
|
49
|
+
// Paths
|
|
50
|
+
assetsRoot: path.resolve(__dirname, '../dist'),
|
|
51
|
+
assetsSubDirectory: 'static',
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* You can set by youself according to actual condition
|
|
55
|
+
* You will need to set this if you plan to deploy your site under a sub path,
|
|
56
|
+
* for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
|
|
57
|
+
* then assetsPublicPath should be set to "/bar/".
|
|
58
|
+
* In most cases please use '/' !!!
|
|
59
|
+
*/
|
|
60
|
+
assetsPublicPath: '/admin/',
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Source Maps
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
productionSourceMap: false,
|
|
67
|
+
// https://webpack.js.org/configuration/devtool/#production
|
|
68
|
+
devtool: 'source-map',
|
|
69
|
+
|
|
70
|
+
// Gzip off by default as many popular static hosts such as
|
|
71
|
+
// Surge or Netlify already gzip all static assets for you.
|
|
72
|
+
// Before setting to `true`, make sure to:
|
|
73
|
+
// npm install --save-dev compression-webpack-plugin
|
|
74
|
+
productionGzip: true,
|
|
75
|
+
productionGzipExtensions: ['json','js','js.map','css','html','svg','xml','txt'],
|
|
76
|
+
|
|
77
|
+
// Run the build command with an extra argument to
|
|
78
|
+
// View the bundle analyzer report after build finishes:
|
|
79
|
+
// `npm run build --report`
|
|
80
|
+
// Set to `true` or `false` to always turn it on or off
|
|
81
|
+
bundleAnalyzerReport: process.env.npm_config_report || false,
|
|
82
|
+
|
|
83
|
+
// `npm run build:prod --generate_report`
|
|
84
|
+
generateAnalyzerReport: process.env.npm_config_generate_report || false
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
module.exports = {
|
|
3
|
-
NODE_ENV: '"production"',
|
|
4
|
-
BASE_API: '"/api"',
|
|
5
|
-
}
|
|
1
|
+
'use strict'
|
|
2
|
+
module.exports = {
|
|
3
|
+
NODE_ENV: '"production"',
|
|
4
|
+
BASE_API: '"/api"',
|
|
5
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
|
|
2
|
+
/* Override JSONEditor's textarea styles to make it expandable */
|
|
3
|
+
/* Use high specificity to override inline styles */
|
|
4
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id] {
|
|
5
|
+
resize: both !important;
|
|
6
|
+
min-height: 250px !important;
|
|
7
|
+
min-width: 250px !important;
|
|
8
|
+
/* Add padding to create a larger hit area for the resize handle */
|
|
9
|
+
padding-right: 20px !important;
|
|
10
|
+
padding-bottom: 20px !important;
|
|
11
|
+
}
|
|
12
|
+
/* Make the resize handle easier to grab with larger hit area and clear visibility */
|
|
13
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id]::-webkit-resizer {
|
|
14
|
+
width: 20px !important;
|
|
15
|
+
height: 20px !important;
|
|
16
|
+
/* Position it in the corner of the larger hit area */
|
|
17
|
+
margin-right: -20px !important;
|
|
18
|
+
margin-bottom: -20px !important;
|
|
19
|
+
/* Use border to create visible resize handle */
|
|
20
|
+
border-right: 2px solid #999 !important;
|
|
21
|
+
border-bottom: 2px solid #999 !important;
|
|
22
|
+
background: transparent !important;
|
|
23
|
+
}
|
|
24
|
+
/* Alternative approach - add a visible corner indicator using ::after pseudo-element */
|
|
25
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id] {
|
|
26
|
+
position: relative !important;
|
|
27
|
+
}
|
|
28
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id]::after {
|
|
29
|
+
content: "⋰⋰⋰" !important;
|
|
30
|
+
position: absolute !important;
|
|
31
|
+
bottom: 2px !important;
|
|
32
|
+
right: 2px !important;
|
|
33
|
+
font-size: 8px !important;
|
|
34
|
+
line-height: 6px !important;
|
|
35
|
+
color: #999 !important;
|
|
36
|
+
pointer-events: none !important;
|
|
37
|
+
-webkit-transform: rotate(45deg) !important;
|
|
38
|
+
transform: rotate(45deg) !important;
|
|
39
|
+
}
|
|
40
|
+
.jsoneditor-vue img {
|
|
41
|
+
border: 1px solid #ddd;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
padding: 5px;
|
|
44
|
+
width: 150px;
|
|
45
|
+
}
|
|
46
|
+
.jsoneditor-vue img:hover {
|
|
47
|
+
-webkit-box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
|
|
48
|
+
box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
|
|
49
|
+
}
|
|
50
|
+
.jsoneditor-vue button.btn {
|
|
51
|
+
font-size: 14px !important;
|
|
52
|
+
padding: 3px;
|
|
53
|
+
}
|
|
54
|
+
.jsoneditor-vue .form-control-label, label {
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
}
|
|
57
|
+
.jsoneditor-vue input[type="checkbox"] {
|
|
58
|
+
margin-right: 5px;
|
|
59
|
+
margin-top: 3px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
.comment-link {
|
|
64
|
+
margin-top: -15px;
|
|
65
|
+
}
|
|
66
|
+
.error-message {
|
|
67
|
+
color: red;
|
|
68
|
+
}
|
|
69
|
+
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
.el-table[data-v-4b9ae5da] th {
|
|
3
|
-
background-color: #343a40 !important;
|
|
4
|
-
border-color: #454d55;
|
|
2
|
+
.el-table[data-v-4b9ae5da] th {
|
|
3
|
+
background-color: #343a40 !important;
|
|
4
|
+
border-color: #454d55;
|
|
5
5
|
color: #fff;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
|
|
8
8
|
.dashboard-container[data-v-1741ffd8]{margin:30px}.dashboard-text[data-v-1741ffd8]{font-size:30px;line-height:46px}a#settings-link[data-v-1741ffd8]{color:#35a;padding-left:25px}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
|
|
2
|
+
/* Override JSONEditor's textarea styles to make it expandable */
|
|
3
|
+
/* Use high specificity to override inline styles */
|
|
4
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id] {
|
|
5
|
+
resize: both !important;
|
|
6
|
+
min-height: 250px !important;
|
|
7
|
+
min-width: 250px !important;
|
|
8
|
+
/* Add padding to create a larger hit area for the resize handle */
|
|
9
|
+
padding-right: 20px !important;
|
|
10
|
+
padding-bottom: 20px !important;
|
|
11
|
+
}
|
|
12
|
+
/* Make the resize handle easier to grab with larger hit area and clear visibility */
|
|
13
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id]::-webkit-resizer {
|
|
14
|
+
width: 20px !important;
|
|
15
|
+
height: 20px !important;
|
|
16
|
+
/* Position it in the corner of the larger hit area */
|
|
17
|
+
margin-right: -20px !important;
|
|
18
|
+
margin-bottom: -20px !important;
|
|
19
|
+
/* Use border to create visible resize handle */
|
|
20
|
+
border-right: 2px solid #999 !important;
|
|
21
|
+
border-bottom: 2px solid #999 !important;
|
|
22
|
+
background: transparent !important;
|
|
23
|
+
}
|
|
24
|
+
/* Alternative approach - add a visible corner indicator using ::after pseudo-element */
|
|
25
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id] {
|
|
26
|
+
position: relative !important;
|
|
27
|
+
}
|
|
28
|
+
.jsoneditor-vue .je-modal textarea.form-control.je-edit-json--textarea[id]::after {
|
|
29
|
+
content: "⋰⋰⋰" !important;
|
|
30
|
+
position: absolute !important;
|
|
31
|
+
bottom: 2px !important;
|
|
32
|
+
right: 2px !important;
|
|
33
|
+
font-size: 8px !important;
|
|
34
|
+
line-height: 6px !important;
|
|
35
|
+
color: #999 !important;
|
|
36
|
+
pointer-events: none !important;
|
|
37
|
+
-webkit-transform: rotate(45deg) !important;
|
|
38
|
+
transform: rotate(45deg) !important;
|
|
39
|
+
}
|
|
40
|
+
.jsoneditor-vue img {
|
|
41
|
+
border: 1px solid #ddd;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
padding: 5px;
|
|
44
|
+
width: 150px;
|
|
45
|
+
}
|
|
46
|
+
.jsoneditor-vue img:hover {
|
|
47
|
+
-webkit-box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
|
|
48
|
+
box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
|
|
49
|
+
}
|
|
50
|
+
.jsoneditor-vue button.btn {
|
|
51
|
+
font-size: 14px !important;
|
|
52
|
+
padding: 3px;
|
|
53
|
+
}
|
|
54
|
+
.jsoneditor-vue .form-control-label, label {
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
}
|
|
57
|
+
.jsoneditor-vue input[type="checkbox"] {
|
|
58
|
+
margin-right: 5px;
|
|
59
|
+
margin-top: 3px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
.error-message[data-v-300598f4] {
|
|
64
|
+
color: red;
|
|
65
|
+
}
|
|
66
|
+
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.wscn-http404-container[data-v-8a6c390c]{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-8a6c390c]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-8a6c390c]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-8a6c390c]{width:100%}.wscn-http404 .pic-404__child[data-v-8a6c390c]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-8a6c390c]{width:80px;top:17px;left:220px;opacity:0;-webkit-animation-name:cloudLeft-8a6c390c;animation-name:cloudLeft-8a6c390c;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-8a6c390c]{width:46px;top:10px;left:420px;opacity:0;-webkit-animation-name:cloudMid-8a6c390c;animation-name:cloudMid-8a6c390c;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1.2s;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-8a6c390c]{width:62px;top:100px;left:500px;opacity:0;-webkit-animation-name:cloudRight-8a6c390c;animation-name:cloudRight-8a6c390c;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes cloudLeft-8a6c390c{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}100%{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-8a6c390c{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}100%{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-8a6c390c{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}100%{top:160px;left:120px;opacity:0}}@keyframes cloudMid-8a6c390c{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}100%{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-8a6c390c{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}100%{top:200px;left:300px;opacity:0}}@keyframes cloudRight-8a6c390c{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}100%{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-8a6c390c]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-8a6c390c]{font-size:32px;font-weight:bold;line-height:40px;color:#1482f0;opacity:0;margin-bottom:20px;-webkit-animation-name:slideUp-8a6c390c;animation-name:slideUp-8a6c390c;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-8a6c390c]{font-size:20px;line-height:24px;color:#222;font-weight:bold;opacity:0;margin-bottom:10px;-webkit-animation-name:slideUp-8a6c390c;animation-name:slideUp-8a6c390c;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-8a6c390c]{font-size:13px;line-height:21px;color:gray;opacity:0;margin-bottom:30px;-webkit-animation-name:slideUp-8a6c390c;animation-name:slideUp-8a6c390c;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__return-home[data-v-8a6c390c]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;opacity:0;font-size:14px;line-height:36px;cursor:pointer;-webkit-animation-name:slideUp-8a6c390c;animation-name:slideUp-8a6c390c;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-8a6c390c{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slideUp-8a6c390c{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}
|
|
Binary file
|
|
Binary file
|
|
@@ -455,33 +455,33 @@ template {
|
|
|
455
455
|
.fade-enter-active,.fade-leave-active{-webkit-transition:opacity .28s;transition:opacity .28s}.fade-enter,.fade-leave-active{opacity:0}.fade-transform-leave-active,.fade-transform-enter-active{-webkit-transition:all .5s;transition:all .5s}.fade-transform-enter{opacity:0;-webkit-transform:translateX(-30px);transform:translateX(-30px)}.fade-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translateX(30px)}.breadcrumb-enter-active,.breadcrumb-leave-active{-webkit-transition:all .5s;transition:all .5s}.breadcrumb-enter,.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.breadcrumb-move{-webkit-transition:all .5s;transition:all .5s}.breadcrumb-leave-active{position:absolute}.el-upload input[type=file]{display:none !important}.el-upload__input{display:none}.el-dialog{-webkit-transform:none;transform:none;left:0;position:relative;margin:0 auto}.upload-container .el-upload{width:100%}.upload-container .el-upload .el-upload-dragger{width:100%;height:200px}#app .main-container{min-height:100%;-webkit-transition:margin-left .28s;transition:margin-left .28s;margin-left:180px;position:relative}#app .sidebar-container{-webkit-transition:width .28s;transition:width .28s;width:180px !important;height:100%;position:fixed;font-size:0px;top:0;bottom:0;left:0;z-index:1001;overflow:hidden}#app .sidebar-container .horizontal-collapse-transition{-webkit-transition:0s width ease-in-out,0s padding-left ease-in-out,0s padding-right ease-in-out;transition:0s width ease-in-out,0s padding-left ease-in-out,0s padding-right ease-in-out}#app .sidebar-container .el-scrollbar__bar.is-vertical{right:0px}#app .sidebar-container .scrollbar-wrapper{overflow-x:hidden !important}#app .sidebar-container .scrollbar-wrapper .el-scrollbar__view{height:100%}#app .sidebar-container .is-horizontal{display:none}#app .sidebar-container a{display:inline-block;width:100%;overflow:hidden}#app .sidebar-container .svg-icon{margin-right:16px}#app .sidebar-container .el-menu{border:none;height:100%;width:100% !important}#app .sidebar-container .is-active>.el-submenu__title{color:#f4f4f5 !important}#app .hideSidebar .sidebar-container{width:36px !important}#app .hideSidebar .main-container{margin-left:36px}#app .hideSidebar .submenu-title-noDropdown{padding-left:10px !important;position:relative}#app .hideSidebar .submenu-title-noDropdown .el-tooltip{padding:0 10px !important}#app .hideSidebar .el-submenu{overflow:hidden}#app .hideSidebar .el-submenu>.el-submenu__title{padding-left:10px !important}#app .hideSidebar .el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}#app .hideSidebar .el-menu--collapse .el-submenu>.el-submenu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title,#app .sidebar-container .el-submenu .el-menu-item{min-width:180px !important;background-color:#1f2d3d !important}#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title:hover,#app .sidebar-container .el-submenu .el-menu-item:hover{background-color:#001528 !important}#app .el-menu--collapse .el-menu .el-submenu{min-width:180px !important}#app .mobile .main-container{margin-left:0px}#app .mobile .sidebar-container{-webkit-transition:-webkit-transform .28s;transition:-webkit-transform .28s;transition:transform .28s;transition:transform .28s, -webkit-transform .28s;width:180px !important}#app .mobile.hideSidebar .sidebar-container{-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:translate3d(-180px, 0, 0);transform:translate3d(-180px, 0, 0)}#app .withoutAnimation .main-container,#app .withoutAnimation .sidebar-container{-webkit-transition:none;transition:none}.el-menu--vertical>.el-menu .svg-icon{margin-right:16px}body{height:100%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}#app{height:100%}*,*:before,*:after{-webkit-box-sizing:inherit;box-sizing:inherit}a,a:focus,a:hover{cursor:pointer;color:inherit;outline:none;text-decoration:none}div:focus{outline:none}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.app-main{min-height:100%}.app-container{padding:20px}
|
|
456
456
|
.app-breadcrumb.el-breadcrumb[data-v-7fd9bfb1]{display:inline-block;font-size:14px;line-height:50px;margin-left:10px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-7fd9bfb1]{color:#97a8be;cursor:text}
|
|
457
457
|
|
|
458
|
-
.hamburger[data-v-33bc7442] {
|
|
459
|
-
display: inline-block;
|
|
460
|
-
cursor: pointer;
|
|
461
|
-
width: 20px;
|
|
462
|
-
height: 20px;
|
|
463
|
-
-webkit-transform: rotate(90deg);
|
|
464
|
-
transform: rotate(90deg);
|
|
465
|
-
-webkit-transition: .38s;
|
|
466
|
-
transition: .38s;
|
|
467
|
-
-webkit-transform-origin: 50% 50%;
|
|
458
|
+
.hamburger[data-v-33bc7442] {
|
|
459
|
+
display: inline-block;
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
width: 20px;
|
|
462
|
+
height: 20px;
|
|
463
|
+
-webkit-transform: rotate(90deg);
|
|
464
|
+
transform: rotate(90deg);
|
|
465
|
+
-webkit-transition: .38s;
|
|
466
|
+
transition: .38s;
|
|
467
|
+
-webkit-transform-origin: 50% 50%;
|
|
468
468
|
transform-origin: 50% 50%;
|
|
469
469
|
}
|
|
470
|
-
.hamburger.is-active[data-v-33bc7442] {
|
|
471
|
-
-webkit-transform: rotate(0deg);
|
|
470
|
+
.hamburger.is-active[data-v-33bc7442] {
|
|
471
|
+
-webkit-transform: rotate(0deg);
|
|
472
472
|
transform: rotate(0deg);
|
|
473
|
-
}
|
|
473
|
+
}
|
|
474
474
|
|
|
475
475
|
.navbar2[data-v-9a22c1da]{height:50px;line-height:50px;border-radius:0px !important}.navbar2 .hamburger-container[data-v-9a22c1da]{line-height:58px;height:50px;float:left;padding:0 10px}.navbar2 .screenfull[data-v-9a22c1da]{position:absolute;right:90px;top:16px;color:red}.navbar2 .avatar-container[data-v-9a22c1da]{height:50px;display:inline-block;position:absolute;right:35px}.navbar2 .avatar-container .avatar-wrapper[data-v-9a22c1da]{cursor:pointer;margin-top:5px;position:relative;line-height:initial}.navbar2 .avatar-container .avatar-wrapper .user-avatar[data-v-9a22c1da]{width:40px;height:40px;border-radius:10px}.navbar2 .avatar-container .avatar-wrapper .el-icon-caret-bottom[data-v-9a22c1da]{position:absolute;right:-20px;top:25px;font-size:12px}
|
|
476
476
|
|
|
477
|
-
.app-main[data-v-a32d8162] {
|
|
478
|
-
/*50 = navbar */
|
|
479
|
-
min-height: calc(100vh - 50px);
|
|
480
|
-
position: relative;
|
|
477
|
+
.app-main[data-v-a32d8162] {
|
|
478
|
+
/*50 = navbar */
|
|
479
|
+
min-height: calc(100vh - 50px);
|
|
480
|
+
position: relative;
|
|
481
481
|
overflow: hidden;
|
|
482
|
-
}
|
|
482
|
+
}
|
|
483
483
|
|
|
484
|
-
.app-wrapper[data-v-36da4210]{
|
|
484
|
+
.app-wrapper[data-v-36da4210]:after{content:"";display:table;clear:both}.app-wrapper[data-v-36da4210]{position:relative;height:100%;width:100%}.app-wrapper.mobile.openSidebar[data-v-36da4210]{position:fixed;top:0}.drawer-bg[data-v-36da4210]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:999}
|
|
485
485
|
/*!
|
|
486
486
|
* Bootstrap v4.6.2 (https://getbootstrap.com/)
|
|
487
487
|
* Copyright 2011-2022 The Bootstrap Authors
|
|
@@ -513,13 +513,13 @@ template {
|
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
|
|
516
|
-
.svg-icon[data-v-09244364] {
|
|
517
|
-
width: 1em;
|
|
518
|
-
height: 1em;
|
|
519
|
-
vertical-align: -0.15em;
|
|
520
|
-
fill: currentColor;
|
|
516
|
+
.svg-icon[data-v-09244364] {
|
|
517
|
+
width: 1em;
|
|
518
|
+
height: 1em;
|
|
519
|
+
vertical-align: -0.15em;
|
|
520
|
+
fill: currentColor;
|
|
521
521
|
overflow: hidden;
|
|
522
|
-
}
|
|
522
|
+
}
|
|
523
523
|
|
|
524
524
|
/* Make clicks pass-through */
|
|
525
525
|
#nprogress {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><script crossorigin src=https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js></script><script crossorigin src=https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js></script><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel=stylesheet><script src=settings.js></script><title>Expressa Admin</title><link rel=icon href=/admin/favicon.ico><link href=/admin/css/app.
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><script crossorigin src=https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js></script><script crossorigin src=https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js></script><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel=stylesheet><script src=settings.js></script><title>Expressa Admin</title><link rel=icon href=/admin/favicon.ico><link href=/admin/css/app.1c3232a3.css rel=stylesheet></head><body><div id=app></div><script src=/admin/static/js/app.834abee4.js></script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkexpressa_admin=self.webpackChunkexpressa_admin||[]).push([[115],{1115:function(e,n,t){t.r(n),t.d(n,{default:function(){return i}});var a=t(467),r=t(4756),l=t.n(r),u=t(2521),s={name:"ManageMiddleware",data:function(){return{middleware:[],columns:["params"]}},mounted:function(){this.update()},methods:{update:function(){var e=this;return(0,a.A)(l().mark(function n(){var t;return l().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,u.A)({url:"/status"});case 1:t=n.sent.data,e.middleware=t.middleware;case 2:case"end":return n.stop()}},n)}))()}}},i=(0,t(4486).A)(s,function(){var e=this,n=e._self._c;return n("div",{staticClass:"app-container"},[n("el-table",{attrs:{data:e.middleware,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"left",label:"Middlware Name",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[e._v("\n "+e._s(n.row.name)+"\n ")]}}])}),e._l(e.columns,function(t){return n("el-table-column",{key:t,attrs:{label:t,align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[e._v("\n "+e._s(!0===n.row[t]?"✓":n.row[t])+"\n ")]}}],null,!0)})})],2)],1)},[],!1,null,null,null).exports}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkexpressa_admin=self.webpackChunkexpressa_admin||[]).push([[136],{136:function(t,e,n){n.r(e),n.d(e,{default:function(){return d}});var a,i=n(467),r=n(4756),s=n.n(r),o=n(2521),c=n(1403),u=n(2254),l={name:"CollectionTable",components:{JSONEditor:c.A},props:{collectionName:{type:String,default:""},id:{type:String,default:""}},data:function(){return{data:{},activeCollectionName:"",activeId:"",error:"",options:{mode:"text"},schema:{},ready:!1}},watch:{"$route.path":{handler:"update"}},mounted:(a=(0,i.A)(s().mark(function t(){return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.update();case 1:case"end":return t.stop()}},t,this)})),function(){return a.apply(this,arguments)}),methods:{update:function(){var t=this;return(0,i.A)(s().mark(function e(){var n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ready=!1,t.$route.params.collectionName?t.activeCollectionName=t.$route.params.collectionName:t.activeCollectionName=t.collectionName,t.$route.params.id?t.activeId=t.$route.params.id:t.activeId=t.id,e.prev=1,"create"===t.activeId){e.next=3;break}return e.next=2,(0,o.A)({url:"/".concat(t.activeCollectionName,"/").concat(t.activeId)});case 2:t.data=e.sent.data,e.next=4;break;case 3:t.data={};case 4:return e.next=5,(0,o.A)({url:"/".concat(t.activeCollectionName,"/schema")});case 5:t.schema=e.sent.data,t.ready=!0,e.next=7;break;case 6:e.prev=6,n=e.catch(1),t.error=n.error||n;case 7:case"end":return e.stop()}},e,null,[[1,6]])}))()},save:function(){var t=this;return(0,i.A)(s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("create"!==t.activeId){e.next=2;break}return e.next=1,(0,o.A)({method:"post",url:"/".concat(t.activeCollectionName),data:t.data});case 1:e.next=3;break;case 2:return e.next=3,(0,o.A)({method:"put",url:"/".concat(t.activeCollectionName,"/").concat(t.activeId),data:t.data});case 3:if("collection"!==t.activeCollectionName){e.next=5;break}return e.next=4,(0,o.A)({url:"/status/"});case 4:t.statusInfo=e.sent.data,u.A.dispatch("StatusInfo",t.statusInfo);case 5:"users"===t.activeCollectionName?t.$router.push("/users/list"):"settings"===t.collectionName?t.$router.push("/home"):t.$router.push("/list/".concat(t.activeCollectionName,"/"));case 6:case"end":return e.stop()}},e)}))()},del:function(){var t=this;return(0,i.A)(s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,o.A)({method:"delete",url:"/".concat(t.activeCollectionName,"/").concat(t.activeId)});case 1:t.$router.push("/list/".concat(t.activeCollectionName,"/"));case 2:case"end":return e.stop()}},e)}))()}}},h=l,d=(0,n(4486).A)(h,function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"container"},[e("div",{staticClass:"error-message"},[t._v("\n "+t._s(t.error)+"\n ")]),t.ready?[t.ready?e("JSONEditor",{attrs:{schema:t.schema},model:{value:t.data,callback:function(e){t.data=e},expression:"data"}}):t._e(),e("div",[e("button",{staticClass:"btn btn-primary",on:{click:t.save}},[t._v("\n Save\n ")]),e("button",{staticClass:"btn btn-danger",on:{click:t.del}},[t._v("\n Delete\n ")])])]:t._e()],2)])},[],!1,null,null,null).exports},1403:function(t,e,n){n.d(e,{A:function(){return m}});var a=n(5410),i=n(2901),r=n(388),s=n(1573),o=n(991),c=n(5361);function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function l(t,e,n,a){var i=(0,o.A)((0,s.A)(1&a?t.prototype:t),e,n);return 2&a&&"function"==typeof i?function(t){return i.apply(n,t)}:i}n(9872);var h=n(3692).JSONEditor,d={props:{value:{type:Object,default:function(){}},schema:{type:Object,default:function(){}}},data:function(){return{editor:null,error:!1,json:this.value,internalChange:!1}},watch:{},mounted:function(){this.update()},methods:{update:function(){var t=this,e={schema:this.schema,startval:this.value,theme:"bootstrap4",iconlib:"materialicons",required_by_default:!0};this.editor&&this.editor.destroy(),this.editor=new h(this.$el.querySelector(".jsoneditor-vue"),e);var n=!0;this.editor.on("change",function(){n?n=!1:t.$emit("input",t.editor.getValue())})},onSave:function(){this.$emit("json-save",this.json)}}};h&&(h.defaults.resolvers.unshift(function(t){if("object"===t.type&&"schema"===t.format)return"schema"}),h.defaults.editors.schema=function(t){function e(){return(0,a.A)(this,e),t=this,n=e,i=arguments,n=(0,s.A)(n),(0,r.A)(t,u()?Reflect.construct(n,i||[],(0,s.A)(t).constructor):n.apply(t,i));var t,n,i}return(0,c.A)(e,t),(0,i.A)(e,[{key:"setValue",value:function(t,e){this.value=t,this.schemaeditor.setValue(t),this.onChange()}},{key:"getValue",value:function(){return void 0!==this.schemaeditor?this.schemaeditor.getValue():{}}},{key:"register",value:function(){l(e,"register",this,3)([]),this.input&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){l(e,"unregister",this,3)([]),this.input&&this.input.removeAttribute("name")}},{key:"getNumColumns",value:function(){return 12}},{key:"build",value:function(){var t=this;this.options.compact||(this.label=this.header=this.theme.getFormInputLabel(this.getTitle())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.schema.description)),this.options.compact&&(this.container.className+=" compact"),this.input=document.createElement("div"),this.control=this.theme.getFormControl(this.label,this.input,this.description),(this.schema.readOnly||this.schema.readonly)&&(this.always_disabled=!0,this.input.disabled=!0),this.container.appendChild(this.control),this.schemaeditor=new window.JSONSchemaEditor(this.input,{startval:{}}),this.schemaeditor.on("change",function(){t.onChange(!0)})}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1),l(e,"enable",this,3)([])}},{key:"disable",value:function(){this.input.disabled=!0,l(e,"disable",this,3)([])}},{key:"destroy",value:function(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),l(e,"destroy",this,3)([])}}])}(h.AbstractEditor));var p=d,m=(0,n(4486).A)(p,function(){return this._self._c,this._m(0)},[function(){var t=this._self._c;return t("div",[t("div",{staticClass:"jsoneditor-vue"})])}],!1,null,null,null).exports}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkexpressa_admin=self.webpackChunkexpressa_admin||[]).push([[165,566],{1306:function(t,e,s){s.r(e),s.d(e,{default:function(){return f}});var n=s(467),r=s(4467),a=s(4756),o=s.n(a),i=s(5353),u=s(2521);function c(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,n)}return s}var d={name:"Dashboard",components:{ListDocuments2:s(6381).default},data:function(){return{statusInfo:{listeners:{}}}},computed:function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?c(Object(s),!0).forEach(function(e){(0,r.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}({},(0,i.L8)(["email","roles"])),mounted:function(){this.update()},methods:{update:function(){var t=this;return(0,n.A)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,u.A)({url:"/status/"});case 1:t.statusInfo=e.sent.data;case 2:case"end":return e.stop()}},e)}))()}}},l=d,f=(0,s(4486).A)(l,function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard-container"},[e("div",{staticClass:"dashboard-text"},[t._v("\n Welcome: "+t._s(t.email)+"\n ")]),e("div",{staticClass:"dashboard-text"},[t._v("\n roles: "),t._l(t.roles,function(s){return e("span",{key:s},[t._v(t._s(s))])})],2),e("div",{staticClass:"dashboard-text"},[t._v("\n listeners: "+t._s(t.statusInfo.listeners.length)+" active\n ")]),e("br"),e("div",{staticClass:"dashboard-text"},[t._v("\n uptime: "+t._s(t.statusInfo.uptime)+"\n ")]),e("div",{staticClass:"dashboard-text"},[t._v("\n Node.js version: "+t._s(t.statusInfo.nodeVersion)+"\n ")]),e("div",{staticClass:"dashboard-text"},[t._v("\n environment: "+t._s(t.statusInfo.env)+"\n "),e("router-link",{attrs:{id:"settings-link",to:"/edit/settings/"+t.statusInfo.env}},[t._v("\n (edit settings)\n ")])],1),e("br"),e("br"),e("h3",[t._v("Recent API Requests")]),e("ListDocuments2",{attrs:{"show-paginate-on-bottom":!1,"show-add-button":!1,filter:{limit:5,query:{method:{$ne:"OPTIONS"}}},columns:["method","url","user","res.message","res.statusCode"],"collection-name":"requestlog"}})],1)},[],!1,null,"1741ffd8",null).exports}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkexpressa_admin=self.webpackChunkexpressa_admin||[]).push([[220],{4220:function(e,n,r){r.r(n),r.d(n,{default:function(){return l}});var t=r(467),a=r(4756),o=r.n(a),i=r(2521);function s(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return u(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0,a=function(){};return{s:a,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var c={name:"ManagePermissions",data:function(){return{roles:[],data:[]}},mounted:function(){this.update()},methods:{update:function(){var e=this;return(0,t.A)(o().mark(function n(){var r,t,a,s,u;return o().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,i.A)({url:"/role/"});case 1:e.roles=n.sent.data,r=e.roles.find(function(e){return"Admin"===e._id}),t=Object.keys(r.permissions),a=["Admin","Authenticated","Anonymous"],e.roles.sort(function(e,n){var r=a.indexOf(e._id),t=a.indexOf(n._id);return r!==t?r-t:e._id.localeCompare(n._id)}),s=function(e,n){return e[n._id]=n.permissions[e.name],e},u=t.map(function(n){return e.roles.reduce(s,{name:n})}),e.data=u.sort(function(e,n){return e.name<n.name?-1:1});case 2:case"end":return n.stop()}},n)}))()},save:function(){var e=this;return(0,t.A)(o().mark(function n(){var r,t,a,u;return o().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=s(e.roles),n.prev=1,a=o().mark(function n(){var r;return o().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return(r=t.value).permissions={},e.data.forEach(function(e){e[r._id]&&(r.permissions[e.name]=1)}),n.next=1,(0,i.A)({method:"put",url:"/role/".concat(r._id),data:r});case 1:case"end":return n.stop()}},n)}),r.s();case 2:if((t=r.n()).done){n.next=4;break}return n.delegateYield(a(),"t0",3);case 3:n.next=2;break;case 4:n.next=6;break;case 5:n.prev=5,u=n.catch(1),r.e(u);case 6:return n.prev=6,r.f(),n.finish(6);case 7:case"end":return n.stop()}},n,null,[[1,5,6,7]])}))()}}},l=(0,r(4486).A)(c,function(){var e=this,n=e._self._c;return n("div",{staticClass:"app-container"},[n("el-table",{attrs:{data:e.data,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"left",label:"Permission Name",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[e._v("\n "+e._s(n.row.name)+"\n ")]}}])}),e._l(e.roles,function(r){return n("el-table-column",{key:r._id,attrs:{label:r._id,align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("input",{directives:[{name:"model",rawName:"v-model",value:t.row[r._id],expression:"scope.row[role._id]"}],attrs:{name:t.row.role,disabled:"Admin"==r._id,type:"checkbox"},domProps:{checked:Array.isArray(t.row[r._id])?e._i(t.row[r._id],null)>-1:t.row[r._id]},on:{change:[function(n){var a=t.row[r._id],o=n.target,i=!!o.checked;if(Array.isArray(a)){var s=e._i(a,null);o.checked?s<0&&e.$set(t.row,r._id,a.concat([null])):s>-1&&e.$set(t.row,r._id,a.slice(0,s).concat(a.slice(s+1)))}else e.$set(t.row,r._id,i)},e.save]}})]}}],null,!0)})})],2)],1)},[],!1,null,"27261770",null).exports}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkexpressa_admin=self.webpackChunkexpressa_admin||[]).push([[236,566],{1780:function(e){function t(e,t){var r,n;if("function"==typeof t)void 0!==(n=t(e))&&(e=n);else if(Array.isArray(t))for(r=0;r<t.length;r++)void 0!==(n=t[r](e))&&(e=n);return e}function r(e,t){return"-"===e[0]&&Array.isArray(t)&&/^-\d+$/.test(e)?t.length+parseInt(e,10):e}function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){return Object(e)===e}function i(e){return 0===Object.keys(e).length}var s=["__proto__","prototype","constructor"],o=function(e){return-1===s.indexOf(e)};function c(e,t){e.indexOf("[")>=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var r=e.split(t);if(r.filter(o).length!==r.length)throw Error("Refusing to update blacklisted property "+e);return r}var l=Object.prototype.hasOwnProperty;function u(e,t,r,n){if(!(this instanceof u))return new u(e,t,r,n);void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=r,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var p=new u(".",!1,!0,!0);function f(e){return function(){return p[e].apply(p,arguments)}}u.prototype._fill=function(e,r,n,s){var o=e.shift();if(e.length>0){if(r[o]=r[o]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!a(r[o])){if(!this.override){if(!a(n)||!i(n))throw new Error("Trying to redefine `"+o+"` which is a "+typeof r[o]);return}r[o]={}}this._fill(e,r[o],n,s)}else{if(!this.override&&a(r[o])&&!i(r[o])){if(!a(n)||!i(n))throw new Error("Trying to redefine non-empty obj['"+o+"']");return}r[o]=t(n,s)}},u.prototype.object=function(e,r){var n=this;return Object.keys(e).forEach(function(a){var i=void 0===r?null:r[a],s=c(a,n.separator).join(n.separator);-1!==s.indexOf(n.separator)?(n._fill(s.split(n.separator),e,e[a],i),delete e[a]):e[a]=t(e[a],i)}),e},u.prototype.str=function(e,r,n,a){var i=c(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,r,a):n[e]=t(r,a),n},u.prototype.pick=function(e,t,n,a){var i,s,o,l,u;for(s=c(e,this.separator),i=0;i<s.length;i++){if(l=r(s[i],t),!t||"object"!=typeof t||!(l in t))return;if(i===s.length-1)return n?(o=t[l],a&&Array.isArray(t)?t.splice(l,1):delete t[l],Array.isArray(t)&&(u=s.slice(0,-1).join("."),-1===this.cleanup.indexOf(u)&&this.cleanup.push(u)),o):t[l];t=t[l]}return n&&Array.isArray(t)&&(t=t.filter(function(e){return void 0!==e})),t},u.prototype.delete=function(e,t){return this.remove(e,t,!0)},u.prototype.remove=function(e,t,r){var n;if(this.cleanup=[],Array.isArray(e)){for(n=0;n<e.length;n++)this.pick(e[n],t,!0,r);return r||this._cleanup(t),t}return this.pick(e,t,!0,r)},u.prototype._cleanup=function(e){var t,r,n,a;if(this.cleanup.length){for(r=0;r<this.cleanup.length;r++)t=(t=(a=(n=this.cleanup[r].split(".")).splice(0,-1).join("."))?this.pick(a,e):e)[n[0]].filter(function(e){return void 0!==e}),this.set(this.cleanup[r],t,e);this.cleanup=[]}},u.prototype.del=u.prototype.remove,u.prototype.move=function(e,r,n,a,i){return"function"==typeof a||Array.isArray(a)?this.set(r,t(this.pick(e,n,!0),a),n,i):(i=a,this.set(r,this.pick(e,n,!0),n,i)),n},u.prototype.transfer=function(e,r,n,a,i,s){return"function"==typeof i||Array.isArray(i)?this.set(r,t(this.pick(e,n,!0),i),a,s):(s=i,this.set(r,this.pick(e,n,!0),a,s)),a},u.prototype.copy=function(e,r,n,a,i,s){return"function"==typeof i||Array.isArray(i)?this.set(r,t(JSON.parse(JSON.stringify(this.pick(e,n,!1))),i),a,s):(s=i,this.set(r,this.pick(e,n,!1),a,s)),a},u.prototype.set=function(e,t,r,a){var i,s,o,u;if(void 0===t)return r;for(o=c(e,this.separator),i=0;i<o.length;i++){if(u=o[i],i===o.length-1)if(a&&n(t)&&n(r[u]))for(s in t)l.call(t,s)&&(r[u][s]=t[s]);else if(a&&Array.isArray(r[u])&&Array.isArray(t))for(var p=0;p<t.length;p++)r[o[i]].push(t[p]);else r[u]=t;else l.call(r,u)&&(n(r[u])||Array.isArray(r[u]))||(/^\d+$/.test(o[i+1])?r[u]=[]:r[u]={});r=r[u]}return r},u.prototype.transform=function(e,t,r){return t=t||{},r=r||{},Object.keys(e).forEach(function(n){this.set(e[n],this.pick(n,t),r)}.bind(this)),r},u.prototype.dot=function(e,t,r){t=t||{},r=r||[];var s=Array.isArray(e);return Object.keys(e).forEach(function(o){var c=s&&this.useBrackets?"["+o+"]":o;if(a(e[o])&&(n(e[o])&&!i(e[o])||Array.isArray(e[o])&&!this.keepArray&&0!==e[o].length)){if(s&&this.useBrackets){var l=r[r.length-1]||"";return this.dot(e[o],t,r.slice(0,-1).concat(l+c))}return this.dot(e[o],t,r.concat(c))}s&&this.useBrackets?t[r.join(this.separator).concat("["+o+"]")]=e[o]:t[r.concat(c).join(this.separator)]=e[o]}.bind(this)),t},u.pick=f("pick"),u.move=f("move"),u.transfer=f("transfer"),u.transform=f("transform"),u.copy=f("copy"),u.object=f("object"),u.str=f("str"),u.set=f("set"),u.delete=f("delete"),u.del=u.remove=f("remove"),u.dot=f("dot"),["override","overwrite"].forEach(function(e){Object.defineProperty(u,e,{get:function(){return p.override},set:function(e){p.override=!!e}})}),["useArray","keepArray","useBrackets"].forEach(function(e){Object.defineProperty(u,e,{get:function(){return p[e]},set:function(t){p[e]=t}})}),u._process=t,e.exports=u},2987:function(e,t,r){r.r(t),r.d(t,{default:function(){return y}});var n=r(4506),a=r(2284),i=r(4467),s=r(467),o=r(4756),c=r.n(o),l=r(6381),u=r(2521);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var d=r(1780);d.keepArray=!0;var h={name:"Endpoints",mixins:[l.default],data:function(){return{lastEndpoint:"",apiBaseUrl:u.A.defaults.baseURL,apiSuffix:""}},methods:{update:function(){var e=this;return(0,s.A)(c().mark(function t(){var r,i,s,o,l;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(;"/"===e.apiSuffix.charAt(0);)e.apiSuffix=e.apiSuffix.substring(1);if(e.apiSuffix){t.next=1;break}return t.abrupt("return");case 1:return(r="".concat(e.apiBaseUrl,"/").concat(e.apiSuffix))!==e.lastEndpoint&&(e.lastEndpoint=r,e.resetTable()),i=f(f({page:e.page,limit:e.pageSize},e.allFilters),{},{query:void 0}),s=e.customParams?"/".concat(e.apiSuffix,"?").concat(e.customParams):"/".concat(e.apiSuffix),t.next=2,(0,u.A)({url:s,params:i,baseURL:e.apiBaseUrl});case 2:!(o=t.sent.data).page&&!o.itemsTotal&&(Array.isArray(o)||(o="object"!==(0,a.A)(o)?[{result:o}]:[o]),o={data:o,itemsTotal:1}),e.count=o.itemsTotal,e.data=e.applyCustomColumnFilter(o.data),e.selectedColumns.length||(l=Array.from(e.data.reduce(function(e,t){var r=d.dot(t);return new Set([].concat((0,n.A)(Object.keys(r)),(0,n.A)(e)))},[])),e.selectedColumns=l.slice(0,5),e.allPossibleColumns=l);case 3:case"end":return t.stop()}},t)}))()},applyCustomColumnFilter:function(e){var t=this,r=Object.keys(this.searchFilters);return e.filter(function(e){return r.every(function(r){var n=t.searchFilters[r];if(!n)return!0;var a=d.dot(e)[r].toString();return t.exactSearches[r]?a.trim()===n.trim():a.toLowerCase().includes(n.toLowerCase())})})},downloadAllCSV:function(){var e=this;return(0,s.A)(c().mark(function t(){var r,a,i,s,o;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=[],a=1;case 1:if(!(e.count>r.length)){t.next=3;break}return i=f(f({},e.allFilters),{},{page:a,limit:500,query:void 0}),s="/".concat(e.apiSuffix,"?").concat(e.customParams),t.next=2,(0,u.A)({url:s,params:i});case 2:o=t.sent.data,r=[].concat((0,n.A)(o.data),(0,n.A)(r)),a+=1,t.next=1;break;case 3:e.downloadCSV(e.applyCustomColumnFilter(r));case 4:case"end":return t.stop()}},t)}))()}}},y=(0,r(4486).A)(h,function(){var e=this,t=e._self._c;return t("div",{staticClass:"px-3"},[t("div",{staticClass:"d-flex align-items-start py-2"},[t("div",[e._v("\n Endpoint\n\n "),t("div",{staticClass:"d-flex align-items-center mb-2"},[t("el-input",{attrs:{placeholder:"key"},model:{value:e.apiBaseUrl,callback:function(t){e.apiBaseUrl=t},expression:"apiBaseUrl"}}),t("el-input",{model:{value:e.apiSuffix,callback:function(t){e.apiSuffix=t},expression:"apiSuffix"}})],1),e._v("\n\n Params\n "),e._l(e.params,function(r,n){return t("div",{key:n,staticClass:"d-flex align-items-center mb-1"},[t("el-checkbox",{staticClass:"mr-2",model:{value:r.isEnabled,callback:function(t){e.$set(r,"isEnabled",t)},expression:"parameter.isEnabled"}}),t("el-input",{attrs:{placeholder:"key"},on:{input:function(t){return e.handleParamKeyChange(n)}},model:{value:r.key,callback:function(t){e.$set(r,"key",t)},expression:"parameter.key"}}),t("el-input",{staticClass:"ml-1",attrs:{placeholder:"value"},model:{value:r.value,callback:function(t){e.$set(r,"value",t)},expression:"parameter.value"}}),e.params.length>1?t("el-button",{attrs:{icon:"el-icon-close",circle:"",type:"text"},on:{click:function(t){return e.removeParam(n)}}}):e._e()],1)})],2),t("span",{staticClass:"mx-auto"}),t("div",{staticClass:"d-flex align-items-center"},[t("el-dropdown",{staticClass:"mr-4",attrs:{multiple:"","hide-on-click":!1}},[t("span",{staticClass:"el-dropdown-link"},[e._v("\n Select columns\n "),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{staticStyle:{"max-height":"300px",overflow:"auto"},attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-checkbox-group",{on:{input:e.update},model:{value:e.selectedColumns,callback:function(t){e.selectedColumns=t},expression:"selectedColumns"}},e._l(e.allPossibleColumns,function(r){return t("el-dropdown-item",{key:r,attrs:{label:r,value:r}},[t("el-checkbox",{staticClass:"mb-0 mr-4",attrs:{label:r,disabled:1===e.selectedColumns.length&&e.selectedColumns[0]===r}})],1)}),1)],1)],1),t("el-checkbox",{staticClass:"mb-0 mr-4",model:{value:e.isFiltersVisible,callback:function(t){e.isFiltersVisible=t},expression:"isFiltersVisible"}},[e._v("\n Show Filters\n ")]),t("el-pagination",{attrs:{"page-size":e.pageSize,total:e.count,"page-sizes":e.pageSizes,"current-page":e.page,layout:"sizes, prev, pager, next"},on:{"update:currentPage":function(t){e.page=t},"update:current-page":function(t){e.page=t},"current-change":function(t){return e.update()},"size-change":function(t){e.pageSize=t,e.update()}}})],1)]),t("el-button",{staticClass:"btn btn-primary mb-3",on:{click:e.update}},[e._v("\n Search\n ")]),t("el-table",{attrs:{data:e.tableRows,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""},on:{"sort-change":e.handleSortChange}},e._l(e.selectedColumns,function(r){return t("el-table-column",{key:r,attrs:{label:r,prop:r,align:"center",sortable:!0},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",{staticClass:"text-left"},[0===n.$index&&e.isFiltersVisible?t("div",[t("el-input",{attrs:{placeholder:"Search by ".concat(r),type:"number"===e.getFieldType(r)?"number":"text"},on:{change:function(t){return e.update()}},model:{value:e.searchFilters[r],callback:function(t){e.$set(e.searchFilters,r,t)},expression:"searchFilters[name]"}}),t("el-checkbox",{staticClass:"mt-3",attrs:{disabled:"number"===e.getFieldType(r)},on:{change:function(t){return e.update()}},model:{value:e.exactSearches[r],callback:function(t){e.$set(e.exactSearches,r,t)},expression:"exactSearches[name]"}},[e._v("\n Exact match\n ")])],1):e._e(),t("span",[e._v(e._s(e.getPath(n.row,r)))])])]}}],null,!0)})}),1),e.data.length?t("div",{staticClass:"d-flex align-items-center my-3"},[t("button",{staticClass:"btn btn-secondary download-button mr-2",on:{click:function(t){return e.downloadCSV()}}},[e._v("\n Download\n ")]),t("button",{staticClass:"btn btn-secondary download-button",on:{click:function(t){return e.downloadAllCSV()}}},[e._v("\n Download All\n ")]),t("span",{staticClass:"mx-auto"}),t("el-pagination",{attrs:{"page-size":e.pageSize,total:e.count,"page-sizes":e.pageSizes,"current-page":e.page,layout:"sizes, prev, pager, next"},on:{"update:currentPage":function(t){e.page=t},"update:current-page":function(t){e.page=t},"current-change":function(t){return e.update()},"size-change":function(t){e.pageSize=t,e.update()}}})],1):e._e()],1)},[],!1,null,null,null).exports}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkexpressa_admin=self.webpackChunkexpressa_admin||[]).push([[338],{4338:function(e,s,t){t.r(s),t.d(s,{default:function(){return o}});var d=t(467),r=t(4756),n=t.n(r),a=t(2521),_={name:"ViewRequest",data:function(){return{log:{},req:{},res:{}}},mounted:function(){this.update()},methods:{update:function(){var e=this;return(0,d.A)(n().mark(function s(){var t,d;return n().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.$route.params.requestId,console.log("id"),console.log(t),s.next=1,(0,a.A)({url:"/requestlog/".concat(t)});case 1:d=s.sent.data,e.log=d,e.req=d.req,e.res=d.res;case 2:case"end":return s.stop()}},s)}))()}}},o=(0,t(4486).A)(_,function(){var e=this,s=e._self._c;return s("div",{staticClass:"app-container",staticStyle:{display:"flex",width:"100%"}},[s("div",{staticClass:"side-panel"},[s("h2",[e._v("Request")]),s("p",[e._v("\n "+e._s(e.log.method)+" "+e._s(e.log.url)+"\n ")]),s("dl",[s("dt",[e._v("Request Time")]),s("dd",[e._v(e._s(e.log.meta.created))]),s("dt",[e._v("User")]),s("dd",[e._v(e._s(e.log.user))]),s("dt",[e._v("User Collection")]),s("dd",[e._v(e._s(e.log.user_collection))]),s("dt",[e._v("IP")]),s("dd",[e._v(e._s(e.req.ip))]),s("dt",[e._v("User-Agent")]),s("dd",[e._v(e._s(e.req.headers["user-agent"]))]),s("dt",[e._v("Referrer")]),s("dd",[e._v(e._s(e.req.headers.referer))]),s("dt",[e._v("Origin")]),s("dd",[e._v(e._s(e.req.headers.origin))])])]),s("div",{staticClass:"side-panel"},[s("h2",[e._v("Response")]),s("dl",[s("dt",[e._v("ID")]),s("dd",[e._v(e._s(e.res.requestId))]),s("dt",[e._v("Response Time")]),s("dd",[e._v(e._s(e.log.meta.created))]),s("dt",[e._v("Status Code")]),s("dd",[e._v(e._s(e.res.statusCode))]),s("dt",[e._v("Content-Length")]),s("dd",[e._v(e._s(e.res.headers["content-length"])+" bytes")]),s("dt",[e._v("Message")]),s("dd",[e._v(e._s(e.res.message))]),s("dt",[e._v("Token Message")]),s("dd",[e._v(e._s(e.res.tokenMessage))])])])])},[],!1,null,"69518ead",null).exports}}]);
|
|
Binary file
|