@scrypted/core 0.0.182 → 0.0.186
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/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/client/index.ts +0 -72
- package/client/package-lock.json +0 -342
- package/client/package.json +0 -36
- package/client/tsconfig.json +0 -11
- package/ui/README.md +0 -34
- package/ui/babel.config.js +0 -12
- package/ui/package-lock.json +0 -35168
- package/ui/package.json +0 -107
- package/ui/public/favicon.ico +0 -0
- package/ui/public/images/cameraloading.jpg +0 -0
- package/ui/public/img/icons/apple-touch-icon-152x152.png +0 -0
- package/ui/public/img/icons/favicon-128x128.png +0 -0
- package/ui/public/img/icons/favicon-144x144.png +0 -0
- package/ui/public/img/icons/favicon-152x152.png +0 -0
- package/ui/public/img/icons/favicon-16x16.png +0 -0
- package/ui/public/img/icons/favicon-192x192.png +0 -0
- package/ui/public/img/icons/favicon-32x32.png +0 -0
- package/ui/public/img/icons/favicon-384x384.png +0 -0
- package/ui/public/img/icons/favicon-512x512.png +0 -0
- package/ui/public/img/icons/favicon-72x72.png +0 -0
- package/ui/public/img/icons/favicon-96x96.png +0 -0
- package/ui/public/img/icons/icon-128x128.png +0 -0
- package/ui/public/img/icons/icon-144x144.png +0 -0
- package/ui/public/img/icons/icon-152x152.png +0 -0
- package/ui/public/img/icons/icon-192x192.png +0 -0
- package/ui/public/img/icons/icon-384x384.png +0 -0
- package/ui/public/img/icons/icon-512x512.png +0 -0
- package/ui/public/img/icons/icon-72x72.png +0 -0
- package/ui/public/img/icons/icon-96x96.png +0 -0
- package/ui/public/img/icons/msapplication-icon-144x144.png +0 -0
- package/ui/public/img/icons/safari-pinned-tab.svg +0 -1
- package/ui/public/index.html +0 -19
- package/ui/public/manifest.json +0 -45
- package/ui/public/robots.txt +0 -2
- package/ui/shims-vue.d.ts +0 -4
- package/ui/tsconfig.json +0 -34
- package/ui/tslint.json.foo +0 -35
- package/ui/vue.config.js +0 -106
package/ui/package.json
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ui",
|
|
3
|
-
"private": true,
|
|
4
|
-
"scripts": {
|
|
5
|
-
"dev": "concurrently --names 'server,client' --prefix-colors 'gray,white.bold' --prefix '{time} ({name})\t' --timestamp-format 'HH:mm:ss.SSS' --kill-others npm:serve-server npm:serve",
|
|
6
|
-
"serve": "vue-cli-service serve --open",
|
|
7
|
-
"serve-server": "cd ../../../server && npm run serve",
|
|
8
|
-
"build": "vue-cli-service build --dest ../fs/dist",
|
|
9
|
-
"lint": "vue-cli-service lint",
|
|
10
|
-
"postinstall": "(cd ../../../server && npm install); (cd ../client && npm install)"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@fortawesome/fontawesome-free": "^5.15.4",
|
|
14
|
-
"@fortawesome/fontawesome-svg-core": "^1.2.34",
|
|
15
|
-
"@fortawesome/free-brands-svg-icons": "^5.15.2",
|
|
16
|
-
"@fortawesome/free-regular-svg-icons": "^5.15.2",
|
|
17
|
-
"@fortawesome/free-solid-svg-icons": "^5.15.2",
|
|
18
|
-
"@fortawesome/vue-fontawesome": "^0.1.10",
|
|
19
|
-
"@radial-color-picker/vue-color-picker": "^2.3.0",
|
|
20
|
-
"@scrypted/client": "file:../client",
|
|
21
|
-
"@scrypted/sdk": "file:../../../sdk",
|
|
22
|
-
"apexcharts": "^3.28.3",
|
|
23
|
-
"axios": "^0.19.2",
|
|
24
|
-
"core-js": "^2.6.12",
|
|
25
|
-
"draggabilly": "^2.3.0",
|
|
26
|
-
"engine.io-client": "^5.2.0",
|
|
27
|
-
"feather-icons": "^4.28.0",
|
|
28
|
-
"lodash": "^4.17.21",
|
|
29
|
-
"md5": "^2.3.0",
|
|
30
|
-
"monaco-editor": "^0.27.0",
|
|
31
|
-
"query-string": "^6.14.1",
|
|
32
|
-
"register-service-worker": "^1.7.2",
|
|
33
|
-
"semver": "^6.3.0",
|
|
34
|
-
"vue": "^2.6.12",
|
|
35
|
-
"vue-apexcharts": "^1.6.2",
|
|
36
|
-
"vue-async-computed": "^3.9.0",
|
|
37
|
-
"vue-click-outside": "^1.1.0",
|
|
38
|
-
"vue-clipboard2": "^0.3.1",
|
|
39
|
-
"vue-feather": "^1.1.1",
|
|
40
|
-
"vue-linkify": "^1.0.1",
|
|
41
|
-
"vue-markdown": "^2.2.4",
|
|
42
|
-
"vue-monaco": "^1.2.2",
|
|
43
|
-
"vue-router": "^3.5.1",
|
|
44
|
-
"vue-script2": "^2.1.0",
|
|
45
|
-
"vue-slider-component": "^3.2.11",
|
|
46
|
-
"vue-swatches": "^1.0.4",
|
|
47
|
-
"vue2-google-maps": "^0.10.7",
|
|
48
|
-
"vuetify": "^2.5.8",
|
|
49
|
-
"vuex": "^3.6.2",
|
|
50
|
-
"xterm": "^4.13.0",
|
|
51
|
-
"xterm-addon-fit": "^0.5.0"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
55
|
-
"@babel/plugin-proposal-optional-chaining": "^7.13.8",
|
|
56
|
-
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
|
|
57
|
-
"@babel/plugin-transform-typescript": "^7.13.0",
|
|
58
|
-
"@babel/preset-env": "^7.9.0",
|
|
59
|
-
"@babel/preset-typescript": "^7.13.0",
|
|
60
|
-
"@types/blob-stream": "^0.1.30",
|
|
61
|
-
"@types/dom-webcodecs": "^0.1.0",
|
|
62
|
-
"@types/draggabilly": "^2.1.3",
|
|
63
|
-
"@types/engine.io-client": "^3.1.5",
|
|
64
|
-
"@types/lodash": "^4.14.172",
|
|
65
|
-
"@types/mkdirp": "^1.0.1",
|
|
66
|
-
"@types/node": "^16.0.0",
|
|
67
|
-
"@types/plist": "^3.0.2",
|
|
68
|
-
"@types/rimraf": "^3.0.0",
|
|
69
|
-
"@types/semver": "^7.3.6",
|
|
70
|
-
"@types/serialport": "^8.0.2",
|
|
71
|
-
"@types/socket.io-client": "^1.4.33",
|
|
72
|
-
"@types/streamsaver": "^2.0.0",
|
|
73
|
-
"@types/tmp": "^0.2.1",
|
|
74
|
-
"@types/vue-markdown": "^2.2.1",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
|
76
|
-
"@typescript-eslint/parser": "^4.17.0",
|
|
77
|
-
"@vue/cli-plugin-babel": "^4.5.13",
|
|
78
|
-
"@vue/cli-plugin-pwa": "^4.5.13",
|
|
79
|
-
"@vue/cli-plugin-typescript": "^4.5.13",
|
|
80
|
-
"@vue/cli-service": "^4.5.13",
|
|
81
|
-
"babel-eslint": "^10.1.0",
|
|
82
|
-
"babel-plugin-transform-imports": "^2.0.0",
|
|
83
|
-
"concurrently": "^6.2.1",
|
|
84
|
-
"eslint": "^7.21.0",
|
|
85
|
-
"eslint-plugin-vue": "^7.7.0",
|
|
86
|
-
"monaco-editor-webpack-plugin": "^4.1.2",
|
|
87
|
-
"raw-loader": "^4.0.2",
|
|
88
|
-
"sass": "^1.32.12",
|
|
89
|
-
"sass-loader": "^10.2.0",
|
|
90
|
-
"stylus": "^0.54.8",
|
|
91
|
-
"stylus-loader": "^3.0.1",
|
|
92
|
-
"typescript": "^4.2.3",
|
|
93
|
-
"vue-cli-plugin-vuetify": "^2.4.2",
|
|
94
|
-
"vue-template-compiler": "^2.6.12",
|
|
95
|
-
"vuetify-loader": "^1.7.2",
|
|
96
|
-
"worker-loader": "^3.0.8"
|
|
97
|
-
},
|
|
98
|
-
"postcss": {
|
|
99
|
-
"plugins": {
|
|
100
|
-
"autoprefixer": {}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"browserslist": [
|
|
104
|
-
"> 1%",
|
|
105
|
-
"last 2 versions"
|
|
106
|
-
]
|
|
107
|
-
}
|
package/ui/public/favicon.ico
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line></svg>
|
package/ui/public/index.html
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
8
|
-
<title>Scrypted Management Console</title>
|
|
9
|
-
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
10
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<noscript>
|
|
14
|
-
<strong>We're sorry but web doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
15
|
-
</noscript>
|
|
16
|
-
<div id="app"></div>
|
|
17
|
-
<!-- built files will be auto injected -->
|
|
18
|
-
</body>
|
|
19
|
-
</html>
|
package/ui/public/manifest.json
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Scrypted Management Console",
|
|
3
|
-
"short_name": "Scrypted",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "./img/icons/icon-72x72.png",
|
|
7
|
-
"sizes": "72x72",
|
|
8
|
-
"type": "image/png"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "./img/icons/icon-96x96.png",
|
|
12
|
-
"sizes": "96x96",
|
|
13
|
-
"type": "image/png"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "./img/icons/icon-144x144.png",
|
|
17
|
-
"sizes": "144x144",
|
|
18
|
-
"type": "image/png"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"src": "./img/icons/icon-152x152.png",
|
|
22
|
-
"sizes": "152x152",
|
|
23
|
-
"type": "image/png"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"src": "./img/icons/icon-192x192.png",
|
|
27
|
-
"sizes": "192x192",
|
|
28
|
-
"type": "image/png"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"src": "./img/icons/icon-384x384.png",
|
|
32
|
-
"sizes": "384x384",
|
|
33
|
-
"type": "image/png"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"src": "./img/icons/icon-512x512.png",
|
|
37
|
-
"sizes": "512x512",
|
|
38
|
-
"type": "image/png"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"start_url": "./index.html",
|
|
42
|
-
"display": "standalone",
|
|
43
|
-
"background_color": "#000000",
|
|
44
|
-
"theme_color": "#424242"
|
|
45
|
-
}
|
package/ui/public/robots.txt
DELETED
package/ui/shims-vue.d.ts
DELETED
package/ui/tsconfig.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"typeRoots": [
|
|
4
|
-
"./node_modules/@types",
|
|
5
|
-
"./node_modules/vuetify/types"
|
|
6
|
-
],
|
|
7
|
-
"target": "es2017",
|
|
8
|
-
"module": "esnext",
|
|
9
|
-
"jsx": "preserve",
|
|
10
|
-
"importHelpers": true,
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"experimentalDecorators": true,
|
|
13
|
-
"esModuleInterop": true,
|
|
14
|
-
"allowSyntheticDefaultImports": true,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"baseUrl": ".",
|
|
17
|
-
"types": [
|
|
18
|
-
"node",
|
|
19
|
-
"webpack-env",
|
|
20
|
-
"vuetify",
|
|
21
|
-
"dom-webcodecs",
|
|
22
|
-
],
|
|
23
|
-
"lib": [
|
|
24
|
-
"esnext",
|
|
25
|
-
"dom",
|
|
26
|
-
"dom.iterable",
|
|
27
|
-
"scripthost"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"exclude": [
|
|
31
|
-
"node_modules"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
|
package/ui/tslint.json.foo
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaultSeverity": "warning",
|
|
3
|
-
"extends": [
|
|
4
|
-
"tslint:recommended"
|
|
5
|
-
],
|
|
6
|
-
"linterOptions": {
|
|
7
|
-
"exclude": [
|
|
8
|
-
"node_modules/**"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"rules": {
|
|
12
|
-
"indent": [true, "spaces", 2],
|
|
13
|
-
"interface-name": false,
|
|
14
|
-
"no-consecutive-blank-lines": false,
|
|
15
|
-
"object-literal-sort-keys": false,
|
|
16
|
-
"ordered-imports": false,
|
|
17
|
-
"quotemark": [false, "single"],
|
|
18
|
-
|
|
19
|
-
"member-access": false,
|
|
20
|
-
"no-empty": false,
|
|
21
|
-
"trailing-comma": false,
|
|
22
|
-
"max-line-length": false,
|
|
23
|
-
"no-require-imports": false,
|
|
24
|
-
"one-line": false,
|
|
25
|
-
"no-var-requires": false,
|
|
26
|
-
"curly": false,
|
|
27
|
-
"no-bitwise": false,
|
|
28
|
-
"arrow-parens": false,
|
|
29
|
-
"max-classes-per-file": false,
|
|
30
|
-
"object-literal-key-quotes": false,
|
|
31
|
-
"semicolon": false,
|
|
32
|
-
"no-shadowed-variable": false
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
package/ui/vue.config.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
|
3
|
-
|
|
4
|
-
const scryptedServer = `https://${process.env.SCRYPTED_SERVER || '127.0.0.1'}:10443`;
|
|
5
|
-
|
|
6
|
-
const proxyOpts = {
|
|
7
|
-
changeOrigin: true,
|
|
8
|
-
ws: true,
|
|
9
|
-
target: scryptedServer,
|
|
10
|
-
onProxyReq: (proxyReq) => {
|
|
11
|
-
// required by scrypted which does referer host check when something POSTs to it.
|
|
12
|
-
// cross origin posts not allowed. is this automatically done by the browser?
|
|
13
|
-
proxyReq.removeHeader('Referer');
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
module.exports = {
|
|
18
|
-
productionSourceMap: false,
|
|
19
|
-
transpileDependencies: [
|
|
20
|
-
'vue-echarts',
|
|
21
|
-
'resize-detector',
|
|
22
|
-
'vuetify'
|
|
23
|
-
],
|
|
24
|
-
|
|
25
|
-
// https://cli.vuejs.org/config/#css-extract
|
|
26
|
-
css: {
|
|
27
|
-
extract: { ignoreOrder: true },
|
|
28
|
-
loaderOptions: {
|
|
29
|
-
sass: {
|
|
30
|
-
additionalData: '@import \'~@/assets/scss/vuetify/variables\''
|
|
31
|
-
},
|
|
32
|
-
scss: {
|
|
33
|
-
additionalData: '@import \'~@/assets/scss/vuetify/variables\';'
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
parallel: false,
|
|
40
|
-
|
|
41
|
-
chainWebpack: config => {
|
|
42
|
-
config.module.rule('vue').uses.delete('cache-loader');
|
|
43
|
-
config.module.rule('js').uses.delete('cache-loader');
|
|
44
|
-
config.module.rule('ts').uses.delete('cache-loader');
|
|
45
|
-
config.module.rule('tsx').uses.delete('cache-loader');
|
|
46
|
-
|
|
47
|
-
// config.module
|
|
48
|
-
// .rule('worker-loader')
|
|
49
|
-
// .test(/\.worker\.js$/)
|
|
50
|
-
// .use('worker-loader')
|
|
51
|
-
// .loader('worker-loader')
|
|
52
|
-
// .end()
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
configureWebpack: {
|
|
57
|
-
output: {
|
|
58
|
-
crossOriginLoading: 'anonymous',
|
|
59
|
-
},
|
|
60
|
-
plugins: [
|
|
61
|
-
new MonacoWebpackPlugin()
|
|
62
|
-
],
|
|
63
|
-
module: {
|
|
64
|
-
rules: [
|
|
65
|
-
{
|
|
66
|
-
test: /\.(wasm\.asset)$/i,
|
|
67
|
-
use: [
|
|
68
|
-
{
|
|
69
|
-
loader: 'file-loader',
|
|
70
|
-
options: {
|
|
71
|
-
name: '[contenthash].wasm'
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
pwa: {
|
|
81
|
-
themeColor: '#424242',
|
|
82
|
-
msTileColor: '#9c27b0',
|
|
83
|
-
appleMobileWebAppStatusBarStyle: 'black',
|
|
84
|
-
workboxOptions: {
|
|
85
|
-
skipWaiting: true,
|
|
86
|
-
// clientsClaim: true,
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
publicPath: process.env.NODE_ENV === 'production' ? '/endpoint/@scrypted/core/public' : '/',
|
|
90
|
-
|
|
91
|
-
runtimeCompiler: true,
|
|
92
|
-
devServer: {
|
|
93
|
-
disableHostCheck: true,
|
|
94
|
-
host: 'localhost',
|
|
95
|
-
https: true,
|
|
96
|
-
port: 8081,
|
|
97
|
-
progress: false,
|
|
98
|
-
proxy: {
|
|
99
|
-
'^/(login|logout|static|endpoint|whitelist|web|engine.io)': proxyOpts,
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (process.env['NODE_ENV'] == 'production') {
|
|
105
|
-
module.exports.configureWebpack.devtool = 'none';
|
|
106
|
-
}
|