Skip to content

Commit 3205464

Browse files
committed
Init
0 parents  commit 3205464

18 files changed

+4341
-0
lines changed

.env

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_LOGSEQ_API_SERVER=http://127.0.0.1:12315
2+
VITE_LOGSEQ_API_TOKEN=123

.env.plugin

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_MODE=plugin

.env.web

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_MODE=web

.github/workflows/release.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 18
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v2
24+
with:
25+
version: 8
26+
run_install: false
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Build
32+
run: pnpm build:plugin
33+
34+
- name: Release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: npx semantic-release

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
*.local

CHANGELOG.md

Whitespace-only changes.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Hayden Chen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Logseq Plugin</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

logo.png

1.59 KB
Loading

package.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "logseq-mind-map",
3+
"version": "1.3.0",
4+
"main": "dist/index.html",
5+
"logseq": {
6+
"id": "logseq-mind-map",
7+
"icon": "logo.png"
8+
},
9+
"scripts": {
10+
"dev": "vite --mode web",
11+
"build:plugin": "tsc && vite build --mode plugin",
12+
"build:web": "tsc && vite build --mode web",
13+
"preview": "vite preview"
14+
},
15+
"dependencies": {
16+
"@logseq/libs": "^0.0.17",
17+
"vue": "^3.5.8"
18+
},
19+
"devDependencies": {
20+
"@semantic-release/changelog": "^6.0.3",
21+
"@semantic-release/exec": "^6.0.3",
22+
"@semantic-release/git": "^10.0.1",
23+
"@semantic-release/npm": "^12.0.1",
24+
"@types/node": "^22.7.2",
25+
"@vitejs/plugin-vue": "^5.1.4",
26+
"autoprefixer": "^10.4.20",
27+
"eslint": "^9.11.1",
28+
"logseq-proxy": "^0.1.2",
29+
"semantic-release": "^24.1.1",
30+
"typescript": "^5.6.2",
31+
"vite": "^5.4.8",
32+
"vite-plugin-importer": "^0.2.5"
33+
}
34+
}

0 commit comments

Comments
 (0)