dream-num / Luckysheet

Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source.
https://dream-num.github.io/LuckysheetDocs/
MIT License
15.9k stars 2.36k forks source link

[Feature request]能否完全离线使用? #1049

Open red-co opened 2 years ago

red-co commented 2 years ago

一个logseq插件使用了luckysheet,但是每次加载都需要从网络上下载资源,(而众所周知,🇨🇳网络不行。。) https://github.com/sethyuan/logseq-plugin-luckysheet/issues/5#issuecomment-1145889177

tansentcn commented 2 years ago

自己源码下载下来build后应该就可以了吧,至少目前我没发现有加载什么需要网络的资源

luncheon commented 2 years ago

As far as I know, using a chart would download Vue.js, Vuex, etc. from CDNs. These are not currently bundled.

// Dynamically load dependent scripts and styles
const dependScripts = [
    'https://cdn.jsdelivr.net/npm/vue@2.6.11',
    'https://unpkg.com/vuex@3.4.0',
    'https://cdn.bootcdn.net/ajax/libs/element-ui/2.13.2/index.js',
    'https://cdn.bootcdn.net/ajax/libs/echarts/4.8.0/echarts.min.js',
    'expendPlugins/chart/chartmix.umd.min.js',
    // 'http://26.26.26.1:8000/chartmix.umd.js'
]

const dependLinks = [
    'https://cdn.bootcdn.net/ajax/libs/element-ui/2.13.2/theme-chalk/index.css',
    'expendPlugins/chart/chartmix.css',
    // 'http://26.26.26.1:8000/chartmix.css'
]

https://github.com/mengshukeji/Luckysheet/blob/v2.1.13/src/expendPlugins/chart/plugin.js#L22