-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34dc9aa
commit f8888e3
Showing
104 changed files
with
1,995 additions
and
1,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,30 @@ | ||
# Miscellaneous | ||
*.class | ||
# Logs | ||
logs | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
node_modules | ||
dist | ||
dist-ssr | ||
dist-electron | ||
release | ||
*.local | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
|
||
# Web related | ||
lib/generated_plugin_registrant.dart | ||
# Editor directories and files | ||
.vscode/.debug.env | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Exceptions to above rules. | ||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages | ||
# lockfile | ||
package-lock.json | ||
pnpm-lock.yaml | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import fs from 'node:fs' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
import { createRequire } from 'node:module' | ||
import { spawn } from 'node:child_process' | ||
|
||
const pkg = createRequire(import.meta.url)('../package.json') | ||
const __dirname = path.dirname(fileURLToPath(import.meta.url)) | ||
|
||
// write .debug.env | ||
const envContent = Object.entries(pkg.debug.env).map(([key, val]) => `${key}=${val}`) | ||
fs.writeFileSync(path.join(__dirname, '.debug.env'), envContent.join('\n')) | ||
|
||
// bootstrap | ||
spawn( | ||
// TODO: terminate `npm run dev` when Debug exits. | ||
process.platform === 'win32' ? 'npm.cmd' : 'npm', | ||
['run', 'dev'], | ||
{ | ||
stdio: 'inherit', | ||
env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }), | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"compounds": [ | ||
{ | ||
"name": "Debug App", | ||
"preLaunchTask": "Before Debug", | ||
"configurations": [ | ||
"Debug Main Process", | ||
"Debug Renderer Process" | ||
], | ||
"presentation": { | ||
"hidden": false, | ||
"group": "", | ||
"order": 1 | ||
}, | ||
"stopAll": true | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"name": "Debug Main Process", | ||
"type": "node", | ||
"request": "launch", | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | ||
"windows": { | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" | ||
}, | ||
"runtimeArgs": [ | ||
"--remote-debugging-port=9229", | ||
"." | ||
], | ||
"envFile": "${workspaceFolder}/.vscode/.debug.env", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"name": "Debug Renderer Process", | ||
"port": 9229, | ||
"request": "attach", | ||
"type": "chrome", | ||
"timeout": 60000, | ||
"skipFiles": [ | ||
"<node_internals>/**", | ||
"${workspaceRoot}/node_modules/**", | ||
"${workspaceRoot}/dist-electron/**", | ||
// Skip files in host(VITE_DEV_SERVER_URL) | ||
"http://127.0.0.1:3344/**" | ||
] | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.tsc.autoDetect": "off", | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": [ | ||
"/*electron-builder.json5", | ||
"/*electron-builder.json" | ||
], | ||
"url": "https://json.schemastore.org/electron-builder" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Before Debug", | ||
"type": "shell", | ||
"command": "node .vscode/.debug.script.mjs", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"owner": "typescript", | ||
"fileLocation": "relative", | ||
"pattern": { | ||
// TODO: correct "regexp" | ||
"regexp": "^([a-zA-Z]\\:\/?([\\w\\-]\/?)+\\.\\w+):(\\d+):(\\d+): (ERROR|WARNING)\\: (.*)$", | ||
"file": 1, | ||
"line": 3, | ||
"column": 4, | ||
"code": 5, | ||
"message": 6 | ||
}, | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "^.*VITE v.* ready in \\d* ms.*$", | ||
"endsPattern": "^.*\\[startup\\] Electron App.*$" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## 2022-10-03 | ||
|
||
[v2.1.0](https://github.com/electron-vite/electron-vite-vue/pull/267) | ||
|
||
- `vite-electron-plugin` is Fast, and WYSIWYG. 🌱 | ||
- last-commit: db2e830 v2.1.0: use `vite-electron-plugin` instead `vite-plugin-electron` | ||
|
||
## 2022-06-04 | ||
|
||
[v2.0.0](https://github.com/electron-vite/electron-vite-vue/pull/156) | ||
|
||
- 🖖 Based on the `vue-ts` template created by `npm create vite`, integrate `vite-plugin-electron` | ||
- ⚡️ More simplify, is in line with Vite project structure | ||
- last-commit: a15028a (HEAD -> main) feat: hoist `process.env` | ||
|
||
## 2022-01-30 | ||
|
||
[v1.0.0](https://github.com/electron-vite/electron-vite-vue/releases/tag/v1.0.0) | ||
|
||
- ⚡️ Main、Renderer、preload, all built with vite | ||
|
||
## 2022-01-27 | ||
- Refactor the scripts part. | ||
- Remove `configs` directory. | ||
|
||
## 2021-11-11 | ||
- Refactor the project. Use vite.config.ts build `Main-process`, `Preload-script` and `Renderer-process` alternative rollup. | ||
- Scenic `Vue>=3.2.13`, `@vue/compiler-sfc` is no longer necessary. | ||
- If you prefer Rollup, Use rollup branch. | ||
|
||
```bash | ||
Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 草鞋没号 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
# dog_flutter | ||
## 使用 | ||
|
||
A new Flutter project. | ||
使用非常简单,基本一看就懂 | ||
|
||
## Getting Started | ||
### 设置存储仓库 | ||
|
||
This project is a starting point for a Flutter application. | ||
当前版本只支持gitlab作为存储仓库,后续会添加更多。 | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
![](https://gitlab.com/api/v4/projects/42641795/repository/files/src%2FOjQKGiCc.png/raw?ref=bbb) | ||
|
||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) | ||
![](https://gitlab.com/api/v4/projects/42641795/repository/files/src%2Fcb2B1fNZ.png/raw?ref=bbb) | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
设置完毕后,点击保存即可。 | ||
|
||
### 上传图片 | ||
|
||
选择刚才设置的仓库 | ||
![](https://gitlab.com/api/v4/projects/42641795/repository/files/src%2F81tqODDH.png/raw?ref=bbb) | ||
|
||
支持三种上传方式:拖拽图片、点击从文件夹选择图片、剪切板上传(可以是图片内容也可以是复制的图片路径) | ||
|
||
### 查看图片 | ||
|
||
上传图片的功能区下方会展示上传的图片列表,列表中支持复制图片地址或者直接浏览器打开图片查看 | ||
|
||
![](https://gitlab.com/api/v4/projects/42641795/repository/files/src%2FMR9VfeOQ.png/raw?ref=bbb) | ||
|
||
## 感谢 | ||
|
||
本项目基于[electron-vite-vue](https://github.com/electron-vite/electron-vite-vue)二次开发。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## 0.0.1 | ||
|
||
- 支持配置Gitlab仓库作为存储 | ||
|
||
## 0.0.2 | ||
|
||
- |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.