2024-09-09 13:34:53 +08:00
|
|
|
|
安装部署
|
2024-09-05 10:23:44 +08:00
|
|
|
|
|
2024-09-09 13:34:53 +08:00
|
|
|
|
1. Download the latest Node.js runtime from [nodejs.org](https://nodejs.org/).
|
|
|
|
|
2. Install pnpm: `npm install -g pnpm` (Administrator privileges may be required).
|
|
|
|
|
3. Clone the repository: `git clone -b master`
|
|
|
|
|
4. Run `pnpm i`
|
|
|
|
|
5. Run `pnpm run build:etherpad`
|
|
|
|
|
6. Run `pnpm run prod`
|
|
|
|
|
7. Visit `http://localhost:9002` in your browser.
|
|
|
|
|
8.pnpm run plugins i ep_align
|
|
|
|
|
9.pnpm run plugins rm ep_align
|
|
|
|
|
|
|
|
|
|
安装好用的插件
|
|
|
|
|
ep_aa_file_menu_toolbar 0.2.14
|
|
|
|
|
|
|
|
|
|
ep_align 0.3.97
|
|
|
|
|
|
|
|
|
|
ep_announce 0.0.28
|
|
|
|
|
|
|
|
|
|
ep_colibris_full_width 0.0.7
|
|
|
|
|
|
|
|
|
|
ep_etherpad-lite 2.2.2
|
|
|
|
|
|
|
|
|
|
ep_font_color 0.0.88
|
|
|
|
|
|
|
|
|
|
ep_font_size 0.4.61
|
|
|
|
|
|
|
|
|
|
ep_framasoft_table_of_contents 0.4.2
|
|
|
|
|
|
|
|
|
|
ep_headings2 0.2.64
|
|
|
|
|
|
|
|
|
|
ep_image_upload 1.0.105
|
|
|
|
|
|
|
|
|
|
ep_kodama 0.2.1
|
|
|
|
|
|
|
|
|
|
ep_markdown 1.0.1
|
|
|
|
|
|
|
|
|
|
ep_page_breaks 1.0.9
|
|
|
|
|
|
|
|
|
|
ep_subscript_and_superscript 0.3.8
|
|
|
|
|
|
|
|
|
|
ep_timesliderdiff 0.0.23
|
|
|
|
|
|
|
|
|
|
ep_user_displayname
|
2024-09-05 10:23:44 +08:00
|
|
|
|
|
|
|
|
|
后台中文设置,找到文件
|
|
|
|
|
|
2024-09-09 13:34:53 +08:00
|
|
|
|
etherpad-lite\admin\src\localization>i18n.ts
|
|
|
|
|
// 修改
|
|
|
|
|
fallbackLng: 'zh-hans'
|
|
|
|
|
|
|
|
|
|
前台中文设置。搜索lang,改成
|
|
|
|
|
lang = 'zh-hans'
|
|
|
|
|
|
|
|
|
|
修改源修改文件
|
|
|
|
|
etherpad-lite\src\static\js\pluginfw> LinkInstaller.ts
|
|
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
|
this.livePluginManager = new PluginManager({
|
|
|
|
|
//增加 插件拉不下来问题解决。
|
|
|
|
|
npmRegistryUrl: 'https://registry.npmmirror.com/',
|
|
|
|
|
pluginsPath: pluginInstallPath,
|
|
|
|
|
hostRequire: undefined,
|
|
|
|
|
cwd: path.join(settings.root, 'src')
|
|
|
|
|
});
|
|
|
|
|
this.dependenciesMap = new Map();
|
2024-09-05 10:23:44 +08:00
|
|
|
|
}
|