Git Product home page Git Product logo

cso-portal-front-end's Introduction

cso-portal-front-end

该项目属于组织的官网(Portal门户),用于展示组织的成员介绍,服务客户介绍,慈善捐赠情况等。

该项目是 CSO 门户的前端部分,主要使用 VUE 进行开发。

参考文档

Nuxt.js docs.

命令行工具

安装依赖项
npm install
本地运行,占用3000端口
npm run dev
本地打包、运行
npm run build
npm run start
本地构造器
npm run generate
eslint格式化文档
eslint --fix [targetFile]

For detailed explanation on how things work, check out Nuxt.js docs.

主入口

pages/index.vue 和 layouts/default.vue

文件夹说明

  • assets 资源文件
  • compoents 可重用的组件
  • content 内容,一般为 md
  • layouts 页面布局中的可重用文件,如 header
  • middleware 中间件,未使用
  • pages 以页为组织形式的组件,通常依赖与可重用的组件
  • plugins 插件,集成了 element
  • static 静态文件,保存了一些图标
  • store 未使用
  • nuxt.config.js 配置文件

依赖项

    "@nuxt/content": "^1.11.1",  // nuxt内容管理
    "@nuxtjs/axios": "^5.12.5",  // axios�, http请求
    "core-js": "^3.8.3",
    "element-ui": "^2.15.0",     // ElementUI
    "nuxt": "^2.14.12"           // nuxt核心

cso-portal-front-end's People

Contributors

huxianc avatar dongqinglin avatar meet-student avatar jzow avatar

Stargazers

CodingWarrior avatar  avatar

Watchers

James Cloos avatar

Forkers

arraycto

cso-portal-front-end's Issues

构建错误 vue-count-to

运行npm run build时出现了一个严重的错误,如下:

Module not found: Error: Can't resolve 'vue-count-to' in '/Users/mac/Documents/cso-portal-front-end/plugins'
@ ./plugins/vue-count-to.js 2:0-35 3:25-32
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi ./node_modules/@nuxt/components/lib/installComponents.js ./.nuxt/client.js

它指向了 ./plugins/vue-count-to.js 文件, 在该文件中具体为:

import Vue from 'vue'
import countTo from 'vue-count-to'
Vue.component('CountTo', countTo);

它显示出依赖项错误。

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.