Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
release: v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Jan 5, 2020
1 parent 20d813d commit da165b7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.0.0 (3 Jan 2020)

* feat: theme support

# v1.1.1 (1 Sep 2019)

* fix: remove settings when destroyed
18 changes: 10 additions & 8 deletions eruda-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
GRAPH_Y = 40,
GRAPH_WIDTH = w - 24,
GRAPH_HEIGHT = 142,
BACK_COLOR = '#fff',
FORE_COLOR = '#009688',
STEP = 2,
NAME = 'MB'

var util = eruda.util,
Settings = eruda.Settings,
round = Math.round,
Tool = eruda.Tool
var util = eruda.util
var Settings = eruda.Settings
var round = Math.round
var Tool = eruda.Tool

var curTheme = util.evalCss.getCurTheme()
var BACK_COLOR = curTheme.background
var FORE_COLOR = curTheme.accent

var Memory = Tool.extend({
name: 'memory',
Expand All @@ -38,8 +40,8 @@
this._style = util.evalCss(
[
'.eruda-dev-tools .eruda-tools .eruda-memory {padding: 10px !important;}',
'canvas {width: 100%; border-radius: 4px; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);}',
'.eruda-not-supported {background: #f44336; color: #fff; padding: 10px; border-radius: 4px; text-align: center; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .05), 0 1px 4px 0 rgba(0, 0, 0, .08), 0 3px 1px -2px rgba(0, 0, 0, .2)}'
'canvas {width: 100%; border: 1px solid var(--border);}',
'.eruda-not-supported {background: var(--console-error-background); color: var(--console-error-foreground); padding: 10px; border: 1px solid var(--console-error-border); text-align: center;}'
].join('.eruda-dev-tools .eruda-tools .eruda-memory ')
)
this._container = container
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eruda-memory",
"version": "1.1.1",
"version": "2.0.0",
"description": "Eruda plugin for displaying memory",
"main": "eruda-memory.js",
"scripts": {
Expand All @@ -26,10 +26,11 @@
},
"homepage": "https://github.com/liriliri/eruda-memory#readme",
"devDependencies": {
"eruda": "^1.5.8",
"eslint": "^4.11.0",
"eslint-config-prettier": "^6.1.0",
"eruda": "^2.0.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"nws": "^1.1.1",
"uglify-js": "^3.1.10"
"prettier": "^1.19.1",
"uglify-js": "^3.7.3"
}
}

0 comments on commit da165b7

Please sign in to comment.