saby-customizer 0.0.0-pre.7 → 0.0.0
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/features/doc-copy-link.js +17 -0
- package/features/git-branch.js +770 -40
- package/lib/context.js +43 -0
- package/lib/database.js +4 -1
- package/lib/layout.js +75 -20
- package/lib/popup-dialog.js +69 -31
- package/{saby-lib → lib/saby-lib}/cloud-statistic.js +1 -0
- package/{saby-lib → lib/saby-lib}/edo.js +49 -7
- package/lib/saby-lib/rpc.js +19 -0
- package/lib/saby-lib/toolbar.js +272 -0
- package/lib.js +8 -0
- package/material.js +9161 -5144
- package/octicons.js +4673 -0
- package/package.json +25 -17
- package/{lib → third-party}/material.js +5 -0
- package/third-party/octicons.js +3 -0
- package/userscript.js +9 -4
package/package.json
CHANGED
|
@@ -9,33 +9,41 @@
|
|
|
9
9
|
},
|
|
10
10
|
"repository": "github:saby-customizer/saby-customizer.github.io",
|
|
11
11
|
"license": "Unlicense",
|
|
12
|
-
"version": "0.0.0
|
|
12
|
+
"version": "0.0.0",
|
|
13
13
|
"type": "module",
|
|
14
|
+
"main": "./userscript.js",
|
|
14
15
|
"exports": {
|
|
15
|
-
".": "./userscript.js"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"@material/mwc-tab-bar": "^0.25.1",
|
|
22
|
-
"@material/mwc-top-app-bar": "^0.25.1",
|
|
23
|
-
"dexie": "^3.0.3"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"rollup": "latest",
|
|
27
|
-
"@rollup/plugin-node-resolve": "latest"
|
|
16
|
+
".": "./userscript.js",
|
|
17
|
+
"./features/*": "./features/*",
|
|
18
|
+
"./lib.js": "./lib.js",
|
|
19
|
+
"./material.js": "./material.js",
|
|
20
|
+
"./octicons.js": "./octicons.js",
|
|
21
|
+
"./userscript.js": "./userscript.js"
|
|
28
22
|
},
|
|
29
23
|
"files": [
|
|
30
24
|
"features",
|
|
31
25
|
"lib",
|
|
32
|
-
"
|
|
26
|
+
"third-party",
|
|
27
|
+
"lib.js",
|
|
33
28
|
"material.js",
|
|
29
|
+
"octicons.js",
|
|
34
30
|
"userscript.js"
|
|
35
31
|
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@notml/core": "^0.1.0-pre.14",
|
|
34
|
+
"@material/mwc-dialog": "^0.26.1",
|
|
35
|
+
"@material/mwc-icon-button": "^0.26.1",
|
|
36
|
+
"@material/mwc-tab-bar": "^0.26.1",
|
|
37
|
+
"@material/mwc-button": "^0.26.1",
|
|
38
|
+
"@material/mwc-menu": "^0.26.1",
|
|
39
|
+
"@material/mwc-textfield": "^0.26.1",
|
|
40
|
+
"@material/mwc-textarea": "^0.26.1",
|
|
41
|
+
"@material/mwc-top-app-bar": "^0.26.1",
|
|
42
|
+
"@material/mwc-snackbar": "^0.26.1",
|
|
43
|
+
"dexie": "^3.2.2"
|
|
44
|
+
},
|
|
36
45
|
"scripts": {
|
|
37
|
-
"
|
|
38
|
-
"prepack": "npx rollup --config"
|
|
46
|
+
"prepack": "cd .. && npm run build"
|
|
39
47
|
},
|
|
40
48
|
"publishConfig": {
|
|
41
49
|
"access": "public"
|
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
import '@material/mwc-dialog'
|
|
11
11
|
import '@material/mwc-icon-button'
|
|
12
12
|
import '@material/mwc-tab-bar'
|
|
13
|
+
import '@material/mwc-button'
|
|
14
|
+
import '@material/mwc-menu'
|
|
15
|
+
import '@material/mwc-textfield'
|
|
16
|
+
import '@material/mwc-textarea'
|
|
13
17
|
import '@material/mwc-top-app-bar'
|
|
18
|
+
import '@material/mwc-snackbar'
|
|
14
19
|
/*
|
|
15
20
|
* PS
|
|
16
21
|
* unpkg не вывозит новый JS:
|
package/userscript.js
CHANGED
|
@@ -8,18 +8,23 @@ import { oom } from '@notml/core'
|
|
|
8
8
|
})
|
|
9
9
|
|
|
10
10
|
// Компоненты material используемые в проекте
|
|
11
|
-
await import('./lib/material.js')
|
|
11
|
+
// await import('./lib/material.js')
|
|
12
|
+
// @ts-ignore https://github.com/material-components/material-web/issues/2780
|
|
13
|
+
// await import('./material.js')
|
|
14
|
+
await import('saby-customizer/material.js')
|
|
12
15
|
|
|
13
16
|
// Библиотеки компонентов плагина
|
|
14
17
|
// TODO: Перевести на опциональную загрузку
|
|
15
18
|
// await import('./lib/dashboard.js')
|
|
16
|
-
await import('
|
|
19
|
+
await import('saby-customizer/features/doc-copy-link.js')
|
|
20
|
+
await import('saby-customizer/features/git-branch.js')
|
|
17
21
|
|
|
18
22
|
// @font-face doesn't work with Shadow DOM https://github.com/mdn/interactive-examples/issues/887
|
|
19
23
|
// https://wiki.csswg.org/spec/css-scoping
|
|
20
24
|
// https://drafts.csswg.org/css-scoping/#shadow-names
|
|
21
25
|
oom(document.head, oom
|
|
22
|
-
// Подключение стилей material только внутри теневого DOM
|
|
23
26
|
.link({ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Roboto&display=swap' })
|
|
24
27
|
.link({ rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' }))
|
|
25
|
-
})().catch(e =>
|
|
28
|
+
})().catch(e => {
|
|
29
|
+
console.error(e.stack || e)
|
|
30
|
+
})
|