Skip to content

Commit

Permalink
Merge pull request #862 from Hi-Windom/v0.35
Browse files Browse the repository at this point in the history
V0.35
  • Loading branch information
Soltus authored Jul 9, 2024
2 parents 673a2a2 + ba67f8e commit 29b7f12
Show file tree
Hide file tree
Showing 14 changed files with 466 additions and 400 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ yarn.lock
/app/dist-electron
**/node_modules
**.pyc
/app/webpack.*.sillot.ltx
2 changes: 1 addition & 1 deletion .vscode/extensions/Sillot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sillot",
"displayName": "汐洛 Sillot",
"description": "汐洛彖夲肜矩阵(Sillot T☳Converbenk Matrix)为智慧新彖务服务。此插件为汐洛官方插件,提供多功能一体化集成。",
"version": "0.35.24070801",
"version": "0.35.24070922",
"preview": true,
"repository": "https://github.com/Hi-Windom/Sillot",
"publisher": "Hi-Windom",
Expand Down
2 changes: 1 addition & 1 deletion app/appx/AppxManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Identity Name="89C2A984.SiYuan"
ProcessorArchitecture="x64"
Publisher="CN=087C656E-C1D9-42D8-8807-CED45A74FC0F"
Version="3.0.17.0"/>
Version="3.1.0.0"/>
<Properties>
<DisplayName>SiYuan</DisplayName>
<PublisherDisplayName>云南链滴科技有限公司</PublisherDisplayName>
Expand Down
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sillot",
"version": "0.35.24070801",
"version": "0.35.24070922",
"syv": "3.1.0",
"sypv": "[3.0.16, 3.0.17]",
"description": "Build Your Eternal Digital Garden",
Expand Down Expand Up @@ -105,6 +105,7 @@
"@wixc3/react-board": "^2.5.0",
"babel-loader": "^9.1.3",
"brace": "^0.11.1",
"circular-dependency-plugin": "^5.2.2",
"clean-webpack-plugin": "^4.0.0",
"concurrently": "^8.2.2",
"css-loader": "^7.1.1",
Expand Down
7 changes: 7 additions & 0 deletions app/src/editor/rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import {getAssetName, getDisplayName, pathPosix, setNotebookName} from "../util/
import {fetchPost} from "../util/fetch";
import {Constants} from "../constants";
import {showTooltip} from "../dialog/tooltip";
/// #if !MOBILE
import {getAllEditor, getAllModels} from "../layout/getAll";
import {getCurrentEditor} from "../mobile/editor";
/// #endif

export const validateName = (name: string, targetElement?: HTMLElement) => {
window.sout.tracker("invoked");
Expand Down Expand Up @@ -140,6 +143,9 @@ export const renameAsset = (assetPath: string) => {
}

fetchPost("/api/asset/renameAsset", {oldPath: assetPath, newName: inputElement.value}, (response) => {
/// #if MOBILE
getCurrentEditor()?.reload(false);
/// #else
getAllModels().asset.forEach(item => {
if (item.path === assetPath) {
item.path = response.data.newPath;
Expand All @@ -149,6 +155,7 @@ export const renameAsset = (assetPath: string) => {
getAllEditor().forEach(item => {
item.reload(false);
});
/// #endif
dialog.destroy();
});
});
Expand Down
2 changes: 1 addition & 1 deletion app/src/mobile/settings/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const initAbout = () => {
<div class="fn__hr"></div>
<input class="b3-text-field fn__block" readonly value="http://${window.siyuan.config.system.networkServe ? window.siyuan.config.localIPs[0] : "127.0.0.1"}:${location.port}">
<div class="fn__hr"></div>
<button data-url="http://${window.siyuan.config.system.networkServe ? window.siyuan.config.localIPs[0] : "127.0.0.1"}:${location.port}" class="b3-button b3-button--outline fn__block ${window.siyuan.config.system.networkServe ? "" : " fn__none"}" onclick="javascript:window.JSAndroid.openURLuseDefaultApp(this.getAttribute('data-url'))">
<button data-url="http://${window.siyuan.config.system.networkServe ? window.siyuan.config.localIPs[0] : "127.0.0.1"}:${location.port}" class="b3-button b3-button--outline fn__block ${window.siyuan.config.system.networkServe ? "" : " fn__none"}" onclick="javascript:window.JSAndroid.openExternal(this.getAttribute('data-url'))">
<svg><use xlink:href="#iconLink"></use></svg>${window.siyuan.languages.about4}
</button>
<div class="b3-label__text">${window.siyuan.languages.about3.replace("${port}", location.port)}</div>
Expand Down
Loading

0 comments on commit 29b7f12

Please sign in to comment.