Coder Social home page Coder Social logo

light2001 / abp-ng-alain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yixiangling/abp-ng-alain

0.0 1.0 0.0 51 KB

基于ng-alain脚手架,增加对ABP服务端支持(ABP免费模板)。支持ng-alain最新版ng-alain@next

Batchfile 0.01% TypeScript 85.94% HTML 13.31% CSS 0.74%

abp-ng-alain's Introduction

abp-ng-alain

基于ng-alain脚手架,增加对ABP服务端支持(ABP免费模板)

演示地址

ABP & ng-alain Demo 渣服务器,加载较慢,请轻撸!

登录帐号密码为ABP默认帐号密码 admin/123qwe

支持说明

除http通信外,其余全部采用ng-alain脚手架所提供的方案;关于多语言、权限等所有内容均与ng-alain完全相同。

http通信采用的是已封装好针对abp有处理的http类,src/app/core/abp/abpHttp.ts

支持版本

支持ng-alain最新版ng-alain@next

支持ABP免费模板最新版本

快速入门

  1. 创建基于ng-alain的脚手架;请参考命令行工具了解更多细节。
ng new demo --style less
cd demo
ng add ng-alain@next --i18n
  1. 安装新增依赖
npm install --save moment moment-timezone @types/moment @types/moment-timezone @types/lodash ngx-cookie-service
npm install --save-dev nswag
  1. 复制补充文件
获取本项目代码,直接在根目录替换文件
  1. 启动
下载ABP免费模板后,启动ABP服务端
ng serve

修改说明

服务器地址修改

src/assets/appconfig.json

菜单修改

src/assets/menu.json 菜单数据文件

如若你的导航菜单数据是由服务器端返回,那么请修改 src/app/core/abp/abp-configuration.service.ts文件中获取菜单数据部分的代码

service-proxies 更新

执行 nswag/refresh.bat 可更新接口访问代码,使用方法同ABP

多语言问题

切换到中文语言时仍有英文是因为免费模板提供的中文语言数据不全,只要自行补足即可。

Links

其它

  • 没有用schematics做成angular包,太麻烦,我太懒

abp-ng-alain's People

Contributors

yixiangling avatar

Watchers

 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.