Coder Social home page Coder Social logo

mdclub-theme-material's Introduction

项目说明

这是 MDClub 的前端代码。使用 MDUI 作为 UI 框架,hyperapp 作为 SPA 框架。

相关项目

MDClub 由以下子项目组成:

项目 说明
mdclub MDClub 服务端代码
mdclub-theme-material MDClub 前端代码
mdclub-admin MDClub 后台管理系统代码
mdclub-openapi MDClub 的 OpenApi 描述文件代码
mdclub-sdk-js MDClub 的 JavaScript SDK 代码

在此项目基础上进行二次开发

你需要先在本地安装 mdclubmdclub-theme-material 两个项目,且两个项目需要位于同一文件夹内。

mdclub 项目的安装过程详见 https://github.com/zdhxiong/mdclub

mdclub-theme-material 的安装步骤

克隆项目源码到本地

git clone https://github.com/zdhxiong/mdclub-theme-material

安装项目依赖

$ cd mdclub-theme-material
$ npm install

运行开发环境

npm run dev

打包生产环境

npm run build

打包后的资源中,PHP 模板文件将位于 mdclub 项目的 /templates/material 目录中,静态资源文件将位于 mdclub 项目的 /public/static/theme/material 目录中。

mdclub-theme-material's People

Contributors

zdhxiong 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

Watchers

 avatar  avatar  avatar

mdclub-theme-material's Issues

关于npm run打包的错误解决方案

执行npm run dev或者npm run install时,会报错:
image
修改方法:
将/src/pages/notifications/components/item/view.jsx的L7修改为:
import Loading from '~/components/loading/view.jsx';
即可。
或者把目录改为Loading也行,两种解决方案。

npm WARN @hyperapp/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.

root@iZ23h4x1pxcZ:~/mdclub_dev/mdclub-theme-material# npm install
npm WARN @hyperapp/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.

npm ERR! code EEXIST
npm ERR! path /root/mdclub_dev/mdclub-theme-material/node_modules/@babel/preset-env/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver
npm ERR! Refusing to delete /root/mdclub_dev/mdclub-theme-material/node_modules/@babel/preset-env/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver: containing path /root/mdclub_dev/mdclub-theme-material/node_modules/@babel/preset-env/node_modules/@babel/helper-compilation-targets/node_modules/semver isn't under npm's control
npm ERR! File exists: /root/mdclub_dev/mdclub-theme-material/node_modules/@babel/preset-env/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-09-06T23_04_08_690Z-debug.log

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.