diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 06cc47d9a2..0000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "root": true, - "ignorePatterns": ["**/*"], - "plugins": ["@nrwl/nx"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": { - "@nrwl/nx/enforce-module-boundaries": [ - "error", - { - "enforceBuildableLibDependency": true, - "allow": [], - "depConstraints": [ - { - "sourceTag": "*", - "onlyDependOnLibsWithTags": ["*"] - } - ] - } - ] - } - }, - { - "files": ["*.ts", "*.tsx"], - "extends": ["plugin:@nrwl/nx/typescript"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "extends": ["plugin:@nrwl/nx/javascript"], - "rules": {} - } - ] -} diff --git a/apps/remix-ide/src/app/components/vertical-icons.js b/apps/remix-ide/src/app/components/vertical-icons.js index 0b2c451752..6f92f3f729 100644 --- a/apps/remix-ide/src/app/components/vertical-icons.js +++ b/apps/remix-ide/src/app/components/vertical-icons.js @@ -5,8 +5,6 @@ import ReactDOM from 'react-dom' import React from 'react' // eslint-disable-line // eslint-disable-next-line no-unused-vars import { RemixUiVerticalIconsPanel } from '@remix-ui/vertical-icons-panel' -var yo = require('yo-yo') -var csjs = require('csjs-inject') var helper = require('../../lib/helper') const globalRegistry = require('../../global/registry') const { Plugin } = require('@remixproject/engine') @@ -79,6 +77,33 @@ export class VerticalIcons extends Plugin { this.on(profile.name, 'statusChanged', this.iconStatus[profile.name]) } + /** + * resolve a classes list for @arg key + * @param {Object} key + * @param {Object} type + */ + resolveClasses (key, type) { + let classes = 'remixui_status' + switch (key) { + case 'succeed': + classes += ' fas fa-check-circle text-' + type + ' ' + 'remixui_statusCheck' + break + case 'edited': + classes += ' fas fa-sync text-' + type + ' ' + 'remixui_statusCheck' + break + case 'loading': + classes += ' fas fa-spinner text-' + type + ' ' + 'remixui_statusCheck' + break + case 'failed': + classes += ' fas fa-exclamation-triangle text-' + type + ' ' + 'remixui_statusCheck' + break + default: { + classes += ' badge badge-pill badge-' + type + } + } + return classes + } + /** * Set a new status for the @arg name * @param {String} name @@ -106,7 +131,7 @@ export class VerticalIcons extends Plugin { } else type = helper.checkSpecialChars(status.type) ? '' : status.type const title = helper.checkSpecialChars(status.title) ? '' : status.title - el.appendChild(yo`