Code Monkey home page Code Monkey logo

vue-clicli's Introduction

vue-clicli

c站(clicli.us)pc 端主站源码,此分支为 v3 重构

实在等不及 vue 3 啦,趁机重构了吧

策略

用户登陆状态下,纯 spa,未登录状态下,首屏 ssr

配合 cdn,目前阶段我能做的最小性能损耗的策略了

本次重构主要以下:

  • 重构代码,提高代码质量
  • 重画 UI,变好看
  • 重新实现部分 feature,缩减维护量

技术栈

  • webpack4
  • vue2
  • vuex
  • vue-router
  • koa2

配套投稿中心:clicli-admin

目录结构

client 文件夹集中了 vue 业务逻辑,server 文件夹集中了 ssr 相关逻辑
   
client 文件夹中,api 是接口相关的方法
   
component 为业务组件
   
widget 为基础组件,与业务解耦,可以用于其他 vue 项目
   
public 文件夹主要是公用的 js 、 stylus 等
   
router 为路由相关,store 为 vuex 相关
   
这个目录结构是我积累的最符合语义、维护性最高的结构,供参考

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.