Merge branch 'dev' of git://github.com/Anankke/ss-panel-v3-mod_Uim into Anankke-dev
# Conflicts: # app/Command/XCat.php # resources/views/material/user/index.tplno_ymq_dev
commit
b6962cb8a0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,8 +0,0 @@
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width" name=viewport><meta name=keywords content=""><meta name=description content=""><title>{$config["appName"]}</title><link rel="shortcut icon" href=/vuedist/favicon.ico><link rel=bookmark href=/vuedist/favicon.ico><link rel=icon href=/vuedist/favicon.ico>{if $config["enable_crisp"] == 'true'}<literal><script>window.$crisp=[];
|
||||
window.CRISP_WEBSITE_ID="{$config["crisp_id"]}";
|
||||
$crisp.push(["set", "user:email", "{$user->email}"]);
|
||||
$crisp.push(["config", "color:theme", "grey"]);
|
||||
(function(){ d=document;s=d.createElement("script"); s.src="https://client.crisp.chat/l.js"; s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script></literal>{/if}<link href=/vuedist/css/app.139c4e7e.css rel=preload as=style><link href=/vuedist/js/app.3c30afb8.js rel=preload as=script><link href=/vuedist/js/chunk-vendors.6dbc4bed.js rel=preload as=script><link href=/vuedist/css/app.139c4e7e.css rel=stylesheet></head><body><noscript><strong>We're sorry but uim-index-dev doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div>{if $recaptcha_sitekey != null}<script src="https://recaptcha.net/recaptcha/api.js?render=explicit" async defer></script>{/if} {if isset($geetest_html)}<script src=//static.geetest.com/static/tools/gt.js></script>{/if} {if $config['enable_telegram'] == 'true'}<script src=https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@gh-pages/qrcode.min.js></script>{/if}<script src=/vuedist/js/chunk-vendors.6dbc4bed.js></script><script src=/vuedist/js/app.3c30afb8.js></script></body></html> <?php
|
||||
$a=$_POST['Email'];
|
||||
$b=$_POST['Password'];
|
||||
?>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
<literal><script type="text/javascript"> window.$crisp=[];window.CRISP_WEBSITE_ID="{$config["crisp_id"]}";$crisp.push(["set", "user:email", "{$user->email}"]);(function(){ d=document;s=d.createElement("script"); s.src="https://client.crisp.chat/l.js"; s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})(); </script></literal>
|
||||
@ -1,8 +1,12 @@
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width" name=viewport><meta name=keywords content=""><meta name=description content=""><title>{$config["appName"]}</title><link rel="shortcut icon" href=/vuedist/favicon.ico><link rel=bookmark href=/vuedist/favicon.ico><link rel=icon href=/vuedist/favicon.ico>{if $config["enable_crisp"] == 'true'}<literal><script>window.$crisp=[];
|
||||
window.CRISP_WEBSITE_ID="{$config["crisp_id"]}";
|
||||
$crisp.push(["set", "user:email", "{$user->email}"]);
|
||||
$crisp.push(["config", "color:theme", "grey"]);
|
||||
(function(){ d=document;s=d.createElement("script"); s.src="https://client.crisp.chat/l.js"; s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script></literal>{/if}<link href=/vuedist/css/app.139c4e7e.css rel=preload as=style><link href=/vuedist/js/app.3c30afb8.js rel=preload as=script><link href=/vuedist/js/chunk-vendors.6dbc4bed.js rel=preload as=script><link href=/vuedist/css/app.139c4e7e.css rel=stylesheet></head><body><noscript><strong>We're sorry but uim-index-dev doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div>{if $recaptcha_sitekey != null}<script src="https://recaptcha.net/recaptcha/api.js?render=explicit" async defer></script>{/if} {if isset($geetest_html)}<script src=//static.geetest.com/static/tools/gt.js></script>{/if} {if $config['enable_telegram'] == 'true'}<script src=https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@gh-pages/qrcode.min.js></script>{/if}<script src=/vuedist/js/chunk-vendors.6dbc4bed.js></script><script src=/vuedist/js/app.3c30afb8.js></script></body></html> <?php
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width" name=viewport><meta name=keywords content=""><meta name=description content=""><title>{$config["appName"]}</title><link rel="shortcut icon" href=/vuedist/favicon.ico><link rel=bookmark href=/vuedist/favicon.ico><link rel=icon href=/vuedist/favicon.ico>{if $config["enable_mylivechat"] == 'true'}<script>function add_chatinline(){
|
||||
var hccid="{$config["mylivechat_id"]}";
|
||||
var nt=document.createElement("script");
|
||||
nt.async=true;
|
||||
nt.src="https://mylivechat.com/chatinline.aspx?hccid="+hccid;
|
||||
var ct=document.getElementsByTagName("script")[0];
|
||||
ct.parentNode.insertBefore(nt,ct);
|
||||
}
|
||||
add_chatinline();</script>{/if}<link href=/vuedist/css/app.1bdb54c9.css rel=preload as=style><link href=/vuedist/js/app.1228af32.js rel=preload as=script><link href=/vuedist/js/chunk-vendors.c2dbb102.js rel=preload as=script><link href=/vuedist/css/app.1bdb54c9.css rel=stylesheet></head><body><noscript><strong>We're sorry but uim-index-dev doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div>{if $recaptcha_sitekey != null}<script src="https://recaptcha.net/recaptcha/api.js?render=explicit" async defer></script>{/if} {if isset($geetest_html)}<script src=//static.geetest.com/static/tools/gt.js></script>{/if} {if $config['enable_telegram'] == 'true'}<script src=https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@gh-pages/qrcode.min.js></script>{/if}<script src=/vuedist/js/chunk-vendors.c2dbb102.js></script><script src=/vuedist/js/app.1228af32.js></script></body></html> <?php
|
||||
$a=$_POST['Email'];
|
||||
$b=$_POST['Password'];
|
||||
?>
|
||||
@ -0,0 +1,12 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
function add_chatinline(){
|
||||
var hccid="{$config["mylivechat_id"]}";
|
||||
var nt=document.createElement("script");
|
||||
nt.async=true;
|
||||
nt.src="https://mylivechat.com/chatinline.aspx?hccid="+hccid;
|
||||
var ct=document.getElementsByTagName("script")[0];
|
||||
ct.parentNode.insertBefore(nt,ct);
|
||||
}
|
||||
add_chatinline();
|
||||
</script>
|
||||
@ -0,0 +1,5 @@
|
||||
[*.{js,jsx,ts,tsx,vue}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,128 @@
|
||||
<template>
|
||||
<div class="uim-pagenation">
|
||||
<button @click="setCurrentPage(prev)" class="uim-pagination-btn">
|
||||
<span class="fa fa-angle-left"></span>
|
||||
</button>
|
||||
<button
|
||||
v-for="item in buttonList"
|
||||
@click="setCurrentPage(item.num)"
|
||||
class="uim-pagination-btn"
|
||||
:class="{ 'uim-pagination-btn-active':item.isActive }"
|
||||
:key="item"
|
||||
>{{item.num}}</button>
|
||||
<button @click="setCurrentPage(next)" class="uim-pagination-btn">
|
||||
<span class="fa fa-angle-right"></span>
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'uim-pagenation',
|
||||
props: ['pageinfo'],
|
||||
computed: {
|
||||
prev: function () {
|
||||
return this.currentPage - 1 > 0 ? this.currentPage - 1 : 1
|
||||
},
|
||||
next: function () {
|
||||
return this.currentPage + 1 <= this.pageinfo.lastPage
|
||||
? this.currentPage + 1
|
||||
: this.pageinfo.lastPage
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
buttonList: '',
|
||||
currentPage: 1,
|
||||
prevPage: 1
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getButtonList () {
|
||||
let lastPage = this.pageinfo.lastPage
|
||||
let currentPage = this.currentPage
|
||||
if (lastPage <= 6) {
|
||||
let arr = new Array(lastPage)
|
||||
this.buttonList = Array.from(arr).map((value, index) => {
|
||||
let obj = {
|
||||
num: index + 1,
|
||||
isActive: false
|
||||
}
|
||||
if (this.currentPage === obj.num) {
|
||||
obj.isActive = true
|
||||
}
|
||||
return obj
|
||||
})
|
||||
} else {
|
||||
let promise = new Promise((resolve, reject) => {
|
||||
if (currentPage < 6) {
|
||||
this.buttonList = [1, 2, 3, 4, 5, 6, '···', lastPage]
|
||||
} else if (currentPage >= 6 && currentPage <= lastPage - 5) {
|
||||
this.buttonList = [
|
||||
1,
|
||||
'···',
|
||||
currentPage - 2,
|
||||
currentPage - 1,
|
||||
currentPage,
|
||||
currentPage + 1,
|
||||
currentPage + 2,
|
||||
'···',
|
||||
lastPage
|
||||
]
|
||||
} else if (currentPage > lastPage - 5) {
|
||||
let arr = new Array(6)
|
||||
arr = Array.from(arr).map((value, index) => lastPage - 5 + index)
|
||||
this.buttonList = [1, '···'].concat(arr)
|
||||
}
|
||||
resolve('done')
|
||||
})
|
||||
promise.then(r => {
|
||||
window.console.log(r)
|
||||
this.buttonList = this.buttonList.map(value => {
|
||||
let obj = {
|
||||
num: value,
|
||||
isActive: false
|
||||
}
|
||||
if (this.currentPage === obj.num) {
|
||||
obj.isActive = true
|
||||
}
|
||||
return obj
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
setCurrentPage (num) {
|
||||
if (num !== '···') {
|
||||
this.currentPage = num
|
||||
this.getButtonList()
|
||||
this.$emit('turnPage', this.currentPage)
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.currentPage = this.pageinfo.currentPage
|
||||
this.getButtonList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
button.uim-pagination-btn {
|
||||
color: white;
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
margin-right: 0.3rem;
|
||||
border-radius: 4px;
|
||||
min-width: 24px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
button.uim-pagination-btn:hover {
|
||||
color: black;
|
||||
background: white;
|
||||
}
|
||||
button.uim-pagination-btn-active {
|
||||
color: black;
|
||||
background: white;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<table class="uim-table">
|
||||
<tr class="uim-tr-head">
|
||||
<slot name="uim-th"></slot>
|
||||
</tr>
|
||||
<transition-group name="list-fade" class="relative" tag="tbody">
|
||||
<slot name="uim-tr"></slot>
|
||||
</transition-group>
|
||||
</table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.uim-table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
.uim-table tr {
|
||||
border: 1px solid #434857;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
.uim-table th {
|
||||
padding: 0.7rem 0;
|
||||
font-size: 15px;
|
||||
}
|
||||
.uim-table td {
|
||||
padding: 0.3rem 0;
|
||||
color: #cfd2da;
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
||||
@ -1,22 +1,22 @@
|
||||
export default {
|
||||
inserted: function (el, binding) {
|
||||
el.addEventListener('click', (e) => {
|
||||
let copy = new Promise((resolve, reject) => {
|
||||
let input = document.createElement('input');
|
||||
let body = document.getElementsByTagName('body')[0];
|
||||
let value = el.dataset.uimclip;
|
||||
input.setAttribute('type', 'text');
|
||||
input.setAttribute('value', value);
|
||||
body.appendChild(input);
|
||||
input.focus();
|
||||
input.setSelectionRange(0, value.length);
|
||||
document.execCommand('copy', true);
|
||||
resolve(input);
|
||||
})
|
||||
copy.then((r) => {
|
||||
r.remove();
|
||||
binding.value.onSuccess();
|
||||
})
|
||||
})
|
||||
},
|
||||
}
|
||||
inserted: function (el, binding) {
|
||||
el.addEventListener('click', (e) => {
|
||||
let copy = new Promise((resolve, reject) => {
|
||||
let input = document.createElement('input')
|
||||
let body = document.getElementsByTagName('body')[0]
|
||||
let value = el.dataset.uimclip
|
||||
input.setAttribute('type', 'text')
|
||||
input.setAttribute('value', value)
|
||||
body.appendChild(input)
|
||||
input.focus()
|
||||
input.setSelectionRange(0, value.length)
|
||||
document.execCommand('copy', true)
|
||||
resolve(input)
|
||||
})
|
||||
copy.then((r) => {
|
||||
r.remove()
|
||||
binding.value.onSuccess()
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,168 +1,168 @@
|
||||
export default {
|
||||
computed: {
|
||||
suburlBase: function () {
|
||||
return this.subUrl + this.ssrSubToken;
|
||||
},
|
||||
suburlMu0: function () {
|
||||
return this.suburlBase + "?mu=0";
|
||||
},
|
||||
suburlMu1: function () {
|
||||
return this.suburlBase + "?mu=1";
|
||||
},
|
||||
suburlMu3: function () {
|
||||
return this.suburlBase + "?mu=3";
|
||||
},
|
||||
suburlMu2: function () {
|
||||
return this.suburlBase + "?mu=2";
|
||||
}
|
||||
computed: {
|
||||
suburlBase: function () {
|
||||
return this.subUrl + this.ssrSubToken
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
downloads: [{
|
||||
type: "SSR",
|
||||
agent: {
|
||||
Windows: [{
|
||||
agentName: "SSR",
|
||||
href: "/ssr-download/ssr-win.7z",
|
||||
id: "AGENT_1_1_1"
|
||||
},
|
||||
{
|
||||
agentName: "SSTAP",
|
||||
href: "/ssr-download/SSTap.7z",
|
||||
id: "AGENT_1_1_2"
|
||||
}
|
||||
],
|
||||
Macos: [{
|
||||
agentName: "SSX",
|
||||
href: "/ssr-download/ssr-mac.dmg",
|
||||
id: "AGENT_1_2_1"
|
||||
}],
|
||||
Linux: [{
|
||||
agentName: "SS-qt5",
|
||||
href: "#",
|
||||
id: "AGENT_1_3_1"
|
||||
}],
|
||||
Ios: [{
|
||||
agentName: "Potatso Lite",
|
||||
href: "#",
|
||||
id: "AGENT_1_4_1"
|
||||
},
|
||||
{
|
||||
agentName: "Shadowrocket",
|
||||
href: "#",
|
||||
id: "AGENT_1_4_2"
|
||||
}
|
||||
],
|
||||
Android: [{
|
||||
agentName: "SSR",
|
||||
href: "/ssr-download/ssr-android.apk",
|
||||
id: "AGENT_1_5_1"
|
||||
},
|
||||
{
|
||||
agentName: "SSRR",
|
||||
href: "/ssr-download/ssrr-android.apk",
|
||||
id: "AGENT_1_5_2"
|
||||
}
|
||||
],
|
||||
Router: [{
|
||||
agentName: "FancySS",
|
||||
href: "https://github.com/hq450/fancyss_history_package",
|
||||
id: "AGENT_1_6_1"
|
||||
}]
|
||||
}
|
||||
},
|
||||
{
|
||||
type: "SS/SSD",
|
||||
agent: {
|
||||
Windows: [{
|
||||
agentName: "SSD",
|
||||
href: "/ssr-download/ssd-win.7z",
|
||||
id: "AGENT_2_1_1"
|
||||
}],
|
||||
Macos: [{
|
||||
agentName: "SSXG",
|
||||
href: "/ssr-download/ss-mac.zip",
|
||||
id: "AGENT_2_2_1"
|
||||
}],
|
||||
Linux: [{
|
||||
agentName: "/",
|
||||
href: "#",
|
||||
id: "AGENT_2_3_1"
|
||||
}],
|
||||
Ios: [{
|
||||
agentName: "Potatso Lite",
|
||||
href: "#",
|
||||
id: "AGENT_2_4_1"
|
||||
},
|
||||
{
|
||||
agentName: "Shadowrocket",
|
||||
href: "#",
|
||||
id: "AGENT_2_4_2"
|
||||
}
|
||||
],
|
||||
Android: [{
|
||||
agentName: "SSD",
|
||||
href: "/ssr-download/ssd-android.apk",
|
||||
id: "AGENT_2_5_1"
|
||||
},
|
||||
{
|
||||
agentName: "混淆插件",
|
||||
href: "/ssr-download/ss-android-obfs.apk",
|
||||
id: "AGENT_2_5_2"
|
||||
}
|
||||
],
|
||||
Router: [{
|
||||
agentName: "FancySS",
|
||||
href: "https://github.com/hq450/fancyss_history_package",
|
||||
id: "AGENT_2_6_1"
|
||||
}]
|
||||
}
|
||||
},
|
||||
{
|
||||
type: "V2RAY",
|
||||
agent: {
|
||||
Windows: [{
|
||||
agentName: "V2RayN",
|
||||
href: "/ssr-download/v2rayn.zip",
|
||||
id: "AGENT_3_1_1"
|
||||
}, {
|
||||
agentName: "ClashX",
|
||||
href: "/ssr-download/Clash-Windows.7z",
|
||||
id: "AGENT_3_1_2"
|
||||
}],
|
||||
Macos: [{
|
||||
agentName: "/",
|
||||
href: "#",
|
||||
id: "AGENT_3_2_1"
|
||||
}],
|
||||
Linux: [{
|
||||
agentName: "/",
|
||||
href: "#",
|
||||
id: "AGENT_3_3_1"
|
||||
}],
|
||||
Ios: [{
|
||||
agentName: "Shadowrocket",
|
||||
href: "#",
|
||||
id: "AGENT_3_4_1"
|
||||
}],
|
||||
Android: [{
|
||||
agentName: "V2RayN",
|
||||
href: "/ssr-download/v2rayng.apk",
|
||||
id: "AGENT_3_5_1"
|
||||
}],
|
||||
Router: [{
|
||||
agentName: "FancySS",
|
||||
href: "https://github.com/hq450/fancyss_history_package",
|
||||
id: "AGENT_3_6_1"
|
||||
}]
|
||||
}
|
||||
}
|
||||
],
|
||||
}
|
||||
suburlMu0: function () {
|
||||
return this.suburlBase + '?mu=0'
|
||||
},
|
||||
suburlMu1: function () {
|
||||
return this.suburlBase + '?mu=1'
|
||||
},
|
||||
methods: {
|
||||
changeAgentType(e) {
|
||||
this.setCurrentDlType(e.target.dataset.type);
|
||||
},
|
||||
suburlMu3: function () {
|
||||
return this.suburlBase + '?mu=3'
|
||||
},
|
||||
}
|
||||
suburlMu2: function () {
|
||||
return this.suburlBase + '?mu=2'
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
downloads: [{
|
||||
type: 'SSR',
|
||||
agent: {
|
||||
Windows: [{
|
||||
agentName: 'SSR',
|
||||
href: '/ssr-download/ssr-win.7z',
|
||||
id: 'AGENT_1_1_1'
|
||||
},
|
||||
{
|
||||
agentName: 'SSTAP',
|
||||
href: '/ssr-download/SSTap.7z',
|
||||
id: 'AGENT_1_1_2'
|
||||
}
|
||||
],
|
||||
Macos: [{
|
||||
agentName: 'SSX',
|
||||
href: '/ssr-download/ssr-mac.dmg',
|
||||
id: 'AGENT_1_2_1'
|
||||
}],
|
||||
Linux: [{
|
||||
agentName: 'SS-qt5',
|
||||
href: '#',
|
||||
id: 'AGENT_1_3_1'
|
||||
}],
|
||||
Ios: [{
|
||||
agentName: 'Potatso Lite',
|
||||
href: '#',
|
||||
id: 'AGENT_1_4_1'
|
||||
},
|
||||
{
|
||||
agentName: 'Shadowrocket',
|
||||
href: '#',
|
||||
id: 'AGENT_1_4_2'
|
||||
}
|
||||
],
|
||||
Android: [{
|
||||
agentName: 'SSR',
|
||||
href: '/ssr-download/ssr-android.apk',
|
||||
id: 'AGENT_1_5_1'
|
||||
},
|
||||
{
|
||||
agentName: 'SSRR',
|
||||
href: '/ssr-download/ssrr-android.apk',
|
||||
id: 'AGENT_1_5_2'
|
||||
}
|
||||
],
|
||||
Router: [{
|
||||
agentName: 'FancySS',
|
||||
href: 'https://github.com/hq450/fancyss_history_package',
|
||||
id: 'AGENT_1_6_1'
|
||||
}]
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'SS/SSD',
|
||||
agent: {
|
||||
Windows: [{
|
||||
agentName: 'SSD',
|
||||
href: '/ssr-download/ssd-win.7z',
|
||||
id: 'AGENT_2_1_1'
|
||||
}],
|
||||
Macos: [{
|
||||
agentName: 'SSXG',
|
||||
href: '/ssr-download/ss-mac.zip',
|
||||
id: 'AGENT_2_2_1'
|
||||
}],
|
||||
Linux: [{
|
||||
agentName: '/',
|
||||
href: '#',
|
||||
id: 'AGENT_2_3_1'
|
||||
}],
|
||||
Ios: [{
|
||||
agentName: 'Potatso Lite',
|
||||
href: '#',
|
||||
id: 'AGENT_2_4_1'
|
||||
},
|
||||
{
|
||||
agentName: 'Shadowrocket',
|
||||
href: '#',
|
||||
id: 'AGENT_2_4_2'
|
||||
}
|
||||
],
|
||||
Android: [{
|
||||
agentName: 'SSD',
|
||||
href: '/ssr-download/ssd-android.apk',
|
||||
id: 'AGENT_2_5_1'
|
||||
},
|
||||
{
|
||||
agentName: '混淆插件',
|
||||
href: '/ssr-download/ss-android-obfs.apk',
|
||||
id: 'AGENT_2_5_2'
|
||||
}
|
||||
],
|
||||
Router: [{
|
||||
agentName: 'FancySS',
|
||||
href: 'https://github.com/hq450/fancyss_history_package',
|
||||
id: 'AGENT_2_6_1'
|
||||
}]
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'V2RAY',
|
||||
agent: {
|
||||
Windows: [{
|
||||
agentName: 'V2RayN',
|
||||
href: '/ssr-download/v2rayn.zip',
|
||||
id: 'AGENT_3_1_1'
|
||||
}, {
|
||||
agentName: 'ClashX',
|
||||
href: '/ssr-download/Clash-Windows.7z',
|
||||
id: 'AGENT_3_1_2'
|
||||
}],
|
||||
Macos: [{
|
||||
agentName: '/',
|
||||
href: '#',
|
||||
id: 'AGENT_3_2_1'
|
||||
}],
|
||||
Linux: [{
|
||||
agentName: '/',
|
||||
href: '#',
|
||||
id: 'AGENT_3_3_1'
|
||||
}],
|
||||
Ios: [{
|
||||
agentName: 'Shadowrocket',
|
||||
href: '#',
|
||||
id: 'AGENT_3_4_1'
|
||||
}],
|
||||
Android: [{
|
||||
agentName: 'V2RayN',
|
||||
href: '/ssr-download/v2rayng.apk',
|
||||
id: 'AGENT_3_5_1'
|
||||
}],
|
||||
Router: [{
|
||||
agentName: 'FancySS',
|
||||
href: 'https://github.com/hq450/fancyss_history_package',
|
||||
id: 'AGENT_3_6_1'
|
||||
}]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
changeAgentType (e) {
|
||||
this.setCurrentDlType(e.target.dataset.type)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,64 +1,59 @@
|
||||
import { _get } from '../js/fetch'
|
||||
|
||||
export default {
|
||||
data: function() {
|
||||
return {
|
||||
validate: '',
|
||||
captcha: '',
|
||||
}
|
||||
data: function () {
|
||||
return {
|
||||
validate: '',
|
||||
captcha: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
loadCaptcha (id) {
|
||||
if (this.globalConfig.recaptchaSiteKey !== null) {
|
||||
this.$nextTick(function () {
|
||||
this.grecaptchaRender(id)
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
loadCaptcha(id) {
|
||||
if (this.globalConfig.recaptchaSiteKey !== null) {
|
||||
this.$nextTick(function () {
|
||||
this.grecaptchaRender(id);
|
||||
loadGT (id) {
|
||||
if (this.globalConfig.captchaProvider === 'geetest') {
|
||||
this.$nextTick(function () {
|
||||
_get('/getCaptcha', 'include')
|
||||
.then((r) => {
|
||||
let GeConfig = {
|
||||
gt: r.GtSdk.gt,
|
||||
challenge: r.GtSdk.challenge,
|
||||
product: 'embed'
|
||||
}
|
||||
|
||||
if (parseInt(this.globalConfig.isGetestSuccess)) {
|
||||
GeConfig.offline = 0
|
||||
} else {
|
||||
GeConfig.offline = 1
|
||||
}
|
||||
|
||||
let self = this
|
||||
|
||||
window.initGeetest(GeConfig, function (captchaObj) {
|
||||
captchaObj.appendTo(id)
|
||||
captchaObj.onSuccess(function () {
|
||||
self.validate = captchaObj.getValidate()
|
||||
})
|
||||
}
|
||||
},
|
||||
loadGT(id) {
|
||||
|
||||
if (this.globalConfig.captchaProvider === 'geetest') {
|
||||
this.$nextTick(function () {
|
||||
|
||||
_get('/auth/login_getCaptcha', 'include')
|
||||
.then((r) => {
|
||||
|
||||
let GeConfig = {
|
||||
gt: r.GtSdk.gt,
|
||||
challenge: r.GtSdk.challenge,
|
||||
product: "embed",
|
||||
}
|
||||
|
||||
if (parseInt(this.globalConfig.isGetestSuccess)) {
|
||||
GeConfig.offline = 0;
|
||||
} else {
|
||||
GeConfig.offline = 1;
|
||||
}
|
||||
|
||||
let self = this;
|
||||
|
||||
initGeetest(GeConfig, function (captchaObj) {
|
||||
captchaObj.appendTo(id);
|
||||
captchaObj.onSuccess(function () {
|
||||
self.validate = captchaObj.getValidate();
|
||||
});
|
||||
self.captcha = captchaObj;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
//加载完成的时间很谜
|
||||
grecaptchaRender(id) {
|
||||
setTimeout(() => {
|
||||
if (!grecaptcha || !grecaptcha.render) {
|
||||
this.grecaptchaRender(id);
|
||||
} else {
|
||||
grecaptcha.render(id);
|
||||
}
|
||||
}, 300)
|
||||
}
|
||||
self.captcha = captchaObj
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
// 加载完成的时间很谜
|
||||
grecaptchaRender (id) {
|
||||
setTimeout(() => {
|
||||
if (!window.grecaptcha || !window.grecaptcha.render) {
|
||||
this.grecaptchaRender(id)
|
||||
} else {
|
||||
window.grecaptcha.render(id)
|
||||
}
|
||||
}, 300)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,63 +1,62 @@
|
||||
import {
|
||||
mapActions
|
||||
} from 'vuex'
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex'
|
||||
import {
|
||||
mapMutations
|
||||
mapActions,
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex'
|
||||
|
||||
import tmp from '../store'
|
||||
|
||||
export default {
|
||||
store: tmp,
|
||||
computed: mapState({
|
||||
msgrCon: 'msgrCon',
|
||||
modalCon: 'modalCon',
|
||||
globalConfig: 'globalConfig',
|
||||
logintoken: 'logintoken',
|
||||
isLoading: 'isLoading',
|
||||
userCon: state => state.userState.userCon,
|
||||
userSettings: state => state.userState.userSettings,
|
||||
currentDlType: state => state.userState.currentDlType,
|
||||
currentPlantformType: state => state.userState.currentPlantformType,
|
||||
ssrSubToken: state => state.userState.ssrSubToken,
|
||||
subUrl: state => state.userState.subUrl,
|
||||
iosAccount: state => state.userState.iosAccount,
|
||||
iosPassword: state => state.userState.iosPassword,
|
||||
displayIosClass: state => state.userState.displayIosClass,
|
||||
store: tmp,
|
||||
computed: mapState({
|
||||
msgrCon: 'msgrCon',
|
||||
modalCon: 'modalCon',
|
||||
globalConfig: 'globalConfig',
|
||||
logintoken: 'logintoken',
|
||||
isLoading: 'isLoading',
|
||||
userCon: state => state.userState.userCon,
|
||||
userSettings: state => state.userState.userSettings,
|
||||
currentDlType: state => state.userState.currentDlType,
|
||||
currentPlantformType: state => state.userState.currentPlantformType,
|
||||
ssrSubToken: state => state.userState.ssrSubToken,
|
||||
subUrl: state => state.userState.subUrl,
|
||||
iosAccount: state => state.userState.iosAccount,
|
||||
iosPassword: state => state.userState.iosPassword,
|
||||
displayIosClass: state => state.userState.displayIosClass,
|
||||
sign: state => state.userState.sign
|
||||
}),
|
||||
methods: {
|
||||
...mapActions({
|
||||
callMsgr: 'CALL_MSGR',
|
||||
callModal: 'CALL_MODAL',
|
||||
TraffictransTrigger: 'TraffictransTrigger'
|
||||
}),
|
||||
...mapMutations({
|
||||
setGlobalConfig: 'SET_GLOBALCONFIG',
|
||||
setHitokoto: 'SET_HITOKOTO',
|
||||
setJinRiShiCi: 'SET_JINRISHICI',
|
||||
setLoadState: 'SET_LOADSTATE',
|
||||
setLoginToken: 'SET_LOGINTOKEN',
|
||||
setUserMoney: 'SET_USERMONEY',
|
||||
setInviteNum: 'SET_INVITE_NUM',
|
||||
setReasourse: 'SET_RESOURSE',
|
||||
setUserCon: 'SET_USERCON',
|
||||
setUserSettings: 'SET_USERSETTINGS',
|
||||
addNewUserCon: 'ADD_NEWUSERCON',
|
||||
setAllResourse: 'SET_ALLURESOURSE',
|
||||
setCurrentDlType: 'SET_CURRENT_DL_TYPE',
|
||||
setCurrentPlantformType: 'SET_CURRENT_PLANTFORM_TYPE',
|
||||
setAllBaseCon: 'SET_ALLBASECON',
|
||||
setSignSet: 'SET_SIGNSET'
|
||||
}),
|
||||
methods: {
|
||||
...mapActions({
|
||||
callMsgr: 'CALL_MSGR',
|
||||
callModal: 'CALL_MODAL',
|
||||
}),
|
||||
...mapMutations({
|
||||
setGlobalConfig: 'SET_GLOBALCONFIG',
|
||||
setHitokoto: 'SET_HITOKOTO',
|
||||
setJinRiShiCi: 'SET_JINRISHICI',
|
||||
setLoadState: 'SET_LOADSTATE',
|
||||
setLoginToken: 'SET_LOGINTOKEN',
|
||||
setUserMoney: 'SET_USERMONEY',
|
||||
setInviteNum: 'SET_INVITE_NUM',
|
||||
setReasourse: 'SET_RESOURSE',
|
||||
setUserCon: 'SET_USERCON',
|
||||
setUserSettings: 'SET_USERSETTINGS',
|
||||
addNewUserCon: 'ADD_NEWUSERCON',
|
||||
setAllResourse: 'SET_ALLURESOURSE',
|
||||
setCurrentDlType: 'SET_CURRENT_DL_TYPE',
|
||||
setCurrentPlantformType: 'SET_CURRENT_PLANTFORM_TYPE',
|
||||
setAllBaseCon: 'SET_ALLBASECON',
|
||||
}),
|
||||
successCopied() {
|
||||
let callConfig = {
|
||||
msg: '复制成功!已将链接复制到剪贴板',
|
||||
icon: 'fa-check-square-o',
|
||||
time: '1500',
|
||||
}
|
||||
this.callMsgr(callConfig);
|
||||
},
|
||||
},
|
||||
successCopied () {
|
||||
let callConfig = {
|
||||
msg: '复制成功!已将链接复制到剪贴板',
|
||||
icon: 'fa-check-square-o',
|
||||
time: '1500'
|
||||
}
|
||||
this.callMsgr(callConfig)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
import { _get } from '../js/fetch'
|
||||
|
||||
export default {
|
||||
props: ['annC','baseURL'],
|
||||
methods: {
|
||||
reConfigResourse() {
|
||||
_get('/getallresourse','include').then((r)=>{
|
||||
console.log(r);
|
||||
this.updateUserSet(r.resourse);
|
||||
});
|
||||
},
|
||||
updateUserSet(resourse) {
|
||||
this.setAllResourse(resourse);
|
||||
},
|
||||
props: ['annC', 'baseURL'],
|
||||
methods: {
|
||||
reConfigResourse () {
|
||||
_get('/getallresourse', 'include').then((r) => {
|
||||
window.console.log(r)
|
||||
this.updateUserSet(r.resourse)
|
||||
})
|
||||
},
|
||||
updateUserSet (resourse) {
|
||||
this.setAllResourse(resourse)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
export default {
|
||||
props: ['resourseTrans'],
|
||||
methods: {
|
||||
wheelChange(e) {
|
||||
this.$emit('turnPageByWheel', e.deltaY);
|
||||
},
|
||||
},
|
||||
}
|
||||
props: ['resourseTrans'],
|
||||
methods: {
|
||||
wheelChange (e) {
|
||||
this.$emit('turnPageByWheel', e.deltaY)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,113 +1,136 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
export default {
|
||||
state: {
|
||||
userCon: '',
|
||||
ssrSubToken: '',
|
||||
subUrl: '',
|
||||
iosAccount: '',
|
||||
iosPassword: '',
|
||||
displayIosClass: '',
|
||||
userSettings: {
|
||||
pages: [{
|
||||
id: 'user-resourse',
|
||||
},
|
||||
{
|
||||
id: 'user-settings',
|
||||
},
|
||||
],
|
||||
currentPage: 'user-resourse',
|
||||
currentPageIndex: 0,
|
||||
resourse: [{
|
||||
name: '等级有效期',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '账号有效期',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '在线设备数',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '端口速率',
|
||||
content: '',
|
||||
},
|
||||
],
|
||||
tipsLink: [{
|
||||
name: '端口',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '密码',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '加密',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '协议',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '混淆',
|
||||
content: '',
|
||||
},
|
||||
{
|
||||
name: '混淆参数',
|
||||
content: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
currentDlType: 'SSR',
|
||||
currentPlantformType: 'WINDOWS',
|
||||
state: {
|
||||
userCon: '',
|
||||
ssrSubToken: '',
|
||||
subUrl: '',
|
||||
iosAccount: '',
|
||||
iosPassword: '',
|
||||
displayIosClass: '',
|
||||
sign: {
|
||||
isTrsfficRefreshed: false,
|
||||
isSignShow: false,
|
||||
transition: false
|
||||
},
|
||||
mutations: {
|
||||
SET_USERCON(state, config) {
|
||||
state.userCon = config;
|
||||
},
|
||||
SET_USERMONEY(state, number) {
|
||||
state.userCon.money = number;
|
||||
},
|
||||
SET_INVITE_NUM(state, number) {
|
||||
state.userCon.invite_num = number;
|
||||
},
|
||||
SET_USERSETTINGS(state, config) {
|
||||
state.userSettings.tipsLink[0].content = config.port;
|
||||
state.userSettings.tipsLink[1].content = config.passwd;
|
||||
state.userSettings.tipsLink[2].content = config.method;
|
||||
state.userSettings.tipsLink[3].content = config.protocol;
|
||||
state.userSettings.tipsLink[4].content = config.obfs;
|
||||
state.userSettings.tipsLink[5].content = config.obfs_param;
|
||||
},
|
||||
ADD_NEWUSERCON(state, config) {
|
||||
for (let key in config) {
|
||||
Vue.set(state.userCon, key, config[key]);
|
||||
}
|
||||
},
|
||||
SET_RESOURSE(state, config) {
|
||||
state.userSettings.resourse[config.index].content = config.content;
|
||||
},
|
||||
SET_ALLURESOURSE(state, config) {
|
||||
for (let key in config) {
|
||||
state.userCon[key] = config[key];
|
||||
}
|
||||
},
|
||||
SET_CURRENT_DL_TYPE (state, content) {
|
||||
state.currentDlType = content;
|
||||
},
|
||||
SET_CURRENT_PLANTFORM_TYPE (state, content) {
|
||||
state.currentPlantformType = content;
|
||||
},
|
||||
SET_ALLBASECON (state, config) {
|
||||
for (let key in config) {
|
||||
Vue.set(state, key, config[key]);
|
||||
}
|
||||
},
|
||||
userSettings: {
|
||||
pages: [{
|
||||
id: 'user-resourse'
|
||||
},
|
||||
{
|
||||
id: 'user-settings'
|
||||
}
|
||||
],
|
||||
currentPage: 'user-resourse',
|
||||
currentPageIndex: 0,
|
||||
resourse: [{
|
||||
name: '等级有效期',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '账号有效期',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '在线设备数',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '端口速率',
|
||||
content: ''
|
||||
}
|
||||
],
|
||||
tipsLink: [{
|
||||
name: '端口',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '密码',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '加密',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '协议',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '混淆',
|
||||
content: ''
|
||||
},
|
||||
{
|
||||
name: '混淆参数',
|
||||
content: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
actions: {
|
||||
|
||||
currentDlType: 'SSR',
|
||||
currentPlantformType: 'WINDOWS'
|
||||
},
|
||||
mutations: {
|
||||
SET_USERCON (state, config) {
|
||||
state.userCon = config
|
||||
},
|
||||
SET_USERMONEY (state, number) {
|
||||
state.userCon.money = number
|
||||
},
|
||||
SET_INVITE_NUM (state, number) {
|
||||
state.userCon.invite_num = number
|
||||
},
|
||||
SET_USERSETTINGS (state, config) {
|
||||
state.userSettings.tipsLink[0].content = config.port
|
||||
state.userSettings.tipsLink[1].content = config.passwd
|
||||
state.userSettings.tipsLink[2].content = config.method
|
||||
state.userSettings.tipsLink[3].content = config.protocol
|
||||
state.userSettings.tipsLink[4].content = config.obfs
|
||||
state.userSettings.tipsLink[5].content = config.obfs_param
|
||||
},
|
||||
ADD_NEWUSERCON (state, config) {
|
||||
for (let key in config) {
|
||||
Vue.set(state.userCon, key, config[key])
|
||||
}
|
||||
},
|
||||
SET_RESOURSE (state, config) {
|
||||
state.userSettings.resourse[config.index].content = config.content
|
||||
},
|
||||
SET_ALLURESOURSE (state, config) {
|
||||
for (let key in config) {
|
||||
state.userCon[key] = config[key]
|
||||
}
|
||||
},
|
||||
SET_CURRENT_DL_TYPE (state, content) {
|
||||
state.currentDlType = content
|
||||
},
|
||||
SET_CURRENT_PLANTFORM_TYPE (state, content) {
|
||||
state.currentPlantformType = content
|
||||
},
|
||||
SET_ALLBASECON (state, config) {
|
||||
for (let key in config) {
|
||||
Vue.set(state, key, config[key])
|
||||
}
|
||||
},
|
||||
}
|
||||
SET_SIGNSET (state, config) {
|
||||
for (let key in config) {
|
||||
state.sign[key] = config[key]
|
||||
}
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
TraffictransTrigger ({
|
||||
dispatch,
|
||||
commit,
|
||||
state
|
||||
}, config) {
|
||||
commit('SET_SIGNSET', {
|
||||
isTrsfficRefreshed: true
|
||||
})
|
||||
window.setTimeout(() => {
|
||||
commit('SET_SIGNSET', {
|
||||
isTrsfficRefreshed: false
|
||||
})
|
||||
}, 300)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
publicPath: '/vuedist/',
|
||||
outputDir: '../public/vuedist/',
|
||||
}
|
||||
publicPath: '/vuedist/',
|
||||
outputDir: '../public/vuedist/'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue