Browse Source

🔥 修改网盘说明

master
Boom 3 months ago
parent
commit
d6db94d45a
  1. 3
      .gitignore
  2. 20
      .idea/inspectionProfiles/Project_Default.xml
  3. 6
      .idea/inspectionProfiles/profiles_settings.xml
  4. 4
      .idea/misc.xml
  5. 6
      .idea/vcs.xml
  6. 123
      .idea/workspace.xml
  7. 110
      docs/zsw/drive.md
  8. 71
      docs/zsw/intro.md

3
.gitignore vendored

@ -18,4 +18,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode/
.vscode/
.idea/

20
.idea/inspectionProfiles/Project_Default.xml

@ -1,20 +0,0 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PyPackageRequirementsInspection" enabled="false" level="WARNING" enabled_by_default="false">
<option name="ignoredPackages">
<value>
<list size="0" />
</value>
</option>
</inspection_tool>
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="work_addons.hx_stock.models.inventory_count._logger" />
</list>
</option>
</inspection_tool>
</profile>
</component>

6
.idea/inspectionProfiles/profiles_settings.xml

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10" project-jdk-type="Python SDK" />
</project>

6
.idea/vcs.xml

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

123
.idea/workspace.xml

@ -1,123 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="aa68fd60-001e-4a51-8c5e-b83f5c75fcde" name="Changes" comment="修改crm的文档" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="KubernetesApiPersistence"><![CDATA[{}]]></component>
<component name="KubernetesApiProvider"><![CDATA[{
"isMigrated": true
}]]></component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 3
}</component>
<component name="ProjectId" id="2Ysq33PjdjLQTn0SldIRqhg4gIP" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"dart.analysis.tool.window.visible": "false",
"git-widget-placeholder": "master",
"kotlin-language-version-configured": "true",
"last_opened_file_path": "E:/ws/gitroot/docker-git/docs",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"npm.start.executor": "Run",
"vue.rearranger.settings.migration": "true"
}
}]]></component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="E:\ws\gitroot\docker-git\docs\docs\odoo\img" />
</key>
</component>
<component name="RunManager" selected="npm.start">
<configuration name="npm start" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="npm" />
<arguments value="start" />
<node-interpreter value="node" />
<package-manager value="npm" />
<envs />
<method v="2" />
</configuration>
<configuration name="start" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="start" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<recent_temporary>
<list>
<item itemvalue="npm.start" />
</list>
</recent_temporary>
</component>
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-jdk-9f38398b9061-39b83d9b5494-intellij.indexing.shared.core-IU-241.17011.79" />
<option value="bundled-js-predefined-1d06a55b98c1-0b3e54e931b4-JavaScript-IU-241.17011.79" />
</set>
</attachedChunks>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="aa68fd60-001e-4a51-8c5e-b83f5c75fcde" name="Changes" comment="" />
<created>1701324434114</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1701324434114</updated>
<workItem from="1701324435672" duration="863000" />
<workItem from="1704767533939" duration="5184000" />
<workItem from="1705312640805" duration="492000" />
<workItem from="1705313160861" duration="1399000" />
<workItem from="1718163314957" duration="677000" />
<workItem from="1718180199790" duration="277000" />
<workItem from="1718180832741" duration="1668000" />
</task>
<task id="LOCAL-00001" summary="修改crm的文档">
<option name="closed" value="true" />
<created>1718181979085</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1718181979085</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="修改crm的文档" />
<option name="LAST_COMMIT_MESSAGE" value="修改crm的文档" />
</component>
</project>

110
docs/zsw/drive.md

@ -1,6 +1,6 @@
---
sidebar_position: 100
sidebar_label: 回乡の网盘
sidebar_label: 公共网盘
title: 网盘使用指南
---
@ -8,113 +8,47 @@ title: 网盘使用指南
## 使用方式
网盘包含2种产品,分别是file station, 和drive
file station可以提供良好的在线使用体验,drive更多是配合客户端直接同步协作。
2种打开方式,分别是网页web,和本地同步客户端drive(包括pc / 移动设备),以下统称为web/drive。
两种方式,均可以按照 内网/外网方式连接。
用内网连接,下载速度快,不掉线,不用我们公司额外花钱支付流量费。
用外网连接,速度慢,但是可以不局限在公司使用。
请根据自己的需要酌情选择。
#### 网盘包含2种产品形态,分别是file station, 和drive
- file station可以提供良好的在线使用体验,可以在线预览文件视频,
- drive更多是配合客户端直接同步协作,可以直接操作共享获取共享链接;
#### 有两种使用方式:
- web: 通过浏览器直接预览或者下载文件;
- 客户端: 可以直接操作文件,同步和备份,类似百度网盘;
### 网页连接
#### file station:
打开浏览器:
内网地址: [http://192.168.10.200:7000/](http://192.168.10.200:7000/)
外网地址: [http://pan.yixinhuixiang.com/](http://pan.yixinhuixiang.com/)
登录后即可操作文件。
地址: [http://pan.yixinhuixiang.com/](http://pan.yixinhuixiang.com/)
登录后即可操作文件,可以在线预览,也可以上传下载;
![file station](img/drive/pan.png)
#### drive
打开浏览器:
内网地址: [http://192.168.10.200:8080/](http://192.168.10.200:8080/)
外网地址: [http://drive.yixinhuixiang.com/](http://drive.yixinhuixiang.com/)
登录后即可操作文件。
地址: [http://drive.yixinhuixiang.com/](http://drive.yixinhuixiang.com/)
登录后即可操作文件,可以直接生成分享链接发送给其他人共享;
![drive web](img/drive/drive.png)
### 客户端连接
打开[链接](https://www.synology.cn/zh-cn/dsm/feature/drive)下载客户端, 或者是登录到drive后根据引导下载。
或者点这里链接直接下载(链接更新时间:2024年12月12日 11点33分),如果链接不可用,请联系我们;
[windows64](https://cndl.synology.cn/download/Utility/SynologyDriveClient/3.5.1-16102/Windows/Installer/x86_64/Synology%20Drive%20Client-3.5.1-16102-x64.exe?model=RS3614xs%2B&bays=12&dsm_version=7.1.1&build_number=42962)
[macos](https://cndl.synology.cn/download/Utility/SynologyDriveClient/3.5.1-16102/Mac/Installer/synology-drive-client-16102.dmg?model=RS3614xs%2B&bays=12&dsm_version=7.1.1&build_number=42962)
安装客户端后运行主程序,设置服务器地址:
```
http://192.168.10.200:8080
```
```
drive.yixinhuixiang.com
```
其他使用 和 百度网盘,市场上其他网盘产品差别不多,请自行研究。
其他使用 和 百度网盘,市场上其他网盘产品差别不多,请自行研究。 有问题联系我们;
![客户端drive同步](img/drive/client.png)
## 打包一个镜像到rainbond
### 文件准备
准备好需要打包的html包,确认下一层级就有html文件
写好dockerfile 这是制作镜像的描述
例子:
```
FROM nginx
# dist 文件结构是 ./dist/index.html
COPY ./dist /usr/share/nginx/html
COPY ./default.conf /etc/nginx/conf.d/
EXPOSE 80/tcp
```
如果必要修改nginx配置,比如做本地反向代理,或者是调整上下载限制,就写一份nginx的配置文件 ,跟着镜像一起打包
反向代理设置选项请参考nginx配置帮助 [nginx帮助](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/)
反向代理可以让访问应用特定地址,转发到目标,从而避开跨域,或者复杂环境等情况。
```
# 这个配置将导致访问应用/app/后缀的直接转发到www.baidu.com
location /app/ {
proxy_pass http://www.baidu.com;
}
```
### 镜像操作
准备好后,在dockerfile 目录执行
```
docker build . -t $name
```
$name = 镜像名称(私有仓库请写全部 比如:)
```
docker build . -t registry.cn-beijing.aliyuncs.com/zsw2023/mini_game
```
由于docker hub太慢,我们外部仓库放置镜像加速拉取,用阿里云或者青云。
阿里云的操作举例:
```
# 把本地镜像改名成能推的 不带版本号默认最新:latest
docker tag nginx:v2 registry.cn-beijing.aliyuncs.com/zsw2023/nginx
# 登录阿里云
docker login registry.cn-beijing.aliyuncs.com
# 推
docker push registry.cn-beijing.aliyuncs.com/zsw2023/mini
```
### 应用发布
由于我们服务器应用demo设置了registry.cn-beijing.aliyuncs.com/zsw2023/mini作为拉取构建镜像,
推送完成后服务器直接点构建,就可以更新。
![docker](img/rainbond-container.png)

71
docs/zsw/intro.md

@ -21,7 +21,8 @@ npm run serve -- --build --port 3000 --host 0.0.0.0
- 前往[【rainbond】](http://rainbond.lotus-wallet.com/#/team/7xedcknz/region/rainbond/components/gr12a760/overview)构建docs,构建完成后验证是否正常
- 图片请放在文档目录下对应的images目录,并维护好目录顺序
- 请尽量注意格式 使用英文翻译命名
- 使用问题:~~小璇~~,兰东 格式及规范:~~黄婷~~
- ~~使用问题:小璇,兰东 格式及规范:黄婷~~
- 文档长期更新 共同参与
@ -29,4 +30,70 @@ npm run serve -- --build --port 3000 --host 0.0.0.0
[标签集合](https://docusaurus.io/zh-CN/docs/api/plugins/@docusaurus/plugin-content-docs#sidebar_label)
[github](https://github.com/facebook/docusaurus.git)
[github](https://github.com/facebook/docusaurus.git)
## 打包一个镜像到rainbond
### 文件准备
准备好需要打包的html包,确认下一层级就有html文件
写好dockerfile 这是制作镜像的描述
例子:
```
FROM nginx
# dist 文件结构是 ./dist/index.html
COPY ./dist /usr/share/nginx/html
COPY ./default.conf /etc/nginx/conf.d/
EXPOSE 80/tcp
```
如果必要修改nginx配置,比如做本地反向代理,或者是调整上下载限制,就写一份nginx的配置文件 ,跟着镜像一起打包
反向代理设置选项请参考nginx配置帮助 [nginx帮助](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/)
反向代理可以让访问应用特定地址,转发到目标,从而避开跨域,或者复杂环境等情况。
```
# 这个配置将导致访问应用/app/后缀的直接转发到www.baidu.com
location /app/ {
proxy_pass http://www.baidu.com;
}
```
### 镜像操作
准备好后,在dockerfile 目录执行
```
docker build . -t $name
```
$name = 镜像名称(私有仓库请写全部 比如:)
```
docker build . -t registry.cn-beijing.aliyuncs.com/zsw2023/mini_game
```
由于docker hub太慢,我们外部仓库放置镜像加速拉取,用阿里云或者青云。
阿里云的操作举例:
```
# 把本地镜像改名成能推的 不带版本号默认最新:latest
docker tag nginx:v2 registry.cn-beijing.aliyuncs.com/zsw2023/nginx
# 登录阿里云
docker login registry.cn-beijing.aliyuncs.com
# 推
docker push registry.cn-beijing.aliyuncs.com/zsw2023/mini
```
### 应用发布
由于我们服务器应用demo设置了registry.cn-beijing.aliyuncs.com/zsw2023/mini作为拉取构建镜像,
推送完成后服务器直接点构建,就可以更新。
![docker](img/rainbond-container.png)
Loading…
Cancel
Save