1
0
Fork 0
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:
Nikita Melnikov 2022-03-06 11:38:59 +04:00 committed by GitHub
parent 34514761f5
commit 8d9c19e595
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 5014 additions and 3578 deletions

View file

@ -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;

View file

@ -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: {}

View file

@ -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,
});
}
}

View file

@ -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