From 24cd85688fb8e88ff6a280a45b5d3119298ae963 Mon Sep 17 00:00:00 2001 From: eight Date: Sun, 24 Sep 2017 16:54:21 +0800 Subject: [PATCH] WIP: install page + editor --- _locales/en/messages.json | 9 +- edit.html | 3 + edit/edit.css | 26 ---- edit/edit.js | 99 +-------------- edit/source-editor.js | 10 +- install-usercss/install-usercss.css | 22 +++- install-usercss/install-usercss.html | 33 ++++- install-usercss/install-usercss.js | 26 +++- .../codemirror/codemirror-default.css | 26 ++++ .../codemirror/codemirror-default.js | 114 ++++++++++++++++++ 10 files changed, 222 insertions(+), 146 deletions(-) create mode 100644 vendor-overwrites/codemirror/codemirror-default.css create mode 100644 vendor-overwrites/codemirror/codemirror-default.js diff --git a/_locales/en/messages.json b/_locales/en/messages.json index df58ec97..95c6ce81 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -415,8 +415,13 @@ } }, "installUpdateFromLabel": { - "message": "Install update from this URL", - "description": "Label for the checkbox to save current URL for update check" + "message": "Install update from $url$", + "description": "Label for the checkbox to save current URL for update check", + "placeholders": { + "url": { + "content": "$1" + } + } }, "license": { "message": "License", diff --git a/edit.html b/edit.html index 5882e907..09c3a602 100644 --- a/edit.html +++ b/edit.html @@ -59,6 +59,9 @@ + + +