mirror of
https://github.com/Kenshin/simpread.git
synced 2026-01-25 14:28:34 +00:00
Change http to https.
This commit is contained in:
parent
e598b1f580
commit
0e65a8cf72
@ -171,12 +171,12 @@ browser.tabs.onUpdated.addListener( function( tabId, changeInfo, tab ) {
|
||||
browser.tabs.remove( tabId );
|
||||
}
|
||||
});
|
||||
} else if ( tab.url.startsWith( "http://simpread.ksria.cn/plugins/install/" )) {
|
||||
const url = tab.url.replace( "http://simpread.ksria.cn/plugins/install/", "" );
|
||||
} else if ( tab.url.startsWith( "https://simpread.ksria.cn/plugins/install/" )) {
|
||||
const url = tab.url.replace( "https://simpread.ksria.cn/plugins/install/", "" );
|
||||
browser.tabs.create({ url: browser.extension.getURL( "options/options.html#plugins?install=" + encodeURIComponent(url) ) });
|
||||
browser.tabs.remove( tabId );
|
||||
} else if ( tab.url.startsWith( "http://simpread.ksria.cn/sites/install/" )) {
|
||||
const url = tab.url.replace( "http://simpread.ksria.cn/sites/install/", "" );
|
||||
} else if ( tab.url.startsWith( "https://simpread.ksria.cn/sites/install/" )) {
|
||||
const url = tab.url.replace( "https://simpread.ksria.cn/sites/install/", "" );
|
||||
browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?install=" + encodeURIComponent(url) ) });
|
||||
browser.tabs.remove( tabId );
|
||||
} else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=success" ) ) {
|
||||
|
||||
@ -47,7 +47,7 @@ class Card extends React.Component {
|
||||
}
|
||||
|
||||
addmore() {
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "http://simpread.ksria.cn/plugins/details/" + this.props.plugin.id }));
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "https://simpread.ksria.cn/plugins/details/" + this.props.plugin.id }));
|
||||
}
|
||||
|
||||
render() {
|
||||
@ -108,7 +108,7 @@ class Cards extends React.Component {
|
||||
return (
|
||||
<Card plugin={ item } onChange={t=>this.props.onChange(t)} />
|
||||
)
|
||||
}) : <card-empty><a href="http://simpread.ksria.cn/plugins" target="_blank">没有任何扩展,点击打开扩展中心添加。</a></card-empty>;
|
||||
}) : <card-empty><a href="https://simpread.ksria.cn/plugins" target="_blank">没有任何扩展,点击打开扩展中心添加。</a></card-empty>;
|
||||
return (
|
||||
<cards>{ card }</cards>
|
||||
)
|
||||
@ -172,7 +172,7 @@ export default class PluginsOpt extends React.Component {
|
||||
}
|
||||
|
||||
addmore() {
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "http://simpread.ksria.cn/plugins" }));
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "https://simpread.ksria.cn/plugins" }));
|
||||
}
|
||||
|
||||
update() {
|
||||
|
||||
@ -20,7 +20,7 @@ class Card extends React.Component {
|
||||
};
|
||||
|
||||
update() {
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "http://simpread.ksria.cn/sites/details/" + this.props.info.domain + "?type=update" }));
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "https://simpread.ksria.cn/sites/details/" + this.props.info.domain + "?type=update" }));
|
||||
}
|
||||
|
||||
delete() {
|
||||
@ -39,7 +39,7 @@ class Card extends React.Component {
|
||||
}
|
||||
|
||||
addmore() {
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "http://simpread.ksria.cn/sites/details/" + this.props.info.domain }));
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "https://simpread.ksria.cn/sites/details/" + this.props.info.domain }));
|
||||
}
|
||||
|
||||
render() {
|
||||
@ -94,7 +94,7 @@ class Cards extends React.Component {
|
||||
return (
|
||||
<Card url={ item[0] } info={ item[1].info } onChange={t=>this.onChange(t)} />
|
||||
)
|
||||
}) : <card-empty><a href="http://simpread.ksria.cn/sites" target="_blank">没有任何站点,点击打开「站点集市」添加。</a></card-empty>;
|
||||
}) : <card-empty><a href="https://simpread.ksria.cn/sites" target="_blank">没有任何站点,点击打开「站点集市」添加。</a></card-empty>;
|
||||
return (
|
||||
<cards>{ card }</cards>
|
||||
)
|
||||
@ -184,7 +184,7 @@ export default class SitesOpts extends React.Component {
|
||||
}
|
||||
|
||||
addmore() {
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "http://simpread.ksria.cn/sites" }));
|
||||
browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.new_tab, { url: "https://simpread.ksria.cn/sites" }));
|
||||
}
|
||||
|
||||
install() {
|
||||
|
||||
@ -32,7 +32,7 @@ function generateID( type ) {
|
||||
* @param {string} url
|
||||
*/
|
||||
function install( id, url, callback ) {
|
||||
url = id ? `http://simpread.ksria.cn/plugins/srplug/${id}.srplug` : url;
|
||||
url = id ? `https://simpread.ksria.cn/plugins/srplug/${id}.srplug` : url;
|
||||
url = url + `?${+new Date()}`;
|
||||
console.log( "install url is", url )
|
||||
$.ajax({ url, dataType: "json" })
|
||||
|
||||
@ -372,7 +372,7 @@ class Storage {
|
||||
*/
|
||||
get service() {
|
||||
//return "http://localhost:3000";
|
||||
return "http://simpread.ksria.cn";
|
||||
return "https://simpread.ksria.cn";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user