diff --git a/Dockerfile b/Dockerfile index e45f5188..1a701d00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM benweet/stackedit-base +FROM node:11.15.0 RUN mkdir -p /opt/stackedit WORKDIR /opt/stackedit diff --git a/README.md b/README.md index 1c650418..2dc20cc3 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,22 @@ # StackEdit +从 [StackEdit 官方](https://github.com/benweet/stackedit) fork出来,然后加上了 **Gitee** 的支持,并且已经重新打了镜像,以下官方的部署方式,除了Docker镜像地址不同,其他均一致。 + +Fork出来修改的原因:Stackedit的作者可能因为什么原因,已经很久不维护了,Github授权登录很早之前就登录不了了,并且还没发支持国内常用的Gitee,比较蛋疼,所以想到Fork出来改,大概花了周末一整天终于改好了。 + +新的Docker镜像在中央仓库为:mafgwo/stackedit,当前最新版本为:5.15.1(延续原有版本号) + +并增加了以下三个环境变量: +- `GITEE_CLIENT_ID` Gitee 的 Client ID +- `GITEE_CLIENT_SECRET` Gitee 的 Client Secret +- `GITEE_CALLBACK` Gitee的回调地址,Gitee授权获取token时还需要传入回调地址,格式是 http[s]://[hostname]:[port]/oauth2/callback + + [![Build Status](https://img.shields.io/travis/benweet/stackedit.svg?style=flat)](https://travis-ci.org/benweet/stackedit) [![NPM version](https://img.shields.io/npm/v/stackedit.svg?style=flat)](https://www.npmjs.org/package/stackedit) > Full-featured, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites. -https://stackedit.io/ +https://edit.qicoder.com/ ### Ecosystem diff --git a/chart/values.yaml b/chart/values.yaml index 653a6a4e..3fddafb8 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -8,6 +8,8 @@ googleClientId: "" googleApiKey: "" githubClientId: "" githubClientSecret: "" +giteeClientId: "" +giteeClientSecret: "" wordpressClientId: "" wordpressSecret: "" paypalReceiverEmail: "" diff --git a/chrome-app/manifest.json b/chrome-app/manifest.json index 4c700d40..cc047edb 100644 --- a/chrome-app/manifest.json +++ b/chrome-app/manifest.json @@ -15,10 +15,10 @@ }, "app": { "urls": [ - "https://stackedit.io/" + "https://edit.qicoder.com/" ], "launch": { - "web_url": "https://stackedit.io/app" + "web_url": "https://edit.qicoder.com/app" } }, "offline_enabled": true, diff --git a/config/dev.env.js b/config/dev.env.js index efead7c8..ff2021b2 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -3,4 +3,4 @@ var prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"' -}) +}) \ No newline at end of file diff --git a/config/index.js b/config/index.js index 9fecd843..83533712 100644 --- a/config/index.js +++ b/config/index.js @@ -23,7 +23,7 @@ module.exports = { }, dev: { env: require('./dev.env'), - port: 8080, + port: 80, autoOpenBrowser: false, assetsSubDirectory: 'static', assetsPublicPath: '/', diff --git a/index.html b/index.html index 2fbca80a..890a9459 100644 --- a/index.html +++ b/index.html @@ -3,15 +3,26 @@