Giter VIP home page Giter VIP logo

socialplatform's Introduction

socialPlatform

A Vue.js project

目录结构

├── App.vue APP

├── api/

│ └── api.js 调用后端api

├── assets/ 资源文件夹

│ └── logo.png

├── components/ 组件文件夹

│ ├── HelloWorld.vue

│ ├── common/ 子组件(这边是自己开发时候的组件位置)

│ ├── global/ 全局组件(header、main)

│ └── pages/ 子页面 (有子组件拼接得到的子页面)

├── main.js vue main

├── router/

│ └── routers.js 路由逻辑

├── store/

│ └── index.js 信息存储

├── styles/

│ └── base.scss 样式文件

└── utils/

​ └── index.js 工具方法

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080    <--- choose 
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

常用资源

任务分配

  • zsh

    • 框架搭建
    • header (登出 通知。。。
    • 发动态
  • wck

    • 个人信息 跳转好友个人信息
    • 展示动态 点赞
    • 登录 注册
    • 好友列表 你可能认识的好友
  • lq

    • 通知页
    • main 左上角 个人信息展示
    • 头像-个人信息-添加好友 悬浮框

组件用法

头像

直接在页面中需要使用头像的地方使用以下代码:

<svg class="icon" aria-hidden="true">
    <use xlink:href="#favicon-default33"></use>
</svg>

只需要修改 <use> 里的 href 的值,值为 #favicon-default1 ~~ #favicon-default33 ,头像的大小可以给 <svg> 标签加个 id 然后调整 heightwidth

socialplatform's People

Contributors

alexzsh avatar solaliuqi avatar tplwang avatar

Watchers

 avatar  avatar

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.