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

kknvjkwl  于 6个月前  发布在  其他
关注(0)|答案(2)|浏览(62)

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

rfbsl7qr

rfbsl7qr1#

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

bvpmtnay

bvpmtnay2#

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

相关问题