Skip to content

Commit

Permalink
fix: resolve issues from codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Apr 17, 2020
1 parent 58814e0 commit d0073f7
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 58 deletions.
65 changes: 32 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,39 +183,38 @@ export const RecommendedExtensions = [

|extension |toolbar |Remarks |
|:------|:------------|:--------|
| 'Bold' |'bold' | |
| 'Italic' |'italic' | |
| 'Strike' |'strike' | |
| 'Underline' |'underline' | |
| 'Code' |'code' | |
| 'CodeBlock' |'code_blok' | |
| 'CodeBlockHighlight' | | |
| 'BulletList' |'bullet_list' | |
| 'OrderedList' |'ordered_list' | |
| 'ListItem' | | |
| 'TodoList' |'todo_list' | |
| 'HorizontalRule' |'horizontal' | |
| 'Table' |'table' | |
| 'Link' | | |
| 'Image' |'photo' | |
| 'OTitle' | | |
| 'ODoc' | | |
| 'OParagraph' | | |
| 'OBlockquote' |'blockquote' | |
| 'OTodoItem' | | |
| 'OHeading' |'heading' | |
| 'OIndent' |'indent', 'outdent' | |
| 'OAlignment' |'align-dropdown', 'align-group' | |
| 'OLineHeight' |'line-height' | |
| 'OForeColor' |'fore-color' | |
| 'OBackColor' |'back-color' | |
| 'OFontFamily' |'font-family' | |
| 'OIframe' | |'add-more' |
| 'ODiagram' | |'add-more' |
| 'OKatexBlock' | |'add-more' |
| 'OKatexInline' | |'add-more' |
| 'OFormatClear' |'format_clear' | |

|'Bold' |'bold' | |
|'Italic' |'italic' | |
|'Strike' |'strike' | |
|'Underline' |'underline' | |
|'Code' |'code' | |
|'CodeBlock' |'code_blok' | |
|'CodeBlockHighlight' | | |
|'BulletList' |'bullet_list' | |
|'OrderedList' |'ordered_list' | |
|'ListItem' | | |
|'TodoList' |'todo_list' | |
|'HorizontalRule' |'horizontal' | |
|'Table' |'table' | |
|'Link' | | |
|'Image' |'photo' | |
|'OTitle' | | |
|'ODoc' | | |
|'OParagraph' | | |
|'OBlockquote' |'blockquote' | |
|'OTodoItem' | | |
|'OHeading' |'heading' | |
|'OIndent' |'indent', 'outdent' | |
|'OAlignment' |'align-dropdown', 'align-group' | |
|'OLineHeight' |'line-height' | |
|'OForeColor' |'fore-color' | |
|'OBackColor' |'back-color' | |
|'OFontFamily' |'font-family' | |
|'OIframe' | |'add-more' |
|'ODiagram' | |'add-more' |
|'OKatexBlock' | |'add-more' |
|'OKatexInline' | |'add-more' |
|'OFormatClear' |'format_clear' | |

## 🏗 Contributing ![PR or ISSUE](https://img.shields.io/badge/PR%20or%20ISSUE-welcome-brightgreen)

Expand Down
9 changes: 4 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
# Updated On: 2018.03.18
# Quasar: http://quasar-framework.org/guide/quasar-cli.html
# ==============================================================================
PROMPT=Oriovo
APP="quasar-tiptap"

## Run from here
## -----------------------------------------------------------------------------
if [ $# -lt 1 ]
then
echo "Usage: `basename "$0"` dev|build|deploy|packager|builder [pwa|electron]"
echo "Usage: $(basename "$0") dev|build|deploy|packager|builder [pwa|electron]"
exit 1
fi

Expand All @@ -23,22 +22,22 @@ fi
type=$1
mode=$2

if [ -z $mode ]
if [ -z "$mode" ]
then
mode="pwa"
fi


## Preprocess
## -----------------------------------------------------------------------------
VERSION=`cat package.json | python2 -c 'import json,sys;obj=json.load(sys.stdin);print obj["version"]'`
VERSION=$(cat package.json | python2 -c 'import json,sys;obj=json.load(sys.stdin);print obj["version"]')
echo "Building $APP $VERSION ..."


## Func
## -----------------------------------------------------------------------------
run_build() {
quasar $type -m $mode
quasar "$type" -m "$mode"
}

run_deploy() {
Expand Down
2 changes: 1 addition & 1 deletion src/css/katex/katex.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
text-rendering: auto;
}
.katex * {
-ms-high-contrast-adjust: none !important;
-ms-high-contrast-adjust: none;
}
.katex .katex-version::after {
content: "0.11.1";
Expand Down
6 changes: 3 additions & 3 deletions src/utils/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export function highlightColor (rgb) {
}

let splits = rgb.split(',')
let r = parseInt(splits[0].split('(')[1])
let g = parseInt(splits[1])
let b = parseInt(splits[2].split(')')[0])
let r = parseInt(splits[0].split('(')[1], 10)
let g = parseInt(splits[1], 10)
let b = parseInt(splits[2].split(')')[0], 10)
let sum = r + g + b
let color = '#000000'
if (sum < 180 * 3) {
Expand Down
16 changes: 0 additions & 16 deletions vue.config.js

This file was deleted.

0 comments on commit d0073f7

Please sign in to comment.