Skip to content

Commit

Permalink
update sdoc version and sdoc translate
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntian committed Nov 22, 2023
1 parent 5105761 commit 953763c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 16 deletions.
30 changes: 23 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@gatsbyjs/reach-router": "1.3.9",
"@seafile/react-image-lightbox": "2.0.2",
"@seafile/resumablejs": "1.1.16",
"@seafile/sdoc-editor": "0.3.7",
"@seafile/sdoc-editor": "0.3.9",
"@seafile/seafile-calendar": "0.0.12",
"@seafile/seafile-editor": "0.4.8",
"@uiw/codemirror-extensions-langs": "^4.19.4",
Expand Down
22 changes: 14 additions & 8 deletions sdoc-helper.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
#!/bin/sh

# Enter the frontend directory and install the latest version of sdoc-editor
echo 'install sdoc-editor version'
cd frontend

npm install @seafile/sdoc-editor@latest

# Copy the font icon of sdoc-editor
echo 'copy sdoc-editor font icon'
cd ..

cp -r frontend/node_modules/@seafile/sdoc-editor/public/media/sdoc-editor-font media/sdoc-editor/
cp -r frontend/node_modules/@seafile/sdoc-editor/public/media/sdoc-editor-font.css media/sdoc-editor/sdoc-editor-font.css


# Get the latest translation content of sdoc-editor
echo 'update sdoc-editor translation content'
tx pull -s -t -f seahub.sdoc-editor

cp -r media/sdoc-editor/locales/zh_CN/sdoc-editor.json media/sdoc-editor/locales/zh-CN/sdoc-editor.json

git add .

git commit -m "update sdoc version and sdoc translate"

git push origin master
echo 'Please check the updated content and see if it needs to be submitted.'
read -p "Do you want to continue submitting code? y/n: " Y
if [ $Y = 'y' ]
then
git add .
git commit -m "update sdoc version and sdoc translate"
git push origin master
fi

0 comments on commit 953763c

Please sign in to comment.