Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: docker #1

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pa_note_web/docker/build_front.sh
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
cd pa_note_front
yarn build
cd ..
docker build -f docker/Dockerfile.Front -t panote_front:v1 . --no-cache
4 changes: 2 additions & 2 deletions pa_note_web/pa_note_front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"main": "background.js",
"dependencies": {
"@element-plus/icons-vue": "^1.1.4",
"axios": "^0.27.2",
"axios": "^1.6.7",
"core-js": "^3.6.5",
"element-plus": "^2.0.2",
"element-resize-detector": "^1.2.4",
Expand All @@ -30,4 +30,4 @@
"typescript": "~4.1.5",
"vue-cli-plugin-electron-builder": "~2.1.1"
}
}
}
190 changes: 190 additions & 0 deletions pa_note_web/pa_note_front/script/apis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
group_auth:
login:
req:
id: String
pw: String
resp:
if_success: Int
token: String
root: false

verify_token:
req:
token: String
resp:
if_success: Int
new_token: String
root: false


group_list:
get_notes_mata: # 获取笔记列表,{id, name}[]
req:
resp:
node_id_name_list: Array
root: false
create_new_note:
req:
resp:
root: true

rename_note:
req:
noteid: String
name: String
resp:
root: true

group_content:
get_note_mata: # 获取笔记元数据信息,获取区块范围,下一个笔记的id
req:
noteid: String
resp:
next_noteid: Int
max_chunkx: Int # 两个边界都取得到
max_chunky: Int # 两个边界都取得到
min_chunkx: Int # 两个边界都取得到
min_chunky: Int # 两个边界都取得到
root: false

get_chunk_note_ids: # 获取一个区块范围内的笔记id
req:
noteid: String
chunkx: Int
chunky: Int
resp:
noteids: Array
root: false

get_note_bar_info:
req:
noteid: String
notebarid: String
resp:
x: Float
y: Float
w: Float
h: Float
text: String
formatted: String
connected: Array # [id1,id2...]
epoch: Int
root: false

create_new_bar:
req:
noteid: String
x: Float
y: Float
resp:
chunkx: Int
chunky: Int
noteids: Array
root: true

update_bar_content:
req:
noteid: String
barid: String
text: String
formatted: String
resp:
new_epoch: Int
root: true

update_bar_transform:
req:
noteid: String
barid: String
x: Float
y: Float
w: Float
h: Float
resp: # 移动可能导致区块范围变化
new_epoch: Int
chunk_maxx: Int # 两个边界都取得到
chunk_minx: Int # 两个边界都取得到
chunk_maxy: Int # 两个边界都取得到
chunk_miny: Int # 两个边界都取得到
chunk_change: Array # 从区块0->区块1
root: true

redo:
req:
noteid: String
resp:
redotype: String
redovalue: Obj
root: true

add_path:
req:
noteid: String
from: String
to: String
resp:
_1succ_0fail: Int
new_epoch_from: Int
new_epoch_to: Int
root: true

get_path_info:
req:
noteid: String
pathid_with_line: String
resp:
type_: Int
root: false

set_path_info:
req:
noteid: String
pathid_with_line: String
type_: Int
resp:
root: true

remove_path:
req:
noteid: String
pathid_with_line: String
resp:
new_epoch_from: Int
new_epoch_to: Int
root: true

delete_bar:
req:
noteid: String
barid: String
resp:
chunk_maxx: Int
chunk_minx: Int
chunk_maxy: Int
chunk_miny: Int
root: true

article_binder:
req:
bind_unbind_rename: String
article_name: String
barid: String
noteid: String
resp:
if_success: Int
root: true

article_list:
req:
noteid: String
resp:
if_success: Int
list: Array
root: false

fetch_all_note_bars_epoch:
req:
noteid: String
resp:
bars_id_and_epoch: Array
root: false
Loading
Loading