diff --git a/js/kunai/meta/meta.js b/js/kunai/meta/meta.js index 4d3f0b8..43f32e6 100644 --- a/js/kunai/meta/meta.js +++ b/js/kunai/meta/meta.js @@ -268,7 +268,7 @@ class Meta { } setDOM(key, parent_key, path) { - this.log.info(`fetching '${Symbol.keyFor(key)}'... [parent: ${parent_key ? `'${Symbol.keyFor(parent_key)}'` : '(none)'}]`) + this.log.info(`fetching '${key}'... [parent: ${parent_key ? `'${parent_key}'` : '(none)'}]`) const e = parent_key ? this.dom.get(parent_key).find(path) : $(path) if (!e) { diff --git a/js/kunai/meta/page-key.js b/js/kunai/meta/page-key.js index 367d3da..a911a3a 100644 --- a/js/kunai/meta/page-key.js +++ b/js/kunai/meta/page-key.js @@ -1,8 +1,8 @@ const PageKey = { - main: Symbol.for('main'), - article: Symbol.for('article'), - articleBody: Symbol.for('articleBody'), - codes: Symbol.for('codes'), + main: 'main', + article: 'article', + articleBody: 'articleBody', + codes: 'codes', } export {PageKey} diff --git a/js/kunai/net/content-type.js b/js/kunai/net/content-type.js index d8d0354..c616832 100644 --- a/js/kunai/net/content-type.js +++ b/js/kunai/net/content-type.js @@ -1,6 +1,6 @@ class ContentType { - static UNKNOWN = Symbol('unknown') - static MARKDOWN = Symbol('markdown') + static UNKNOWN = 'unknown' + static MARKDOWN = 'markdown' static parse(url) { const ext = url.pathname.match(/(?:\.[^.]+)+$/) diff --git a/js/kunai/ui/treeview.js b/js/kunai/ui/treeview.js index db9e3fc..93aa79c 100644 --- a/js/kunai/ui/treeview.js +++ b/js/kunai/ui/treeview.js @@ -215,7 +215,7 @@ class DOM { } async makeOther(o) { - let li = $('
  • ', {class: `other ${Symbol.keyFor(o.id.type)}`}) + let li = $('
  • ', {class: `other ${o.id.type}`}) if (IndexID.isClassy(o.id.type)) { li.addClass('classy') diff --git a/js/kunai/wand.js b/js/kunai/wand.js index 60012e2..910f408 100644 --- a/js/kunai/wand.js +++ b/js/kunai/wand.js @@ -13,8 +13,8 @@ class APIError extends NetworkError { } const Method = { - get: Symbol.for('GET'), - post: Symbol.for('POST'), + get: 'GET', + post: 'POST', } @@ -32,7 +32,7 @@ class API { } static request(id, method, url, opts, data, onSuccess, onFailure) { - const reqid = JSON.stringify({method: Symbol.keyFor(method), url: String(url), id: id}) + const reqid = JSON.stringify({method: method, url: String(url), id: id}) // console.time(reqid) // const stopTimer = () => { // console.timeEnd(reqid) diff --git a/js/kunai/yata.js b/js/kunai/yata.js index 1c66047..3b5df87 100644 --- a/js/kunai/yata.js +++ b/js/kunai/yata.js @@ -10,9 +10,9 @@ import {default as AN} from 'anser' const ToolID = { - play: Symbol.for('play'), - compile: Symbol.for('compile'), - theme: Symbol.for('theme'), + play: 'play', + compile: 'compile', + theme: 'theme', } class RefreshTimerInfo { diff --git a/package-lock.json b/package-lock.json index c5794ef..6aae8c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1852,9 +1852,9 @@ } }, "crsearch": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/crsearch/-/crsearch-2.6.5.tgz", - "integrity": "sha512-b2FARjt9nSArST6YIP9jwfXfwLFT9aBMaIdrQheVOZGpQRwqIYwdTQeeMS3sP0DhADG+NFQa9V1TAgurFcN+Mw==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/crsearch/-/crsearch-2.7.0.tgz", + "integrity": "sha512-GfIRG18AV+dU8yjNa0ccZi/ymxvN+b17o1Swex32rVNu+FU7SMh8klsJp/EIY8dKHwiUmezu+46WCAfcqEueuQ==", "requires": { "babel-runtime": "6.26.0", "font-awesome": "4.7.0", diff --git a/package.json b/package.json index 832ace8..37164bd 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "anser": "^1.4.4", "babel-runtime": "^6.26.0", "codemirror": "^5.31.0", - "crsearch": "^2.6.5", + "crsearch": "^2.7.0", "font-awesome": "^4.7.0", "jquery": "^3.2.1", "marked": "^0.3.6",