1 Star 0 Fork 0

Rong姐姐好可爱 / project-display

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

project-display项目,意为“项目展示”,主要用来展示142vip.cn网站在重构过程中使用到的开源项目管理后台、以及自己的开源项目、已完成的项目的展示,将会涉及到两端。即:Web端和移动端

基于Element UI和Vant UI框架构建的项目展示静态页面,支持Web端和移动端,线上效果预览

基本目录

├─.vscode  
├─build    
├─config
├─dist
│  └─static
│      ├─css
│      ├─fonts
│      ├─img
│      └─js
├─img
├─node_modules
├─src
├─static
├─.babelrc
├─.editorconfig
├─.eslintignore
├─.eslintrc.js
├─.gitignore
├─.postcssrc.js
├─index.html
├─LICENSE
├─package.json
├─package-lock.json
├─projects.json
├─projects_example.json
├─README.md
├─项目简要说明.md

简要说明

  • 信息自动更新 项目信息的自动更新依赖的是主目录下的projects.json文件,也可以参考projects_example.json示例文件,需要将json文件发布到cdn或者其他服务器上,并提供有效的访问地址,当你不部署的时候,将mobile.vue和web.vue下面的axios请求换成对应的地址即可;
methods: {
// 获取项目信息的方法
getProjectInfos () {
    // 注意修改地址
    axios.get('http://youpai.142vip.cn/project-display/projects.json').then(res => {
    // 获取网站变灰属性,项目信息
    const {projects, gray} = res.data
    // 数据赋值
    this.projects = projects
    if (gray) {
        // 设置为灰色,即gray=true
        const html = document.getElementsByTagName('html')
        html.className = 'pageTranslateGraySpecial'
    }
    this.isShow = true
    }).catch(() => {
    this.isShow = false
    this.$message.error('实在抱歉,站点出现问题,快去联系站长吧~')
    })
}
},
  • 项目部署 目前已经上线的项目,采用docker+nginx的方式,当然考虑到vue单页面应用的SEO和加载问题,部分打包后的文件,采用又拍云的方式进行存储。详细可以参考项目简要说明

全站置灰

以来的是projects.json文件中的gray字段,gray 意为灰色,这本来是一个特殊的功能,当gray设置为true时,线上的项目就会因为gray设置为true,整个站点置于灰色,用于特殊日期默哀、惊醒、告慰等,单元不会使用吧

{
    "projects": [
      {
        "image": "http://blogimg.zhulou.net/jianshu/2019/3/zI7FZr.png",
        "name": "Promethe监控",
        "desc": "Prometheus 是由 SoundCloud 开源监控告警解决方案。",
        "keys": ["mysql集群", "linux系统", "实时监控"],
        "url": "http://view.142vip.cn/prometheus"
      },
      {
        "image": "http://blogimg.zhulou.net/jianshu/2019/3/zI7FZr.png",
        "name": "Promethe监控",
        "desc": "Prometheus 是由 SoundCloud 开源监控告警解决方案。",
        "keys": ["mysql集群", "linux系统", "实时监控"],
        "url": "http://view.142vip.cn/prometheus"
      }
    ],
    "gray":true
  }

线上效果

目前以该项目为代码原型的项目展示功能,已经部署上线,主要是对自己正在重构或已完成的项目进行总结、展示,线上效果预览

  • PC端

- 移动端

赞赏支持

人生漫漫,却又白驹过隙;若项目对你有帮助,不如请作者喝一杯奶茶...赞赏过得一定要扫下方右侧微信跟我说呀!!!!!!

若你有跟作者相同的困惑、感悟,欢迎关注B站--Rong姐姐好可爱 交流学习.

MIT License Copyright (c) 2020 Fix11111 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

整理、记录个人项目,通过站点的方式进行展示;方便后续查看,同时方便进行私有部署。避免在开发学习过程中忽略项目整理,进行有效的输出性总结,线上效果欢迎访问 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mmdapl/project-display.git
git@gitee.com:mmdapl/project-display.git
mmdapl
project-display
project-display
master

搜索帮助