Giter Site home page Giter Site logo

shuirong / vuecnodejs Goto Github PK

View Code? Open in Web Editor NEW
859.0 25.0 230.0 1.21 MB

⚽️🎉Vue初/中级项目,CnodeJS社区重构。( a junior project of Vue.js, rewrite cnodejs.org ) 预览(DEMO):

Home Page: https://heuristic-stonebraker-33e1b8.netlify.com/#/

License: MIT License

HTML 0.68% Vue 66.73% CSS 32.59%
vue vue-router vue-router2 vue-spa cnodejs vuex2 vuex nuxt nuxtjs ssr

vuecnodejs's Introduction

VueCnodeJS

一个 Vue 的初/中级练手项目:重构 CnodeJS 社区

预览

预览图片

这是我第一个真正意义上的 Vue 项目,共花了5天时间,每天大概3,4 个小时左右在这个项目上。除了Vue.js概念比较了解外,Vue-RouterAxios都是现学现用。之前还想着可能要花点时间学下新东西,但看了文档后才发现其实挺简单的...

PS: 如果你想入门Vue,但苦于没有难度合适的项目的话,Here For You!

考虑到别人可能会看我源码来学习Vue,我添加了"非常详细的注释"。贴心吧,嘻嘻~

2018-12-25: 最近学了React,然后写了对应的React.js版,希望帮到正在/将要学习React的同学

2018-12-9: 重构了项目:界面更美观,代码更优雅。

2017-9-9: 我又为本项目写了个Nuxt.js的版本.完美解决了 SEO 问题(Vue 这种 MVVM 框架一直被人诟病没有解决 SEO,但是现在我们有了 Nuxt). 代码在nuxtVersion文件中. 需要注意的地方我写在了代码注释里

2017-5-24: 如果你看完Vuex文档,对于如何把它应用到实际项目中还是有点茫然的话,那么我为这个项目写了一个 Vuex 版本。就在vuexVersion文件中。


本地运行:

git clone https://github.com/shuiRong/VueCnodeJS.git
cd VueCnodeJS
npm install // 或者 yarn
npm run serve // 或者 yarn serve

PS: 默认用的是 8080 端口。


技术栈:

Vue

Vue-Router

Axios

ElementUI

CnodeJS API

vuecnodejs's People

Contributors

hcer1999 avatar howardtanghw avatar shuirong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vuecnodejs's Issues

favico去哪里了

提一个小白问题,我发现你在代码里面,没有任何地方写了favico。但是在跑你的代码的时候,会在标签栏哪里有图标。怎么做到的?

run 的时候有个错误,可以帮忙看看吗!小白一个

[email protected] dev F:\vue\demo\VueCnodeJS
node build/dev-server.js

Starting dev server...
ERROR Failed to compile with 8 errors14:51:38

error in ./src/main.js

http://eslint.org/docs/rules/linebreak-style Expected linebreaks to be 'LF' but found 'CRLF'
F:\vue\demo\VueCnodeJS\src\main.js:1:59
// The Vue build version to load with the import command
^

http://eslint.org/docs/rules/linebreak-style Expected linebreaks to be 'LF' but found 'CRLF'
F:\vue\demo\VueCnodeJS\src\main.js:2:81
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
^

http://eslint.org/docs/rules/linebreak-style Expected linebreaks to be 'LF' but found 'CRLF'
F:\vue\demo\VueCnodeJS\src\main.js:3:23
import Vue from 'vue';
^

https://google.com/#q=import%2Fextensions Unexpected use of file extension "vue" for "vue-svg-icon/Icon.vue"
F:\vue\demo\VueCnodeJS\src\main.js:4:18
import Icon from 'vue-svg-icon/Icon.vue';

关于打包部署的问题

请教一下,你这个项目完成后的预览是怎么实现的?你自己申请的域名放上去的吗?
我将打包后的dist文件夹放到github pages上,静态文件正常加载,但会出现请求跨域的问题,,
网上说使用nginx做反向代理,这应该只针对本地查看吧?如果要在github上做类似的预览效果,该怎么实现呢?
预览地址:https://zhang122622623.github.io/vueCnode
源码地址:https://github.com/zhang122622623/vueCnode

关于v-for

v-for = "item in content".
作者果然很贴心,已点star,在MainSec组件中v-for指令有一点点小瑕疵.

请问关于nuxt.js版本的问题

在本地运行后发现服务器端渲染出来的资源里,有这么一段
window.__NUXT__={"layout":"default","data":[{"articleListsData":[{"id":"5c2edce13898674067a7b103","author_id":"5372465f3c72496d41009adc","tab":"share","content":"截止1 月 12日晚 22:00,有效参与人数共 252 人,抽取 5 名中奖者。\r\n恭喜以下中奖者🎉🎉🎉🎉🎉 gofromzero,MoeXian,yxcs,caoxiaoshuai1,langjy🎉🎉🎉🎉🎉\r\n请评论区留下联系方式。\r\n![image.png](\u002F\u002Fstatic.cnodejs.org\u002FFvx9s9EjQk7IwNrAMO5_y7zJfrej)\r\n\r\n---------------- 以下是原文 。。。
但是在https://mystifying-hoover-fff38f.netlify.com/这个线上demo中却没有
而我自己的项目发布到线上后也有这么一段很长的javascript,请问不显示这个需要做一些什么设置吗

关于vue-svg-icon报错的问题

你好,我直接下载了【给文章添加Github的markdown样式。用Element提倡的UI风格给组件美化】这个版本的代码然后npm install之后运行报错:

https://google.com/#q=import%2Fextensions  Unexpected use of file extension "vue" for "vue-svg-icon/Icon.vue"
  import Icon from 'vue-svg-icon/Icon.vue';

请问这个报错是什么原因呢?百度和谷歌都没搜到跟这个问题有关的解决办法

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.