mirror of
https://github.com/OBKoro1/autoCommit.git
synced 2024-11-22 02:19:23 +08:00
init
This commit is contained in:
parent
ff8943e10b
commit
b66337b064
1
.env.production
Normal file
1
.env.production
Normal file
@ -0,0 +1 @@
|
|||||||
|
NODE_ENV = production
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ out
|
|||||||
node_modules
|
node_modules
|
||||||
.vscode-test/
|
.vscode-test/
|
||||||
*.vsix
|
*.vsix
|
||||||
|
dist
|
73
.vscode/launch.json
vendored
73
.vscode/launch.json
vendored
@ -3,34 +3,47 @@
|
|||||||
// Hover to view descriptions of existing attributes.
|
// Hover to view descriptions of existing attributes.
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
// {
|
||||||
"name": "Run Extension",
|
// "name": "Run Extension",
|
||||||
"type": "extensionHost",
|
// "type": "extensionHost",
|
||||||
"request": "launch",
|
// "request": "launch",
|
||||||
"runtimeExecutable": "${execPath}",
|
// "runtimeExecutable": "${execPath}",
|
||||||
"args": [
|
// "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}"
|
// // "outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
||||||
],
|
// // "preLaunchTask": "npm: watch"
|
||||||
"outFiles": [
|
// },
|
||||||
"${workspaceFolder}/out/**/*.js"
|
// {
|
||||||
],
|
// "name": "Extension Tests",
|
||||||
"preLaunchTask": "${defaultBuildTask}"
|
// "type": "extensionHost",
|
||||||
},
|
// "request": "launch",
|
||||||
{
|
// "runtimeExecutable": "${execPath}",
|
||||||
"name": "Extension Tests",
|
// "args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test"],
|
||||||
"type": "extensionHost",
|
// "outFiles": ["${workspaceFolder}/dist/test/**/*.js"],
|
||||||
"request": "launch",
|
// "preLaunchTask": "npm: watch"
|
||||||
"runtimeExecutable": "${execPath}",
|
// }
|
||||||
"args": [
|
{
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}",
|
"name": "Run Extension",
|
||||||
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
|
"type": "extensionHost",
|
||||||
],
|
"request": "launch",
|
||||||
"outFiles": [
|
"runtimeExecutable": "${execPath}",
|
||||||
"${workspaceFolder}/out/test/**/*.js"
|
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
|
||||||
],
|
"outFiles": ["${workspaceFolder}/out/**/*.js"],
|
||||||
"preLaunchTask": "${defaultBuildTask}"
|
"preLaunchTask": "npm: compile"
|
||||||
}
|
// "preLaunchTask": "${defaultBuildTask}"
|
||||||
]
|
},
|
||||||
|
{
|
||||||
|
"name": "Extension Tests",
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
|
||||||
|
],
|
||||||
|
"outFiles": ["${workspaceFolder}/dist/test/**/*.js"],
|
||||||
|
"preLaunchTask": "${defaultBuildTask}"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
13
deploy.sh
Normal file
13
deploy.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
###
|
||||||
|
# Author : OBKoro1
|
||||||
|
# Date : 2019-12-26 20:55:46
|
||||||
|
# LastEditors : OBKoro1
|
||||||
|
# LastEditTime : 2019-12-26 20:56:44
|
||||||
|
# FilePath : /autoCommit/deploy.sh
|
||||||
|
# Description :
|
||||||
|
# https://github.com/OBKoro1
|
||||||
|
###
|
||||||
|
|
||||||
|
# npm run watch
|
||||||
|
|
||||||
|
# npm run build 打包插件
|
1860
package-lock.json
generated
1860
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
23
package.json
23
package.json
@ -4,11 +4,13 @@
|
|||||||
"description": "自动提交commit到github",
|
"description": "自动提交commit到github",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"vscode:prepublish": "npm run compile",
|
"build": "vsce package",
|
||||||
"compile": "tsc -p ./",
|
"vscode:prepublish": "webpack --mode production",
|
||||||
"watch": "tsc -watch -p ./",
|
"compile": "webpack --mode none",
|
||||||
|
"watch": "webpack --mode none --watch",
|
||||||
"pretest": "npm run compile",
|
"pretest": "npm run compile",
|
||||||
"test": "node ./out/test/runTest.js"
|
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||||
|
"test": "yarn run compile && node ./node_modules/vscode/bin/test"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.40.0"
|
"vscode": "^1.40.0"
|
||||||
@ -19,12 +21,13 @@
|
|||||||
"activationEvents": [
|
"activationEvents": [
|
||||||
"onCommand:extension.autoCommit"
|
"onCommand:extension.autoCommit"
|
||||||
],
|
],
|
||||||
"main": "./out/extension.js",
|
"main": "./dist/extension.js",
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"commands": [
|
"commands": [
|
||||||
{
|
{
|
||||||
"command": "extension.autoCommit",
|
"command": "extension.autoCommit",
|
||||||
"title": "Github自动提交 autoCommit"
|
"title": "Github自动提交 autoCommit",
|
||||||
|
"category": "Github自动提交 autoCommit"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -52,11 +55,15 @@
|
|||||||
"@types/mocha": "^5.2.7",
|
"@types/mocha": "^5.2.7",
|
||||||
"@types/node": "^12.11.7",
|
"@types/node": "^12.11.7",
|
||||||
"@types/vscode": "^1.41.0",
|
"@types/vscode": "^1.41.0",
|
||||||
|
"copy-webpack-plugin": "^5.1.1",
|
||||||
"glob": "^7.1.5",
|
"glob": "^7.1.5",
|
||||||
"mocha": "^6.2.2",
|
"mocha": "^6.2.2",
|
||||||
"typescript": "^3.6.4",
|
"ts-loader": "^6.2.1",
|
||||||
"tslint": "^5.20.0",
|
"tslint": "^5.20.0",
|
||||||
"vscode-test": "^1.2.2"
|
"typescript": "^3.6.4",
|
||||||
|
"vscode": "^1.1.36",
|
||||||
|
"webpack": "^4.41.4",
|
||||||
|
"webpack-cli": "^3.3.10"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"moment": "^2.24.0"
|
"moment": "^2.24.0"
|
||||||
|
37
src/assets/icon-font/iconfont.css
Normal file
37
src/assets/icon-font/iconfont.css
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
@font-face {font-family: "iconfont";
|
||||||
|
src: url('iconfont.eot?t=1556172456353'); /* IE9 */
|
||||||
|
src: url('iconfont.eot?t=1556172456353#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||||||
|
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAR8AAsAAAAACWQAAAQvAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDSAqFXIRgATYCJAMYCw4ABCAFhG0HVBsSCBEVnKXJvkiwOVdw8wHj5Dy/qawRhsvNcxa0LLb4/g5tR4Nngudzv89zkzxYYFA7K4FAKECFCqFExtVWVgJCtoSy839+f++5X57EBiMZ901KQqJQl5RWN9/Nv9taNJaFeJaGHK75PCqMwjG9v0F/AFyuJYEDYXaq+MiVAAKb+/zB3iT75GtMjX5jC8r1f46lXiZYfjs7l4zgiucpeECRq8LRbA28gYz3fCCyQXeDA33l+yFAMOnoghqa3P3Bx2DvE0CmJ5JiwC9YMB1Mwde7Deca5Dig+GoPjcCx6PvlC2XCAIWjsY/2jDrEQ40FB61k/MfADRBAupwLYBeBBkoBDMhio2cBnWRKIROs/wZDGxCKj8JYbLyVtBOfh/+BgsIOCKGOG2SH/3loDIgL0oRCbEfWAYvHh4CN50OBTZR0a89DF5rTlELZPTK4C26JBXgCkoBNKWWvEIxBoaOE6fxNJEYiSmaYRAKvcDihBQ/ViSeeJSSSztUP4zBWT1e/SWzUrcUkn6AQdfbqgr41QKudmtDgpgyqbxBcq/3xEEvaH0F4rWHLh4YBRWohVXh2rlvs+v72brp5WO4e1+u23gVR+Ro9Dz7cPt73xINuG5Ugt9Z1Q6Kklir3fr5taZMIOkeIPzT5N2OxgDMtEo+Pt/vz6pn6OkyDUFNuQrGBqztuOCu71b71tapYrbjy1j2fuu6Ls0qIWvFGZw3OmOwsdX1QkXXsysu7rb3OU3AU815rt/P4LhGmEa6es+xFECmlIFGgapLiw2vaq8uqg9nMi2tx8+x7oxOEmf39d30loUJoBKJyrbPvT6s3R0fX6XjKRWzsBeXPTMYmymF9RY/5lVDYUdhEqnBwvXEYfdNwqdvLNeDX/9g9QEg8HqZdUVTc5h7/G3DmWn88+W+q1GoT+AltbgHC4nBxPBIhYU5UWXYhRWucCxDyakwDLBpuWiv378YiAIEUKzoGQP+Ed6KHWPUCAR8/tQXQ/9HHP+lnqLwd4x3Ft/3nhxgAHh/QEIwEfAKG+3zUXdPy30gHDhhDbltdo7X2tiKASwUseAEWgrOGvyUQzcdSurjBtSD4xGFQeKSBxicXabCl4BBCObj4VEMwJThdHEIMGWjEBAHFVAIQIpkERTgXQRPJOdJg38Ehni9wiRQyBDMkItcMIV80dmzboWDUIDtgFZXGtfNYXH+FaSMXLi+PWHfovI1DHETl/D6W6JY4wTfThNmAcVTAHngY5jlB5aiOioMac7UUhqbpiQJFRc9Yz7ZDwahBdsAqKk0wn8cqX3+FaSMXrqOlLniHztvFIQ6iAch9TTmo5VEe45tpwmzAOCpgD7gwdzIEVfOmOioOahNS1VKIRpmhmmB7XXGVdeAitrGfg/UiiCGBFDLIwYAUKhvzNi1FvqCJh6VgRtcZVDl5HGhZY3t6AAA=') format('woff2'),
|
||||||
|
url('iconfont.woff?t=1556172456353') format('woff'),
|
||||||
|
url('iconfont.ttf?t=1556172456353') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
|
||||||
|
url('iconfont.svg?t=1556172456353#iconfont') format('svg'); /* iOS 4.1- */
|
||||||
|
}
|
||||||
|
|
||||||
|
.iconfont {
|
||||||
|
font-family: "iconfont" !important;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-back:before {
|
||||||
|
content: "\e600";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-signal-dot:before {
|
||||||
|
content: "\e616";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-battery:before {
|
||||||
|
content: "\e6ae";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-close:before {
|
||||||
|
content: "\e749";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-wifi:before {
|
||||||
|
content: "\e618";
|
||||||
|
}
|
||||||
|
|
BIN
src/assets/icon-font/iconfont.eot
Normal file
BIN
src/assets/icon-font/iconfont.eot
Normal file
Binary file not shown.
1
src/assets/icon-font/iconfont.js
Normal file
1
src/assets/icon-font/iconfont.js
Normal file
File diff suppressed because one or more lines are too long
41
src/assets/icon-font/iconfont.svg
Normal file
41
src/assets/icon-font/iconfont.svg
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<!--
|
||||||
|
2013-9-30: Created.
|
||||||
|
-->
|
||||||
|
<svg>
|
||||||
|
<metadata>
|
||||||
|
Created by iconfont
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
|
||||||
|
<font id="iconfont" horiz-adv-x="1024" >
|
||||||
|
<font-face
|
||||||
|
font-family="iconfont"
|
||||||
|
font-weight="500"
|
||||||
|
font-stretch="normal"
|
||||||
|
units-per-em="1024"
|
||||||
|
ascent="896"
|
||||||
|
descent="-128"
|
||||||
|
/>
|
||||||
|
<missing-glyph />
|
||||||
|
|
||||||
|
<glyph glyph-name="back" unicode="" d="M778.831952 796.363984L330.34711787 386.6552064l448.48483413-409.7087776c15.6992224-15.599024 15.6992224-40.92073601 0-56.534256-15.62759147-15.64187521-41.04950187-15.64187521-56.67709333 0L244.8166272 356.34359787000005c-8.33568214 8.33568214-11.91021866 19.41659519-11.3668 30.31182186-0.54341867 10.89501333 3.03111787 21.94735999 11.3668 30.31182187l477.33823147 435.93121174c15.62759147 15.64208747 41.04950187 15.64208747 56.67730559-2e-8C794.5311744 837.29900373 794.5311744 811.963008 778.831952 796.363984z" horiz-adv-x="1024" />
|
||||||
|
|
||||||
|
|
||||||
|
<glyph glyph-name="signal-dot" unicode="" d="M96 384.00000001m-80 0a80 80 0 1 1 160 0 80 80 0 1 1-160 0ZM304 384.00000001m-80 0a80 80 0 1 1 160 0 80 80 0 1 1-160 0ZM512 384.00000001m-80 0a80 80 0 1 1 160 0 80 80 0 1 1-160 0ZM720 384.00000001m-80 0a80 80 0 1 1 160 0 80 80 0 1 1-160 0ZM928 384.00000001m-80 0a80 80 0 1 1 160 0 80 80 0 1 1-160 0Z" horiz-adv-x="1024" />
|
||||||
|
|
||||||
|
|
||||||
|
<glyph glyph-name="battery" unicode="" d="M961.8925037 457.30322963v73.30322962c0 40.41386667-31.7970963 73.30322963-70.99733333 73.30322964H97.54548148c-39.20023703 0-70.99733333-32.768-70.99733333-73.30322964v-293.09155555c0-40.53522963 31.7970963-73.30322963 70.99733333-73.30322962h793.22832593c39.20023703 0 70.99733333 32.768 70.99733334 73.30322962v73.30322963c19.6608 0 35.55934815 16.384 35.55934814 36.65161482v73.30322963c0.12136297 20.02488889-15.77718518 36.53025185-35.43798519 36.53025185m-35.43798518-219.78832593c0-20.26761482-15.89854815-36.65161482-35.55934815-36.65161481H97.54548148c-19.6608 0-35.55934815 16.384-35.55934815 36.65161481V530.4850963c0 20.26761482 15.89854815 36.65161482 35.55934815 36.65161481h793.22832593c19.6608 0 35.55934815-16.384 35.55934814-36.65161481v-292.9701926z m0 0M96.33185185 237.5149037v294.912h795.65558518v-294.912H96.33185185z" horiz-adv-x="1024" />
|
||||||
|
|
||||||
|
|
||||||
|
<glyph glyph-name="close" unicode="" d="M854.54777205 732.59326578a32.62236445 32.62236445 0 1 1-45.72309175-46.52570548c81.788928-80.40377205 126.86475061-187.70804939 126.86475061-302.09345106 0-233.63826725-190.02527289-423.66354015-423.66354015-423.66354015S88.33645985 150.33584197000005 88.33645985 384c0 114.48896475 45.04993185 221.74146053 126.86475062 302.09345106a32.62236445 32.62236445 0 1 1-45.72309175 46.52570547c-94.35889461-92.70188563-146.28282469-216.52447131-146.28282469-348.61915653 0-269.5617043 219.32067397-488.86943289 488.88237827-488.86943289S1000.88237827 114.41240493999999 1000.88237827 384c0 132.0429037-51.97571161 255.80076247-146.33460622 348.59326578zM512 351.4164717A32.60941906 32.60941906 0 0 1 544.60941906 384V840.28590459a32.60941906 32.60941906 0 0 1-65.21883812 0V384A32.60941906 32.60941906 0 0 1 512 351.4164717z" horiz-adv-x="1024" />
|
||||||
|
|
||||||
|
|
||||||
|
<glyph glyph-name="wifi" unicode="" d="M520.92345605 594.6654742000001c144.86724308 0 284.17775427-55.66536794 389.16728063-155.49040479a20.13497775 20.13497775 0 0 1 28.33932876 0.22880659l75.57153911 76.25795881a20.95214431 20.95214431 0 0 1-0.163434 29.81022785c-275.54847731 264.07546367-710.28095163 264.07546367-985.82942898 0a20.95214431 20.95214431 0 0 1-0.19612119-29.81022785l75.60422631-76.25795881c7.77942322-7.84479575 20.42915685-7.94285725 28.33932873-0.22880659a564.69460348 564.69460348 0 0 0 389.16728063 155.49040479z m0-248.12437839c79.5919976 0 156.34025673-29.58141949 215.33966522-82.99140892a20.2984118 20.2984118 0 0 1 28.33932696 0.35955342l75.47347944 76.2579588a21.11557655 21.11557655 0 0 1-0.32686627 30.00634726c-179.64584102 167.12685247-457.87462459 167.12685247-637.55315099 0a21.14826371 21.14826371 0 0 1-0.29417909-30.00634726l75.4734794-76.2579588a20.2984118 20.2984118 0 0 1 28.33932698-0.35955342 320.98292415 320.98292415 0 0 0 215.20891835 82.99140892z m145.06336249-182.03196461a20.39647147 20.39647147 0 0 1-0.62104716 29.87559858 223.67476128 223.67476128 0 0 1-288.91731782 0 20.62527806 20.62527806 0 0 1-0.62104716-29.87559858l130.58317633-131.75989631a20.42915685 20.42915685 0 0 1 28.96037409 0l130.61586172 131.75989631z" horiz-adv-x="1024" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 4.5 KiB |
BIN
src/assets/icon-font/iconfont.ttf
Normal file
BIN
src/assets/icon-font/iconfont.ttf
Normal file
Binary file not shown.
BIN
src/assets/icon-font/iconfont.woff
Normal file
BIN
src/assets/icon-font/iconfont.woff
Normal file
Binary file not shown.
BIN
src/assets/icon-font/iconfont.woff2
Normal file
BIN
src/assets/icon-font/iconfont.woff2
Normal file
Binary file not shown.
1
src/assets/qrcode.min.js
vendored
Executable file
1
src/assets/qrcode.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
6
src/assets/scripts/vue.min.js
vendored
Normal file
6
src/assets/scripts/vue.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
65
src/assets/styles/animation.css
Normal file
65
src/assets/styles/animation.css
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
@-webkit-keyframes slideLeftIn {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
transform: translateZ(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideLeftIn {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
transform: translateZ(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes slideRightOut {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
transform: translateZ(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideRightOut {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
transform: translateZ(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
-webkit-transform: translate3d(100%, 0, 0);
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.slide-left-in {
|
||||||
|
-webkit-animation: slideLeftIn 0.2s forwards;
|
||||||
|
animation: slideLeftIn 0.2s forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slide-right-out {
|
||||||
|
-webkit-animation: slideRightOut 0.2s forwards;
|
||||||
|
animation: slideRightOut 0.2s forwards;
|
||||||
|
}
|
36
src/assets/styles/base.css
Normal file
36
src/assets/styles/base.css
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
*,
|
||||||
|
::before,
|
||||||
|
::after {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.5;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-fill {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
[v-cloak] {
|
||||||
|
display: none;
|
||||||
|
}
|
94
src/assets/styles/device.css
Normal file
94
src/assets/styles/device.css
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-select {
|
||||||
|
padding: 10px 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-select {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
height: 40px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
/* width: 100%; */
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-select:focus {
|
||||||
|
border-color: #2b90d9;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-preview {
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-preview-head {
|
||||||
|
background-color: #2b2b2b;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-navigate-info {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 12px;
|
||||||
|
height: 22px;
|
||||||
|
line-height: 22px;
|
||||||
|
padding: 0 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-navigate-left {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-navigate-time {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-navigate-right {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-navigate-operator {
|
||||||
|
margin: 0 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-signal-dot {
|
||||||
|
font-size: 30px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-battery {
|
||||||
|
font-size: 25px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-navigate-bar {
|
||||||
|
padding: 10px;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigate-left {
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigate-title {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigate-right {
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-preview-body {
|
||||||
|
border: none;
|
||||||
|
flex: 1;
|
||||||
|
}
|
54
src/assets/styles/login.css
Normal file
54
src/assets/styles/login.css
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
.form-container {
|
||||||
|
padding: 20px 15px;
|
||||||
|
width: 400px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-head {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-title {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input-group {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
height: 40px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
width: 100%;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input:focus {
|
||||||
|
border-color: #2b90d9;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login {
|
||||||
|
padding: 8px 12px;
|
||||||
|
background-color: #2b90d9;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login:hover {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login:active {
|
||||||
|
background-color: #a5dff9;
|
||||||
|
}
|
96
src/assets/styles/publish-program.css
Normal file
96
src/assets/styles/publish-program.css
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
#xpLogin {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.form-container {
|
||||||
|
padding: 20px 15px;
|
||||||
|
width: 600px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-head {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-title {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input-group {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
width: 600px;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.form-input-group span {
|
||||||
|
width: 100px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
height: 40px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
width: 67%;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input:focus {
|
||||||
|
border-color: #2b90d9;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
.exit-enter {
|
||||||
|
position: absolute;
|
||||||
|
right: 10%;
|
||||||
|
top: 5%;
|
||||||
|
background-color: #2b90d9;
|
||||||
|
padding: 8px 12px;
|
||||||
|
width: 100px;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login {
|
||||||
|
padding: 8px 12px;
|
||||||
|
background-color: #2b90d9;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
width: 67%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.btn-login-loading {
|
||||||
|
background: gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login:hover {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
.qrcode_info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.qrcode_info div {
|
||||||
|
margin: 8px 0;
|
||||||
|
}
|
||||||
|
.qrcode_father {
|
||||||
|
margin: 50px 0 0 0;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
#qrcode {
|
||||||
|
padding: 25px;
|
||||||
|
background: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
.cursor {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
@ -2,14 +2,14 @@
|
|||||||
* Author : OBKoro1
|
* Author : OBKoro1
|
||||||
* Date : 2019-12-25 15:15:42
|
* Date : 2019-12-25 15:15:42
|
||||||
* LastEditors : OBKoro1
|
* LastEditors : OBKoro1
|
||||||
* LastEditTime : 2019-12-25 17:49:37
|
* LastEditTime : 2019-12-26 20:55:02
|
||||||
* FilePath : /autoCommit/src/extension.ts
|
* FilePath : /autoCommit/src/extension.ts
|
||||||
* Description : 自动commit插件 入口
|
* Description : 自动commit插件 入口
|
||||||
* https://github.com/OBKoro1
|
* https://github.com/OBKoro1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import ExtensionLogic from './models/index'
|
// import ExtensionLogic from './models/index'
|
||||||
import { setExtensionContext } from './util/vscodeUtil'
|
import { setExtensionContext } from './util/vscodeUtil'
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +18,8 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
setExtensionContext(context)
|
setExtensionContext(context)
|
||||||
|
|
||||||
const autoCommit = vscode.commands.registerCommand('extension.autoCommit', () => {
|
const autoCommit = vscode.commands.registerCommand('extension.autoCommit', () => {
|
||||||
new ExtensionLogic(context)
|
// new ExtensionLogic(context)
|
||||||
|
vscode.window.showInformationMessage('hello koro22221')
|
||||||
})
|
})
|
||||||
|
|
||||||
// 当插件关闭时被清理的可清理列表
|
// 当插件关闭时被清理的可清理列表
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Author : OBKoro1
|
* Author : OBKoro1
|
||||||
* Date : 2019-12-26 13:49:02
|
* Date : 2019-12-26 13:49:02
|
||||||
* LastEditors : OBKoro1
|
* LastEditors : OBKoro1
|
||||||
* LastEditTime : 2019-12-26 15:24:08
|
* LastEditTime : 2019-12-26 20:04:51
|
||||||
* FilePath : /autoCommit/src/models/WebView.ts
|
* FilePath : /autoCommit/src/models/WebView.ts
|
||||||
* Description : 创建webview
|
* Description : 创建webview
|
||||||
* https://github.com/OBKoro1
|
* https://github.com/OBKoro1
|
||||||
@ -12,7 +12,7 @@ import * as vscode from 'vscode';
|
|||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import { showMessage } from '../util/vscodeUtil';
|
import { showMessage } from '../util/vscodeUtil';
|
||||||
import { webviewMsg } from '../util/dataStatement'
|
import { webviewMsg } from '../util/dataStatement';
|
||||||
|
|
||||||
// webview 设置
|
// webview 设置
|
||||||
interface WebviewPanelOption {
|
interface WebviewPanelOption {
|
||||||
@ -37,6 +37,7 @@ class WebView {
|
|||||||
// 获取资源地址
|
// 获取资源地址
|
||||||
// TODO: 打包
|
// TODO: 打包
|
||||||
const srcPath = process.env.NODE_ENV !== 'production' ? 'src' : 'dist';
|
const srcPath = process.env.NODE_ENV !== 'production' ? 'src' : 'dist';
|
||||||
|
console.log('srcPath', srcPath, process.env.NODE_ENV);
|
||||||
this.currentPanel = vscode.window.createWebviewPanel(
|
this.currentPanel = vscode.window.createWebviewPanel(
|
||||||
WebviewPanelOption.type,
|
WebviewPanelOption.type,
|
||||||
WebviewPanelOption.title,
|
WebviewPanelOption.title,
|
||||||
|
22
src/test/extension.test.ts
Normal file
22
src/test/extension.test.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
//
|
||||||
|
// Note: This example test is leveraging the Mocha test framework.
|
||||||
|
// Please refer to their documentation on https://mochajs.org/ for help.
|
||||||
|
//
|
||||||
|
|
||||||
|
// The module 'assert' provides assertion methods from node
|
||||||
|
import * as assert from 'assert';
|
||||||
|
|
||||||
|
// You can import and use all API from the 'vscode' module
|
||||||
|
// as well as import your extension to test it
|
||||||
|
// import * as vscode from 'vscode';
|
||||||
|
// import * as myExtension from '../extension';
|
||||||
|
|
||||||
|
// Defines a Mocha test suite to group tests of similar kind together
|
||||||
|
suite("Extension Tests", function () {
|
||||||
|
|
||||||
|
// Defines a Mocha unit test
|
||||||
|
test("Something 1", function() {
|
||||||
|
assert.equal(-1, [1, 2, 3].indexOf(5));
|
||||||
|
assert.equal(-1, [1, 2, 3].indexOf(0));
|
||||||
|
});
|
||||||
|
});
|
23
src/test/index.ts
Normal file
23
src/test/index.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
//
|
||||||
|
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||||
|
//
|
||||||
|
// This file is providing the test runner to use when running extension tests.
|
||||||
|
// By default the test runner in use is Mocha based.
|
||||||
|
//
|
||||||
|
// You can provide your own test runner if you want to override it by exporting
|
||||||
|
// a function run(testsRoot: string, clb: (error: Error, failures?: number) => void): void
|
||||||
|
// that the extension host can call to run the tests. The test runner is expected to use console.log
|
||||||
|
// to report the results back to the caller. When the tests are finished, return
|
||||||
|
// a possible error to the callback or null if none.
|
||||||
|
|
||||||
|
import * as testRunner from 'vscode/lib/testrunner';
|
||||||
|
|
||||||
|
// You can directly control Mocha options by configuring the test runner below
|
||||||
|
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options
|
||||||
|
// for more info
|
||||||
|
testRunner.configure({
|
||||||
|
ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.)
|
||||||
|
useColors: true // colored output from test results
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = testRunner;
|
@ -1,23 +0,0 @@
|
|||||||
import * as path from 'path';
|
|
||||||
|
|
||||||
import { runTests } from 'vscode-test';
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
try {
|
|
||||||
// The folder containing the Extension Manifest package.json
|
|
||||||
// Passed to `--extensionDevelopmentPath`
|
|
||||||
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
|
|
||||||
|
|
||||||
// The path to test runner
|
|
||||||
// Passed to --extensionTestsPath
|
|
||||||
const extensionTestsPath = path.resolve(__dirname, './suite/index');
|
|
||||||
|
|
||||||
// Download VS Code, unzip it and run the integration test
|
|
||||||
await runTests({ extensionDevelopmentPath, extensionTestsPath });
|
|
||||||
} catch (err) {
|
|
||||||
console.error('Failed to run tests');
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
@ -1,15 +0,0 @@
|
|||||||
import * as assert from 'assert';
|
|
||||||
|
|
||||||
// You can import and use all API from the 'vscode' module
|
|
||||||
// as well as import your extension to test it
|
|
||||||
import * as vscode from 'vscode';
|
|
||||||
// import * as myExtension from '../extension';
|
|
||||||
|
|
||||||
suite('Extension Test Suite', () => {
|
|
||||||
vscode.window.showInformationMessage('Start all tests.');
|
|
||||||
|
|
||||||
test('Sample test', () => {
|
|
||||||
assert.equal(-1, [1, 2, 3].indexOf(5));
|
|
||||||
assert.equal(-1, [1, 2, 3].indexOf(0));
|
|
||||||
});
|
|
||||||
});
|
|
@ -1,37 +0,0 @@
|
|||||||
import * as path from 'path';
|
|
||||||
import * as Mocha from 'mocha';
|
|
||||||
import * as glob from 'glob';
|
|
||||||
|
|
||||||
export function run(): Promise<void> {
|
|
||||||
// Create the mocha test
|
|
||||||
const mocha = new Mocha({
|
|
||||||
ui: 'tdd',
|
|
||||||
});
|
|
||||||
mocha.useColors(true);
|
|
||||||
|
|
||||||
const testsRoot = path.resolve(__dirname, '..');
|
|
||||||
|
|
||||||
return new Promise((c, e) => {
|
|
||||||
glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
|
|
||||||
if (err) {
|
|
||||||
return e(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add files to the test suite
|
|
||||||
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
|
|
||||||
|
|
||||||
try {
|
|
||||||
// Run the mocha test
|
|
||||||
mocha.run(failures => {
|
|
||||||
if (failures > 0) {
|
|
||||||
e(new Error(`${failures} tests failed.`));
|
|
||||||
} else {
|
|
||||||
c();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} catch (err) {
|
|
||||||
e(err);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
@ -2,7 +2,7 @@
|
|||||||
* Author : OBKoro1
|
* Author : OBKoro1
|
||||||
* Date : 2019-12-26 17:42:32
|
* Date : 2019-12-26 17:42:32
|
||||||
* LastEditors : OBKoro1
|
* LastEditors : OBKoro1
|
||||||
* LastEditTime : 2019-12-26 17:44:26
|
* LastEditTime : 2019-12-26 20:04:14
|
||||||
* FilePath : /autoCommit/webpack.config.js
|
* FilePath : /autoCommit/webpack.config.js
|
||||||
* Description : webpack 配置
|
* Description : webpack 配置
|
||||||
* https://github.com/OBKoro1
|
* https://github.com/OBKoro1
|
||||||
@ -55,14 +55,6 @@ const config = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// {
|
|
||||||
// test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
|
|
||||||
// loader: 'url-loader',
|
|
||||||
// options: {
|
|
||||||
// limit: 10000,
|
|
||||||
// name: pathResolve(`${outputPathName}/fonts/[name].[hash:7].[ext]`)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
Loading…
Reference in New Issue
Block a user