mirror of
https://github.com/Kenshin/simpread.git
synced 2026-01-25 14:28:34 +00:00
Change plugin to runtime.
This commit is contained in:
parent
6231c90fb5
commit
59f1845aaa
@ -29,7 +29,7 @@ import LabsOpt from 'labsopt';
|
||||
import About from 'about';
|
||||
import Unrdist from 'unrdist';
|
||||
import * as welc from 'welcome';
|
||||
import * as plug from 'plugin';
|
||||
import * as run from 'runtime';
|
||||
|
||||
import PureRead from 'puread';
|
||||
|
||||
@ -268,7 +268,7 @@ function sidebarRender() {
|
||||
* set user uid
|
||||
*/
|
||||
function setUserUID() {
|
||||
storage.user.uid = plug.ID( "user" );
|
||||
storage.user.uid = run.ID( "user" );
|
||||
storage.Write( () => {
|
||||
console.log( "current user info create!" )
|
||||
watch.SendMessage( "option", true );
|
||||
|
||||
@ -14,7 +14,7 @@ import * as ss from 'stylesheet';
|
||||
import {browser} from 'browser';
|
||||
import * as msg from 'message';
|
||||
import * as highlight from 'highlight';
|
||||
import * as plug from 'plugin';
|
||||
import * as run from 'runtime';
|
||||
|
||||
import * as tooltip from 'tooltip';
|
||||
import * as waves from 'waves';
|
||||
@ -107,8 +107,8 @@ class Read extends React.Component {
|
||||
style : "sr-plugin-count{position:fixed;display:block;left:5px;bottom:5px;font-size:12px}",
|
||||
script : "var count=$content.text().length,html='<sr-plugin-count> 共计:'+count+' 个字 </sr-plugin-count>';$content.append(html);",
|
||||
};
|
||||
plug.Install( "kw36BtjGu0" );
|
||||
plug.Exec( plugin );
|
||||
run.Install( "kw36BtjGu0" );
|
||||
run.Exec( plugin );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
console.log( "=== simpread runtime load ===" )
|
||||
|
||||
import nanoid from 'nanoid';
|
||||
|
||||
@ -249,7 +249,7 @@ const webpack = require( 'webpack' ),
|
||||
export : __dirname + '/src/service/export.js',
|
||||
highlight : __dirname + '/src/service/highlight.js',
|
||||
output : __dirname + '/src/service/output.js',
|
||||
plugin : __dirname + '/src/service/plugin.js',
|
||||
runtime : __dirname + '/src/service/runtime.js',
|
||||
|
||||
focus : __dirname + '/src/focus/focus.js',
|
||||
controlbar : __dirname + '/src/focus/controlbar.jsx',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user