Giter Club home page Giter Club logo

centran-label-manager's Introduction

Centran Label Manager

  • Creation et Installation Package NPM
  • Documentation Label Manager

TL;DR

Build Library

 ng build centran-label-manager --prod 

Test Library

ng serve centran-label-manager-test

Publish Library

 cd dist/
ng build centran-label-manager --prod
cd dist/centran-label-manager
vim package.json
npm login
npm publish --public

Import LabelModule

@NgModule({
    declarations:[
    ],
    imports:[
    LabelModule.forRoot({
          languages: ["NL", "FR", "DE", "EN"],
          labelSourceUrl: environment.labelSourceUrl,
          appName: "appName",
          urlPrefix: environment.labelPrefix,
          urlSuffix: environment.labelSuffix,
          prod: environment.production,
        }),
    ]
    ...
})

Configuration Basique : Lecture depuis Centranslator et DB

//environement.ts
export const environment = {
  production: false,
  assetsSource:"",
  labelSourceUrl : "/Project/api/translations/",
  labelPrefix: "file/",
  labelSuffix: ""
};

Configuration Spéciale : Lecture depuis fichier JSON

 //environement.prod.ts dans projet principal
 export const environment = {
   production: true,
   assetsSource:"/Project/",
   labelSourceUrl : "/Project/assets/",
   labelPrefix: "Label",
   labelSuffix: ".json"
 };
 

Augmenter taille modale

 assets/css/custom.css => a ajouter dans le angular(-cli).json 
 
 .modal-lg {
 max-width: 1000px !important
 }
 

Version 2 :

add in imports of module

    QuillModule.forRoot(),

from

import { QuillModule } from 'ngx-quill';

add in style.css

@import '~quill/dist/quill.core.css';
@import '~quill/dist/quill.bubble.css';
@import '~quill/dist/quill.snow.css';

centran-label-manager's People

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.