Skip to content

Commit

Permalink
🚑 reset the default database path
Browse files Browse the repository at this point in the history
  • Loading branch information
layyback committed May 31, 2022
1 parent 900a568 commit b43c2c0
Show file tree
Hide file tree
Showing 8 changed files with 9,481 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/docs/dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ $ npm link
$ npm publish
```

然后再给 [rubick-database/plugins/total-plugins.json](https://gitee.com/monkeyWang/rubick-database/blob/master/plugins/total-plugins.json) 仓库提个 `pull request`, 把你的 `package.json` 信息加入 `json` 文件内,等我们 merge 了您的提交,插件将会自动上架。
然后再给 [rubick-database/plugins/total-plugins.json](https://gitcode.net/rubickcenter/rubick-database/-/blob/master/plugins/total-plugins.json) 仓库提个 `pull request`, 把你的 `package.json` 信息加入 `json` 文件内,等我们 merge 了您的提交,插件将会自动上架。


6 changes: 3 additions & 3 deletions docs/docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ macos 选择 `pkg` 文件,windows 选择 `exe` 文件。
::: tip
如果把插件发布到公网 `npm` 如果不符合您的公司安全要求,`rubick` 支持内网私有源和私有插件库,如果您需要内网部署使用,可以自行配置以下规则。
:::
`rubick` 依赖 `npm` 仓库做插件管理,依赖 `gitee` 做插件数据存储,所以如果要进行内网部署,主要需要替换这2个设置。详细设置:
`rubick` 依赖 `npm` 仓库做插件管理,依赖 `gitcode` 做插件数据存储,所以如果要进行内网部署,主要需要替换这2个设置。详细设置:
`插件市场 -> 设置 -> 内网部署设置`

![image.png](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1319b177fb544017ae10b4a703e8efa6~tplv-k3u1fbpfcp-watermark.image?)

#### 1. 替换 npm 源
插件发布到私有 `npm` 源即可。

#### 2. 替换 `gitee` 源为内网 `gitlab`: database url
#### 2. 替换 `gitcode` 源为内网 `gitlab`: database url

* clone 下载 rubick 插件库:[https://gitee.com/monkeyWang/rubick-database](https://gitee.com/monkeyWang/rubick-database)
* clone 下载 rubick 插件库:[https://gitcode.net/rubickcenter/rubick-database](https://gitcode.net/rubickcenter/rubick-database)
* 提交仓库到私有 `gitlab` 库。

替换格式:`https://gitlab.xxx.com/api/v4/projects/{projectId}/repository/files/` 。因为接口为 `gitlab openAPI`,所以需要填写仓库 `access_token`
Expand Down
4 changes: 2 additions & 2 deletions feature/src/assets/request/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";

let baseURL = "https://gitee.com/monkeyWang/rubick-database/raw/master";
let baseURL = "https://gitcode.net/rubickcenter/rubick-database/-/raw/master";
let access_token = "";

try {
Expand All @@ -12,7 +12,7 @@ try {
}

const instance = axios.create({
baseURL: baseURL || "https://gitee.com/monkeyWang/rubick-database/raw/master",
baseURL: baseURL || "https://gitcode.net/rubickcenter/rubick-database/-/raw/master",
});

export default {
Expand Down
6 changes: 3 additions & 3 deletions feature/src/views/settings/localhost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</a-form-item>
<a-form-item has-feedback label="database url" name="database">
<a-input
placeholder="https://gitee.com/monkeyWang/rubick-database/raw/master"
placeholder="https://gitcode.net/rubickcenter/rubick-database/-/raw/master"
v-model:value="formState.database"
/>
</a-form-item>
Expand All @@ -43,7 +43,7 @@ let _rev: any;
let defaultConfig = {
register: "https://registry.npm.taobao.org",
database: "https://gitee.com/monkeyWang/rubick-database/raw/master",
database: "https://gitcode.net/rubickcenter/rubick-database/-/raw/master",
access_token: "",
};
Expand All @@ -69,7 +69,7 @@ const layout = {
const resetForm = () => {
formState.value = {
register: "https://registry.npm.taobao.org",
database: "https://gitee.com/monkeyWang/rubick-database/raw/master",
database: "https://gitcode.net/rubickcenter/rubick-database/-/raw/master",
access_token: "",
};
};
Expand Down
9,469 changes: 9,469 additions & 0 deletions feature/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "2.0.4",
"version": "2.0.4-beta.1",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/feature/js/app.b6f0fed9.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/feature/js/app.b6f0fed9.js.map

Large diffs are not rendered by default.

0 comments on commit b43c2c0

Please sign in to comment.