- Beranda developer
- Editor sumber terbuka
- Hosting sendiri editor sumber terbuka
Hosting sendiri editor sumber terbuka
Bangun dan jalankan sendiri editor sumber terbuka MR Office: clone, build, dan sajikan playground sebagai file statis, atau jalankan shell desktop terbuka.
Bangun dan jalankan
Node.js 20.19 atau yang lebih baru. Keenam editor berada di packages/ dan berjalan bersama di apps/playground.
git clone https://github.com/XinaTian/MROffice.git
cd MROffice
npm install
npm run fonts # pengganti terbuka untuk font Office
npm run build
npm run preview # http://localhost:5178npm run dev menjalankan server pengembangan di alamat yang sama; npm run smoke memeriksa sebuah build.
Sajikan
Hasil build berupa file statis: server web atau CDN apa pun dapat menyajikannya. Cache skrip, gaya, dan font yang ber-hash selama satu tahun.
# any static host serves the build: apps/playground/dist
npm run build
npx serve apps/playground/dist -l 8080
# or with nginx
server {
listen 80;
root /srv/mroffice/apps/playground/dist;
location / { try_files $uri $uri/ /index.html; }
location ~* \.(js|css|woff2|wasm)$ { add_header Cache-Control "public, max-age=31536000, immutable"; }
}Shell desktop
apps/desktop berisi kode sumber shell (Electron) aplikasi desktop MR Office. Sendirian, shell ini menjalankan editor sumber terbuka; dengan komponen MR Office gratis dari Releases, shell ini menjadi aplikasi desktop lengkap, dengan file Word, Excel, PowerPoint, dan PDF.
npm run desktop # shell desktop terbuka (Electron) beserta editornya
npm run desktop:package # build yang dapat dipasang untuk komputer iniFile Word, Excel, dan PowerPoint
Membuka dan menyimpan .docx, .xlsx, dan .pptx, rumus berfungsi yang dihitung, bagan, pengeditan SmartArt, dan menyimpan hasil edit PDF kembali ke file tidak termasuk dalam build sumber terbuka. Untuk itu, sematkan editor terkelola MR Office (Sematkan editor) atau gunakan aplikasi desktop gratis.