Skip to content

Commit

Permalink
fix obsidian upload problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed Nov 29, 2023
1 parent 2e3d984 commit 6cd0d58
Show file tree
Hide file tree
Showing 22 changed files with 444 additions and 248 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ sortedcontainers>=2.3,<3.0
pymongo>=4.6.0
motor>=3.3.2
markdown>=3.4.4
pypinyin>=0.49.0
oauthlib>=3.2.2
httpx>=0.25.0
captcha>=0.5.0
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = rethink-note
version = 0.1.16
version = 0.1.17
author = MorvanZhou
author_email = morvanzhou@hotmail.com
description = note taking app
Expand Down Expand Up @@ -35,7 +35,6 @@ install_requires =
sortedcontainers>=2.3,<3.0
pymongo>=4.6.0
markdown>=3.4.4
pypinyin>=0.49.0
oauthlib>=3.2.2
httpx>=0.25.0
captcha>=0.5.0
Expand Down
6 changes: 3 additions & 3 deletions src/rethink/controllers/files/upload_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def get_upload_process(
type="",
startAt="",
running=False,
problemFiles=[],
msg="",
)
doc = await models.files.get_upload_process(uid=td.uid)
if doc is None:
Expand All @@ -73,7 +73,7 @@ async def get_upload_process(
type="",
startAt="",
running=False,
problemFiles=[],
msg="",
)
code = const.INT_CODE_MAP[doc["code"]]
return schemas.files.FileUploadProcessResponse(
Expand All @@ -84,7 +84,7 @@ async def get_upload_process(
type=doc["type"],
startAt=datetime2str(doc["startAt"]),
running=doc["running"],
problemFiles=doc["problemFiles"],
msg=doc["msg"],
)


Expand Down
2 changes: 1 addition & 1 deletion src/rethink/controllers/schemas/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FileUploadProcessResponse(BaseModel):
type: str
startAt: str
running: bool
problemFiles: List[str]
msg: str


class ImageVditorUploadResponse(BaseModel):
Expand Down
2 changes: 2 additions & 0 deletions src/rethink/controllers/schemas/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class SearchUserNodesRequest(BaseModel):
class CursorQueryRequest(BaseModel):
nid: str
textBeforeCursor: str
page: NonNegativeInt = 0
pageSize: NonNegativeInt = 0
requestId: str = ""


Expand Down
2 changes: 2 additions & 0 deletions src/rethink/controllers/search/node_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ async def cursor_query(
uid=td.uid,
nid=req.nid,
cursor_text=req.textBeforeCursor,
page=req.page,
page_size=req.pageSize,
)
code = const.Code.OK
return schemas.node.NodesSearchResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3175,6 +3175,7 @@ img[data-v-4f42ee16] {
.at-search-result[data-v-5527cb1e]:hover {
background-color: #eeeeee;
}

.result-hl[data-v-5527cb1e] {
font-size: 0.8em;
color: #666;
Expand All @@ -3184,6 +3185,30 @@ img[data-v-4f42ee16] {
}


/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/WaitLoading.vue?vue&type=style&index=0&id=1bc9a6f2&scoped=true&lang=css ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

.loading[data-v-1bc9a6f2] {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
margin: 0 auto;
}

.circle-bg[data-v-1bc9a6f2] {
background: #FEFEFE;
}

.circle[data-v-1bc9a6f2] {
height: 50px;
}

.dots[data-v-1bc9a6f2] {
width: 60px;
}

/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/app/editor/cursorSearch/SearchResultsGroup.vue?vue&type=style&index=0&id=e789ed84&scoped=true&lang=css ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
Expand All @@ -3194,6 +3219,11 @@ img[data-v-4f42ee16] {
max-height: 400px;
overflow-y: auto;
}

.at-search-height-sm[data-v-e789ed84] {
max-height: 600px !important;
}

.at-search-result-group-label[data-v-e789ed84] {
font-weight: 500;
font-size: 0.9em;
Expand Down Expand Up @@ -3358,24 +3388,6 @@ img[data-v-4f42ee16] {
overflow-wrap: break-word;
}

/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/WaitLoading.vue?vue&type=style&index=0&id=1bc9a6f2&scoped=true&lang=css ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

.loading[data-v-1bc9a6f2] {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
margin: 0 auto;
}
.circle[data-v-1bc9a6f2] {
height: 50px;
}
.dots[data-v-1bc9a6f2] {
width: 60px;
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/app/editor/AppNodeEditPanel.vue?vue&type=style&index=0&id=220b40cb&scoped=true&lang=css ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion src/rethink/dist-local/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<script defer src="/js/chunk-vendors.js"></script>
<script defer src="/js/app.js"></script>
<link href="/css/app.45e8eb98.css" rel="stylesheet">
<link href="/css/app.09f0dec8.css" rel="stylesheet">
</head>
<body>
<div id="app"></div>
Expand Down
Loading

0 comments on commit 6cd0d58

Please sign in to comment.