feat: 全量同步 254 个常用的 Arduino 扩展库文件
@@ -0,0 +1,2 @@
|
||||
> 1%
|
||||
last 2 versions
|
||||
17
arduino-libs/arduino-cli/libraries/WebSerial/ui/.eslintrc.js
Normal file
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
'extends': [
|
||||
'plugin:vue/essential',
|
||||
'eslint:recommended'
|
||||
],
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||
},
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint'
|
||||
}
|
||||
}
|
||||
21
arduino-libs/arduino-cli/libraries/WebSerial/ui/.gitignore
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
29
arduino-libs/arduino-cli/libraries/WebSerial/ui/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# webpage
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Run your tests
|
||||
```
|
||||
npm run test
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
npm run lint
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/app'
|
||||
]
|
||||
}
|
||||
66
arduino-libs/arduino-cli/libraries/WebSerial/ui/finalize.js
Normal file
@@ -0,0 +1,66 @@
|
||||
// Finalize Nodejs Script
|
||||
// 1 - Append JS in HTML Document
|
||||
// 2 - Gzip HTML
|
||||
// 3 - Covert to Raw Bytes
|
||||
// 4 - ( Save to File: webpage.h ) in dist Folder
|
||||
|
||||
const fs = require('fs');
|
||||
const zlib = require('zlib');
|
||||
const { gzip } = require('@gfx/zopfli');
|
||||
|
||||
function getByteArray(file){
|
||||
let fileData = file.toString('hex');
|
||||
let result = [];
|
||||
for (let i = 0; i < fileData.length; i+=2)
|
||||
result.push('0x'+fileData[i]+''+fileData[i+1]);
|
||||
return result;
|
||||
}
|
||||
|
||||
let js = fs.readFileSync(__dirname+'/dist/js/app.js');
|
||||
let html = `
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>WebSerial</title>
|
||||
<script data-name="BMC-Widget" async src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="6QGVpSj" data-description="Support me on Buy me a coffee!" data-message="You can always support my work by buying me a coffee!" data-color="#FF813F" data-position="right" data-x_margin="24" data-y_margin="24"></script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but WebSerial doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<script>${js}</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
`;
|
||||
// Gzip the index.html file with JS Code.
|
||||
const gzippedIndex = zlib.gzipSync(html, {'level': zlib.constants.Z_BEST_COMPRESSION});
|
||||
let indexHTML = getByteArray(gzippedIndex);
|
||||
|
||||
let source =
|
||||
`
|
||||
const uint32_t WEBSERIAL_HTML_SIZE = ${indexHTML.length};
|
||||
const uint8_t WEBSERIAL_HTML[] PROGMEM = { ${indexHTML} };
|
||||
`;
|
||||
|
||||
|
||||
fs.writeFileSync(__dirname+'/dist/webpage.h', source, 'utf8');
|
||||
|
||||
// Produce a second variant with zopfli
|
||||
// Zopfli is a improved zip algorithm by google
|
||||
// Takes much more time and maybe is not available on every machine
|
||||
const input = html;
|
||||
gzip(input, {numiterations: 15}, (err, output) => {
|
||||
indexHTML = output;
|
||||
let source =
|
||||
`
|
||||
const uint32_t WEBSERIAL_HTML_SIZE = ${indexHTML.length};
|
||||
const uint8_t WEBSERIAL_HTML[] PROGMEM = { ${indexHTML} };
|
||||
`;
|
||||
|
||||
fs.writeFileSync(__dirname + '/dist/webpage_zopfli.h', source, 'utf8');
|
||||
});
|
||||
31
arduino-libs/arduino-cli/libraries/WebSerial/ui/package.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "webpage",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gfx/zopfli": "^1.0.14",
|
||||
"bootstrap": "^4.5.0",
|
||||
"core-js": "^2.6.11",
|
||||
"shards-ui": "^2.1.2",
|
||||
"vue": "^2.6.11",
|
||||
"vue-feather-icons": "^4.22.0",
|
||||
"webpack-shell-plugin": "^0.5.0",
|
||||
"zlib": "^1.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "^3.12.1",
|
||||
"@vue/cli-plugin-eslint": "^3.12.1",
|
||||
"@vue/cli-service": "^3.12.1",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-vue": "^5.2.3",
|
||||
"node-sass": "^4.14.1",
|
||||
"sass-loader": "^7.3.1",
|
||||
"vue-template-compiler": "^2.6.11"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
autoprefixer: {}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<script data-name="BMC-Widget" async src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="6QGVpSj" data-description="Support me on Buy me a coffee!" data-message="You can always support my work by buying me a coffee!" data-color="#FF813F" data-position="right" data-x_margin="24" data-y_margin="24"></script>
|
||||
<title>WebSerial</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but WebSerial doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</html>
|
||||
104
arduino-libs/arduino-cli/libraries/WebSerial/ui/src/App.vue
Normal file
|
After Width: | Height: | Size: 31 KiB |
@@ -0,0 +1 @@
|
||||
<svg data-v-1084b650="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><!----> <!----> <rect data-v-1084b650="" fill="#ffffff" x="0" y="0" width="300px" height="300px" class="logo-background-square"></rect> <!----> <g data-v-1084b650="" id="d7502212-c2b5-47a9-9e9a-6de306647d47" fill="#000000" transform="matrix(3.6999999999999993,0,0,3.6999999999999993,33.209496116638206,162.3025005578995)"><path d="M11.32 3.82L9.14 11.07L7.07 3.82L5.83 3.82L3.75 11.07L1.57 3.82L0 3.82L3.08 13.15L4.33 13.15L6.45 5.96L8.56 13.15L9.81 13.15L12.88 3.82ZM20.07 9.70C20.07 7.73 18.74 6.36 16.81 6.36C14.83 6.36 13.40 7.89 13.40 9.84C13.40 11.80 14.82 13.31 16.99 13.31C18.13 13.31 19.09 12.92 19.69 12.25L18.71 11.46C18.29 11.94 17.72 12.19 16.98 12.19C15.74 12.19 14.99 11.33 14.89 10.15L20.07 10.15ZM16.81 7.50C17.85 7.50 18.52 8.12 18.67 9.17L14.95 9.17C15.15 8.17 15.84 7.50 16.81 7.50ZM25.07 6.36C24.12 6.36 23.39 6.72 22.88 7.32L22.88 3.24L21.47 3.24L21.47 13.15L22.62 13.15L22.79 12.25C23.30 12.91 24.08 13.31 25.07 13.31C26.79 13.31 28.16 12.00 28.16 9.84C28.16 7.69 26.79 6.36 25.07 6.36ZM24.73 12.12C23.49 12.12 22.69 11.14 22.69 9.84C22.69 8.55 23.49 7.55 24.73 7.55C25.93 7.55 26.72 8.55 26.72 9.84C26.72 11.14 25.93 12.12 24.73 12.12ZM32.58 13.34C34.04 13.34 35.76 12.59 35.76 10.65C35.76 9.17 34.61 8.31 33.19 7.82C31.79 7.31 31.27 6.91 31.27 6.14C31.27 5.40 31.92 4.87 32.75 4.87C33.48 4.87 34.01 5.13 34.64 5.70L35.60 4.71C34.93 4.08 34.08 3.59 32.75 3.59C31.16 3.59 29.74 4.64 29.74 6.15C29.74 7.86 30.90 8.46 32.45 9.01C33.40 9.35 34.18 9.79 34.18 10.70C34.18 11.61 33.31 12.06 32.49 12.06C31.59 12.06 30.84 11.72 30.17 10.89L29.12 11.90C29.95 12.83 31.03 13.34 32.58 13.34ZM43.66 9.70C43.66 7.73 42.34 6.36 40.41 6.36C38.43 6.36 37.00 7.89 37.00 9.84C37.00 11.80 38.41 13.31 40.59 13.31C41.72 13.31 42.69 12.92 43.28 12.25L42.31 11.46C41.88 11.94 41.31 12.19 40.57 12.19C39.33 12.19 38.59 11.33 38.49 10.15L43.66 10.15ZM40.41 7.50C41.45 7.50 42.12 8.12 42.26 9.17L38.54 9.17C38.75 8.17 39.43 7.50 40.41 7.50ZM48.15 6.36C47.37 6.36 46.84 6.74 46.46 7.41L46.29 6.53L45.06 6.53L45.06 13.15L46.48 13.15L46.48 9.70C46.48 8.62 47.05 7.66 48.08 7.66C48.31 7.66 48.53 7.70 48.72 7.79L49.15 6.58C48.97 6.47 48.59 6.36 48.15 6.36ZM50.88 5.26C51.39 5.26 51.80 4.86 51.80 4.36C51.80 3.86 51.39 3.46 50.88 3.46C50.39 3.46 49.98 3.86 49.98 4.36C49.98 4.86 50.39 5.26 50.88 5.26ZM50.21 13.15L51.60 13.15L51.60 6.53L50.21 6.53ZM58.74 6.53L58.55 7.45C58.04 6.78 57.27 6.36 56.25 6.36C54.53 6.36 53.16 7.69 53.16 9.84C53.16 12.00 54.53 13.31 56.25 13.31C57.25 13.31 58.03 12.89 58.54 12.22L58.74 13.15L59.91 13.15L59.91 6.53ZM56.58 12.12C55.39 12.12 54.60 11.14 54.60 9.84C54.60 8.55 55.39 7.55 56.58 7.55C57.82 7.55 58.63 8.55 58.63 9.84C58.63 11.14 57.82 12.12 56.58 12.12ZM61.72 13.15L63.13 13.15L63.13 3.24L61.72 3.24Z"></path></g> <linearGradient data-v-1084b650="" gradientTransform="rotate(25)" id="bca9ff0e-cff8-cde9-7360-e38a7e63fb02" x1="0%" y1="0%" x2="100%" y2="0%"><stop data-v-1084b650="" offset="0%" style="stop-color: rgb(65, 226, 150); stop-opacity: 1;"></stop> <stop data-v-1084b650="" offset="100%" style="stop-color: rgb(0, 196, 238); stop-opacity: 1;"></stop></linearGradient> <g data-v-1084b650="" id="efadc882-f2ad-7f4b-759c-e67e6e81050a" fill="url(#bca9ff0e-cff8-cde9-7360-e38a7e63fb02)" stroke="none" transform="matrix(0.2491333427429199,0,0,0.2491333427429199,107.3223167794656,88.33949794769288)"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve"><g><rect x="6.333" y="1.5" width="9.097" height="3"></rect><rect x="6.333" y="8" width="15.36" height="3"></rect><rect x="6.333" y="14.5" width="24.159" height="3"></rect><rect x="6.333" y="21" width="15.36" height="3"></rect><rect x="6.333" y="27.5" width="9.097" height="3"></rect><rect x="0" y="0" width="3" height="32"></rect></g></svg></g></svg>
|
||||
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1 @@
|
||||
<svg data-v-5f19e91b="" xmlns="http://www.w3.org/2000/svg" width="406" height="12" viewBox="0 0 406 12"><!----> <!----> <!----> <g data-v-5f19e91b="" id="c5040fad-f837-8c4c-ef2e-097f9bab4681" fill="black" transform="matrix(5.940593835033989,0,0,5.940593835033989,30.84159582968411,-43.558635293940775)"><path d="M11.32 3.82L9.14 11.07L7.07 3.82L5.83 3.82L3.75 11.07L1.57 3.82L0 3.82L3.08 13.15L4.33 13.15L6.45 5.96L8.56 13.15L9.81 13.15L12.88 3.82ZM20.07 9.70C20.07 7.73 18.74 6.36 16.81 6.36C14.83 6.36 13.40 7.89 13.40 9.84C13.40 11.80 14.82 13.31 16.99 13.31C18.13 13.31 19.09 12.92 19.69 12.25L18.71 11.46C18.29 11.94 17.72 12.19 16.98 12.19C15.74 12.19 14.99 11.33 14.89 10.15L20.07 10.15ZM16.81 7.50C17.85 7.50 18.52 8.12 18.67 9.17L14.95 9.17C15.15 8.17 15.84 7.50 16.81 7.50ZM25.07 6.36C24.12 6.36 23.39 6.72 22.88 7.32L22.88 3.24L21.47 3.24L21.47 13.15L22.62 13.15L22.79 12.25C23.30 12.91 24.08 13.31 25.07 13.31C26.79 13.31 28.16 12.00 28.16 9.84C28.16 7.69 26.79 6.36 25.07 6.36ZM24.73 12.12C23.49 12.12 22.69 11.14 22.69 9.84C22.69 8.55 23.49 7.55 24.73 7.55C25.93 7.55 26.72 8.55 26.72 9.84C26.72 11.14 25.93 12.12 24.73 12.12ZM32.58 13.34C34.04 13.34 35.76 12.59 35.76 10.65C35.76 9.17 34.61 8.31 33.19 7.82C31.79 7.31 31.27 6.91 31.27 6.14C31.27 5.40 31.92 4.87 32.75 4.87C33.48 4.87 34.01 5.13 34.64 5.70L35.60 4.71C34.93 4.08 34.08 3.59 32.75 3.59C31.16 3.59 29.74 4.64 29.74 6.15C29.74 7.86 30.90 8.46 32.45 9.01C33.40 9.35 34.18 9.79 34.18 10.70C34.18 11.61 33.31 12.06 32.49 12.06C31.59 12.06 30.84 11.72 30.17 10.89L29.12 11.90C29.95 12.83 31.03 13.34 32.58 13.34ZM43.66 9.70C43.66 7.73 42.34 6.36 40.41 6.36C38.43 6.36 37.00 7.89 37.00 9.84C37.00 11.80 38.41 13.31 40.59 13.31C41.72 13.31 42.69 12.92 43.28 12.25L42.31 11.46C41.88 11.94 41.31 12.19 40.57 12.19C39.33 12.19 38.59 11.33 38.49 10.15L43.66 10.15ZM40.41 7.50C41.45 7.50 42.12 8.12 42.26 9.17L38.54 9.17C38.75 8.17 39.43 7.50 40.41 7.50ZM48.15 6.36C47.37 6.36 46.84 6.74 46.46 7.41L46.29 6.53L45.06 6.53L45.06 13.15L46.48 13.15L46.48 9.70C46.48 8.62 47.05 7.66 48.08 7.66C48.31 7.66 48.53 7.70 48.72 7.79L49.15 6.58C48.97 6.47 48.59 6.36 48.15 6.36ZM50.88 5.26C51.39 5.26 51.80 4.86 51.80 4.36C51.80 3.86 51.39 3.46 50.88 3.46C50.39 3.46 49.98 3.86 49.98 4.36C49.98 4.86 50.39 5.26 50.88 5.26ZM50.21 13.15L51.60 13.15L51.60 6.53L50.21 6.53ZM58.74 6.53L58.55 7.45C58.04 6.78 57.27 6.36 56.25 6.36C54.53 6.36 53.16 7.69 53.16 9.84C53.16 12.00 54.53 13.31 56.25 13.31C57.25 13.31 58.03 12.89 58.54 12.22L58.74 13.15L59.91 13.15L59.91 6.53ZM56.58 12.12C55.39 12.12 54.60 11.14 54.60 9.84C54.60 8.55 55.39 7.55 56.58 7.55C57.82 7.55 58.63 8.55 58.63 9.84C58.63 11.14 57.82 12.12 56.58 12.12ZM61.72 13.15L63.13 13.15L63.13 3.24L61.72 3.24Z"></path></g> <!----> <g data-v-5f19e91b="" id="86927a0b-7aa0-61a4-61e7-056846d5a346" transform="matrix(0.35555555555555557,0,0,0.35555555555555557,0.5791998969184027,0.3111111111111109)" stroke="none" fill="black"><g><rect x="6.333" y="1.5" width="9.097" height="3"></rect><rect x="6.333" y="8" width="15.36" height="3"></rect><rect x="6.333" y="14.5" width="24.159" height="3"></rect><rect x="6.333" y="21" width="15.36" height="3"></rect><rect x="6.333" y="27.5" width="9.097" height="3"></rect><rect x="0" y="0" width="3" height="32"></rect></g></g></svg>
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 20 KiB |
@@ -0,0 +1 @@
|
||||
<svg data-v-5f19e91b="" xmlns="http://www.w3.org/2000/svg" width="406" height="12" viewBox="0 0 406 12"><!----> <!----> <!----> <g data-v-5f19e91b="" id="288c74eb-c144-e488-e20c-441431a914ba" fill="white" transform="matrix(5.940593835033989,0,0,5.940593835033989,30.84159582968411,-43.558635293940775)"><path d="M11.32 3.82L9.14 11.07L7.07 3.82L5.83 3.82L3.75 11.07L1.57 3.82L0 3.82L3.08 13.15L4.33 13.15L6.45 5.96L8.56 13.15L9.81 13.15L12.88 3.82ZM20.07 9.70C20.07 7.73 18.74 6.36 16.81 6.36C14.83 6.36 13.40 7.89 13.40 9.84C13.40 11.80 14.82 13.31 16.99 13.31C18.13 13.31 19.09 12.92 19.69 12.25L18.71 11.46C18.29 11.94 17.72 12.19 16.98 12.19C15.74 12.19 14.99 11.33 14.89 10.15L20.07 10.15ZM16.81 7.50C17.85 7.50 18.52 8.12 18.67 9.17L14.95 9.17C15.15 8.17 15.84 7.50 16.81 7.50ZM25.07 6.36C24.12 6.36 23.39 6.72 22.88 7.32L22.88 3.24L21.47 3.24L21.47 13.15L22.62 13.15L22.79 12.25C23.30 12.91 24.08 13.31 25.07 13.31C26.79 13.31 28.16 12.00 28.16 9.84C28.16 7.69 26.79 6.36 25.07 6.36ZM24.73 12.12C23.49 12.12 22.69 11.14 22.69 9.84C22.69 8.55 23.49 7.55 24.73 7.55C25.93 7.55 26.72 8.55 26.72 9.84C26.72 11.14 25.93 12.12 24.73 12.12ZM32.58 13.34C34.04 13.34 35.76 12.59 35.76 10.65C35.76 9.17 34.61 8.31 33.19 7.82C31.79 7.31 31.27 6.91 31.27 6.14C31.27 5.40 31.92 4.87 32.75 4.87C33.48 4.87 34.01 5.13 34.64 5.70L35.60 4.71C34.93 4.08 34.08 3.59 32.75 3.59C31.16 3.59 29.74 4.64 29.74 6.15C29.74 7.86 30.90 8.46 32.45 9.01C33.40 9.35 34.18 9.79 34.18 10.70C34.18 11.61 33.31 12.06 32.49 12.06C31.59 12.06 30.84 11.72 30.17 10.89L29.12 11.90C29.95 12.83 31.03 13.34 32.58 13.34ZM43.66 9.70C43.66 7.73 42.34 6.36 40.41 6.36C38.43 6.36 37.00 7.89 37.00 9.84C37.00 11.80 38.41 13.31 40.59 13.31C41.72 13.31 42.69 12.92 43.28 12.25L42.31 11.46C41.88 11.94 41.31 12.19 40.57 12.19C39.33 12.19 38.59 11.33 38.49 10.15L43.66 10.15ZM40.41 7.50C41.45 7.50 42.12 8.12 42.26 9.17L38.54 9.17C38.75 8.17 39.43 7.50 40.41 7.50ZM48.15 6.36C47.37 6.36 46.84 6.74 46.46 7.41L46.29 6.53L45.06 6.53L45.06 13.15L46.48 13.15L46.48 9.70C46.48 8.62 47.05 7.66 48.08 7.66C48.31 7.66 48.53 7.70 48.72 7.79L49.15 6.58C48.97 6.47 48.59 6.36 48.15 6.36ZM50.88 5.26C51.39 5.26 51.80 4.86 51.80 4.36C51.80 3.86 51.39 3.46 50.88 3.46C50.39 3.46 49.98 3.86 49.98 4.36C49.98 4.86 50.39 5.26 50.88 5.26ZM50.21 13.15L51.60 13.15L51.60 6.53L50.21 6.53ZM58.74 6.53L58.55 7.45C58.04 6.78 57.27 6.36 56.25 6.36C54.53 6.36 53.16 7.69 53.16 9.84C53.16 12.00 54.53 13.31 56.25 13.31C57.25 13.31 58.03 12.89 58.54 12.22L58.74 13.15L59.91 13.15L59.91 6.53ZM56.58 12.12C55.39 12.12 54.60 11.14 54.60 9.84C54.60 8.55 55.39 7.55 56.58 7.55C57.82 7.55 58.63 8.55 58.63 9.84C58.63 11.14 57.82 12.12 56.58 12.12ZM61.72 13.15L63.13 13.15L63.13 3.24L61.72 3.24Z"></path></g> <!----> <g data-v-5f19e91b="" id="a6e22006-3b54-b531-e8ca-712e665df90a" transform="matrix(0.35555555555555557,0,0,0.35555555555555557,0.5791998969184027,0.3111111111111109)" stroke="none" fill="white"><g><rect x="6.333" y="1.5" width="9.097" height="3"></rect><rect x="6.333" y="8" width="15.36" height="3"></rect><rect x="6.333" y="14.5" width="24.159" height="3"></rect><rect x="6.333" y="21" width="15.36" height="3"></rect><rect x="6.333" y="27.5" width="9.097" height="3"></rect><rect x="0" y="0" width="3" height="32"></rect></g></g></svg>
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 24 KiB |
@@ -0,0 +1 @@
|
||||
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 300 94"><defs><style>.cls-1{fill:url(#linear-gradient);}.cls-2{fill:url(#linear-gradient-2);}.cls-3{fill:url(#linear-gradient-3);}.cls-4{fill:url(#linear-gradient-4);}.cls-5{fill:url(#linear-gradient-5);}.cls-6{fill:url(#linear-gradient-6);}</style><linearGradient id="linear-gradient" x1="-80.51" y1="273.53" x2="-79.51" y2="273.53" gradientTransform="matrix(10.93, 1.68, 5.1, -3.6, -474.02, 1150.82)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#41e296"/><stop offset="1" stop-color="#00c4ee"/></linearGradient><linearGradient id="linear-gradient-2" x1="-83.54" y1="272.11" x2="-82.54" y2="272.11" gradientTransform="matrix(18.45, 1.68, 8.61, -3.6, -760.66, 1159.44)" xlink:href="#linear-gradient"/><linearGradient id="linear-gradient-3" x1="-85.15" y1="271.36" x2="-84.15" y2="271.36" gradientTransform="matrix(29.03, 1.68, 13.53, -3.6, -1163.37, 1168.06)" xlink:href="#linear-gradient"/><linearGradient id="linear-gradient-4" x1="-83.54" y1="272.11" x2="-82.54" y2="272.11" gradientTransform="matrix(18.45, 1.68, 8.61, -3.6, -760.66, 1176.67)" xlink:href="#linear-gradient"/><linearGradient id="linear-gradient-5" x1="-80.51" y1="273.53" x2="-79.51" y2="273.53" gradientTransform="matrix(10.93, 1.68, 5.1, -3.6, -474.02, 1185.29)" xlink:href="#linear-gradient"/><linearGradient id="linear-gradient-6" x1="-75.4" y1="302.06" x2="-74.4" y2="302.06" gradientTransform="matrix(3.6, 17.93, 1.68, -38.45, -203.37, 13000.61)" xlink:href="#linear-gradient"/></defs><title>Artboard 1</title><g id="c32d7929-c758-99d9-443c-1ff065e055ec"><path d="M126.52,35.48l-6.1,20.3-5.8-20.3h-3.47l-5.82,20.3-6.11-20.3H94.83l8.62,26.13H107l5.94-20.13,5.91,20.13h3.5l8.59-26.13ZM151,52c0-5.52-3.72-9.35-9.12-9.35a9.43,9.43,0,0,0-9.55,9.74c0,5.49,4,9.72,10.05,9.72a10,10,0,0,0,7.56-3l-2.74-2.21a6.13,6.13,0,0,1-4.85,2c-3.47,0-5.57-2.41-5.85-5.71H151Zm-9.12-6.16c2.91,0,4.78,1.73,5.2,4.67H136.69C137.25,47.66,139.18,45.79,141.9,45.79ZM165,42.6a7.71,7.71,0,0,0-6.13,2.68V33.86h-3.95V61.61h3.22l.48-2.52a7.77,7.77,0,0,0,6.38,3c4.82,0,8.66-3.67,8.66-9.72S169.84,42.6,165,42.6Zm-1,16.12c-3.47,0-5.71-2.74-5.71-6.38s2.24-6.41,5.71-6.41,5.57,2.8,5.57,6.41S167.43,58.72,164.07,58.72Zm22,3.42c4.09,0,8.91-2.1,8.91-7.53,0-4.15-3.22-6.55-7.2-7.93s-5.38-2.54-5.38-4.7,1.82-3.56,4.15-3.56a7.34,7.34,0,0,1,5.29,2.33L194.51,38a10.91,10.91,0,0,0-8-3.14c-4.45,0-8.43,2.94-8.43,7.17,0,4.79,3.25,6.47,7.59,8,2.66.95,4.84,2.18,4.84,4.73s-2.43,3.81-4.73,3.81a7.92,7.92,0,0,1-6.5-3.28l-2.94,2.83C178.69,60.71,181.71,62.14,186.05,62.14Zm31-10.19c0-5.52-3.7-9.35-9.1-9.35a9.43,9.43,0,0,0-9.55,9.74c0,5.49,3.95,9.72,10,9.72a9.91,9.91,0,0,0,7.53-3l-2.71-2.21a6.22,6.22,0,0,1-4.88,2c-3.47,0-5.54-2.41-5.82-5.71h14.48ZM208,45.79c2.91,0,4.78,1.73,5.18,4.67H202.74C203.33,47.66,205.23,45.79,208,45.79Zm21.67-3.19a5.13,5.13,0,0,0-4.73,2.94l-.48-2.47H221V61.61h4V52c0-3,1.6-5.71,4.48-5.71a4.18,4.18,0,0,1,1.79.36l1.21-3.39A5.92,5.92,0,0,0,229.65,42.6Zm7.64-3.08A2.52,2.52,0,1,0,234.77,37,2.54,2.54,0,0,0,237.29,39.52Zm-1.87,22.09h3.89V43.07h-3.89ZM259.3,43.07l-.53,2.58a7.75,7.75,0,0,0-6.44-3c-4.82,0-8.65,3.72-8.65,9.74s3.83,9.72,8.65,9.72A7.77,7.77,0,0,0,258.74,59l.56,2.61h3.28V43.07Zm-6.05,15.65c-3.33,0-5.54-2.74-5.54-6.38s2.21-6.41,5.54-6.41,5.74,2.8,5.74,6.41S256.72,58.72,253.25,58.72Zm14.39,2.89h3.95V33.86h-3.95Z"/></g><g id="dd3b708d-f65d-6e48-498a-f48c308d4368"><rect class="cls-1" x="41.33" y="28.78" width="12.06" height="3.98"/><rect class="cls-2" x="41.33" y="37.39" width="20.36" height="3.98"/><rect class="cls-3" x="41.33" y="46.01" width="32.03" height="3.98"/><rect class="cls-4" x="41.33" y="54.63" width="20.36" height="3.98"/><rect class="cls-5" x="41.33" y="63.24" width="12.06" height="3.98"/><rect class="cls-6" x="32.93" y="26.79" width="3.98" height="42.42"/></g></svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 30 KiB |
@@ -0,0 +1 @@
|
||||
<svg data-v-1084b650="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><!----> <!----> <rect data-v-1084b650="" fill="#ffffff" x="0" y="0" width="300px" height="300px" class="logo-background-square"></rect> <!----> <linearGradient data-v-1084b650="" gradientTransform="rotate(25)" id="c71efd04-a1e4-2949-b859-20c919119def" x1="0%" y1="0%" x2="100%" y2="0%"><stop data-v-1084b650="" offset="0%" style="stop-color: rgb(65, 226, 150); stop-opacity: 1;"></stop> <stop data-v-1084b650="" offset="100%" style="stop-color: rgb(0, 196, 238); stop-opacity: 1;"></stop></linearGradient> <g data-v-1084b650="" id="2ff95d37-9e87-958c-97a4-0d3377dddac7" fill="url(#c71efd04-a1e4-2949-b859-20c919119def)" stroke="none" transform="matrix(0.6999999999999997,0,0,0.6999999999999997,49.94811859130863,45.00000000000004)"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve"><g><rect x="6.333" y="1.5" width="9.097" height="3"></rect><rect x="6.333" y="8" width="15.36" height="3"></rect><rect x="6.333" y="14.5" width="24.159" height="3"></rect><rect x="6.333" y="21" width="15.36" height="3"></rect><rect x="6.333" y="27.5" width="9.097" height="3"></rect><rect x="0" y="0" width="3" height="32"></rect></g></svg></g></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,14 @@
|
||||
|
||||
Hope you enjoy your new logo, here are the people that
|
||||
made your beautiful logo happen :)
|
||||
|
||||
font name: clarikageo-medium
|
||||
font link: https://www.fontspring.com/fonts/the-refinery/clarika/clarika-geometric-medium
|
||||
font author: The Refinery
|
||||
font author site: https://www.refinerybrand.com/
|
||||
|
||||
icon designer: AlfredoCreates @ flaticondesign.com
|
||||
icon designer link: /AlfredoCreates
|
||||
|
||||
{"bg":"#ffffff","font":"#000000","icon-gradient-0":"#41E296","icon-gradient-1":"#00C4EE"}
|
||||
|
||||
10
arduino-libs/arduino-cli/libraries/WebSerial/ui/src/main.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App.vue'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
import './style.sass';
|
||||
import './shards.scss';
|
||||
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
}).$mount('#app')
|
||||
@@ -0,0 +1,16 @@
|
||||
// Core
|
||||
@import "bootstrap/scss/_functions.scss";
|
||||
|
||||
@import "shards-ui/src/scss/_mixins.scss";
|
||||
@import "shards-ui/src/scss/_variables.scss";
|
||||
@import "shards-ui/src/scss/_root.scss";
|
||||
@import "shards-ui/src/scss/_reboot.scss";
|
||||
@import "shards-ui/src/scss/_type.scss";
|
||||
@import "shards-ui/src/scss/_forms.scss";
|
||||
@import "shards-ui/src/scss/_input-group.scss";
|
||||
@import "shards-ui/src/scss/_custom-forms.scss";
|
||||
@import "shards-ui/src/scss/_buttons.scss";
|
||||
|
||||
// Components
|
||||
@import "shards-ui/src/scss/_card.scss";
|
||||
@import "shards-ui/src/scss/_utilities.scss";
|
||||
@@ -0,0 +1,44 @@
|
||||
import Vue from "vue"
|
||||
|
||||
let host = "ws://"+document.location.host+"/webserialws";
|
||||
|
||||
// let host = "ws://192.168.1.x/dashws"; // For Local Testing via npm run serve
|
||||
|
||||
const socket = new WebSocket(host);
|
||||
|
||||
|
||||
const emitter = new Vue({
|
||||
methods:{
|
||||
send(message){
|
||||
if (1 === socket.readyState)
|
||||
socket.send(message)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
socket.onopen = function(){
|
||||
emitter.$emit("connected");
|
||||
};
|
||||
|
||||
socket.onclose = function(){
|
||||
emitter.$emit("disconnected");
|
||||
};
|
||||
|
||||
socket.onmessage = function(msg){
|
||||
emitter.$emit("message", msg.data);
|
||||
};
|
||||
|
||||
socket.onerror = function(err){
|
||||
emitter.$emit("error", err)
|
||||
};
|
||||
|
||||
|
||||
setInterval(() => {
|
||||
if(socket.readyState == 0){
|
||||
emitter.$emit("disconnected");
|
||||
}else if(socket.readyState === 3){
|
||||
location.reload();
|
||||
}
|
||||
}, 1500);
|
||||
|
||||
export default emitter
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
@import "bootstrap/scss/_functions.scss";
|
||||
|
||||
@import "bootstrap/scss/_variables.scss";
|
||||
@import "bootstrap/scss/_mixins.scss";
|
||||
@import "bootstrap/scss/_root.scss";
|
||||
@import "bootstrap/scss/_reboot.scss";
|
||||
@import "bootstrap/scss/_type.scss";
|
||||
@import 'bootstrap/scss/_grid.scss';
|
||||
@import 'bootstrap/scss/_forms.scss';
|
||||
@import 'bootstrap/scss/_custom-forms.scss';
|
||||
@import 'bootstrap/scss/_buttons.scss';
|
||||
@import 'bootstrap/scss/_card.scss';
|
||||
@import 'bootstrap/scss/_spinners.scss';
|
||||
@import 'bootstrap/scss/_utilities.scss';
|
||||
@@ -0,0 +1,29 @@
|
||||
const WebpackShellPlugin = require('webpack-shell-plugin');
|
||||
|
||||
module.exports = {
|
||||
pluginOptions: {
|
||||
'style-resources-loader': {
|
||||
preProcessor: 'scss',
|
||||
patterns: []
|
||||
}
|
||||
},
|
||||
|
||||
baseUrl: undefined,
|
||||
outputDir: undefined,
|
||||
assetsDir: undefined,
|
||||
runtimeCompiler: undefined,
|
||||
productionSourceMap: undefined,
|
||||
parallel: undefined,
|
||||
css: { extract: false },
|
||||
filenameHashing: false,
|
||||
chainWebpack: config => {
|
||||
config.optimization.delete('splitChunks')
|
||||
},
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new WebpackShellPlugin({
|
||||
onBuildEnd: ['node finalize.js']
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||