ma63d / leetcode-viewer Goto Github PK
View Code? Open in Web Editor NEW用无后台、纯前端的单页应用来分享、呈现你的leetcode源码吧!
用无后台、纯前端的单页应用来分享、呈现你的leetcode源码吧!
C:\MyFile\LeetCodeViewer\leetcode-viewer>npm run build
[email protected] build C:\MyFile\LeetCodeViewer\leetcode-viewer
node build/build.js
Tip:
Built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.
TypeError: Cannot read property 'assetsRoot' of undefined
at Object. (C:\MyFile\LeetCodeViewer\leetcode-viewer\build\build.js:21:41)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node build/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\shushu\AppData\Roaming\npm-cache_logs\2018-05-22T09_11_49_811Z-debug.log
手机端适配有就更好了
在sf上看了文章后抽空尝试了一下,效果很棒。但是在缺失post.md的情况下,控制台会显示service错误信息/(ㄒoㄒ)/~~。
建议lc-spider可以生成一个默认格式或者空的post.md。b( ̄▽ ̄)d
您好,您写的项目非常不错;
我发现很多网站的界面都类似于您这个项目中所用的UI页面,是有模板可以直接套用的么?
生成的单页应用一直在Loading,不知道是我爬来的源码放错了位置还是怎么,下面是build配置
build.conf.js
module.exports = {
sourcePath: './solutions/',
author: 'Frank Zhuang',
language: 'zh',
// gitRepo: 'https://github.com/Ma63d/leetcode',
duoShuoPlugin: false,
duoShuoShortName: ''
}
在空文件夹(例如叫newFolder)下执行lc-spider
,源码会被放到solutions文件夹内,那我是把新生成的solutions内的源码放到viewer的solutions文件夹中,还是把newFolder内的所有文件(包括solutions文件夹)放到viewer的solutions文件夹中?
多说关闭了,请问有计划支持其他评论吗?我不熟悉vue,自己改阻力有点大。
我在你的leetcode上,当点击左侧第100条时,第1条和第10条也会是active的,另:我也正参照VUE官网做博客呢,也参照了你的博客,谢谢了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.