mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-24 15:49:42 +02:00
Upgrade packages (#149)
* update babel, postcss and webpack * update editor packages * update linter packages
This commit is contained in:
parent
34514761f5
commit
8d9c19e595
18 changed files with 5014 additions and 3578 deletions
|
@ -5,17 +5,17 @@
|
|||
* @property {string} message - detail about the exception
|
||||
*/
|
||||
class HttpException extends Error {
|
||||
public status: number;
|
||||
public message: string;
|
||||
/**
|
||||
* @param status - status of the exception
|
||||
* @param message - message about the exception
|
||||
*/
|
||||
constructor(status: number, message: string) {
|
||||
super(message);
|
||||
this.status = status;
|
||||
this.message = message;
|
||||
}
|
||||
public status: number;
|
||||
public message: string;
|
||||
/**
|
||||
* @param status - status of the exception
|
||||
* @param message - message about the exception
|
||||
*/
|
||||
constructor(status: number, message: string) {
|
||||
super(message);
|
||||
this.status = status;
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
||||
export default HttpException;
|
|
@ -1,15 +0,0 @@
|
|||
plugins:
|
||||
postcss-smart-import: {}
|
||||
postcss-custom-properties: {}
|
||||
postcss-apply: {}
|
||||
postcss-custom-media: {}
|
||||
postcss-media-minmax: {}
|
||||
postcss-custom-selectors: {}
|
||||
postcss-nested-ancestors: {}
|
||||
postcss-nesting: {}
|
||||
postcss-nested: {}
|
||||
postcss-color-mod-function: {}
|
||||
postcss-color-hex-alpha: {}
|
||||
postcss-font-family-system-ui: {}
|
||||
cssnano: {}
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
// No inspection for unused var `css` because it's used for css bundle
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import css from '../styles/main.pcss';
|
||||
import '../styles/main.pcss';
|
||||
|
||||
/**
|
||||
* Module Dispatcher
|
||||
*
|
||||
* @see {@link https://github.com/codex-team/moduleDispatcher}
|
||||
* @author CodeX
|
||||
*/
|
||||
|
@ -21,7 +22,7 @@ import Extensions from './modules/extensions';
|
|||
*/
|
||||
class Docs {
|
||||
/**
|
||||
* @constructor
|
||||
* @class
|
||||
*/
|
||||
constructor() {
|
||||
this.writing = new Writing();
|
||||
|
@ -40,7 +41,7 @@ class Docs {
|
|||
*/
|
||||
docReady() {
|
||||
this.moduleDispatcher = new ModuleDispatcher({
|
||||
Library: window.Docs
|
||||
Library: this,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ import javascript from 'highlight.js/lib/languages/javascript';
|
|||
import xml from 'highlight.js/lib/languages/xml';
|
||||
import json from 'highlight.js/lib/languages/json';
|
||||
import css from 'highlight.js/lib/languages/css';
|
||||
import style from 'highlight.js/styles/github.css'; // eslint-disable-line no-unused-vars
|
||||
import diffStyles from '../../styles/diff.pcss'; // eslint-disable-line no-unused-vars
|
||||
import 'highlight.js/styles/github.css';
|
||||
import '../../styles/diff.pcss';
|
||||
|
||||
/**
|
||||
* @class CodeStyles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue