mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-05 19:40:09 +00:00
Changed /panel to /dashboard
This commit is contained in:
parent
9cd3846795
commit
999c148dff
@ -24,7 +24,7 @@ safe.use('/api', api)
|
|||||||
safe.get('/', (req, res, next) => res.sendFile('home.html', { root: './pages/' }))
|
safe.get('/', (req, res, next) => res.sendFile('home.html', { root: './pages/' }))
|
||||||
safe.get('/faq', (req, res, next) => res.sendFile('faq.html', { root: './pages/' }))
|
safe.get('/faq', (req, res, next) => res.sendFile('faq.html', { root: './pages/' }))
|
||||||
safe.get('/auth', (req, res, next) => res.sendFile('auth.html', { root: './pages/' }))
|
safe.get('/auth', (req, res, next) => res.sendFile('auth.html', { root: './pages/' }))
|
||||||
safe.get('/panel', (req, res, next) => res.sendFile('panel.html', { root: './pages/' }))
|
safe.get('/dashboard', (req, res, next) => res.sendFile('dashboard.html', { root: './pages/' }))
|
||||||
safe.use((req, res, next) => res.status(404).sendFile('404.html', { root: './pages/error/' }))
|
safe.use((req, res, next) => res.status(404).sendFile('404.html', { root: './pages/error/' }))
|
||||||
safe.use((req, res, next) => res.status(500).sendFile('500.html', { root: './pages/error/' }))
|
safe.use((req, res, next) => res.status(500).sendFile('500.html', { root: './pages/error/' }))
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script>
|
||||||
<script type="text/javascript" src="https://use.fontawesome.com/cd26baa9bd.js"></script>
|
<script type="text/javascript" src="https://use.fontawesome.com/cd26baa9bd.js"></script>
|
||||||
<script type="text/javascript" src="/js/panel.js"></script>
|
<script type="text/javascript" src="/js/dashboard.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<h3 class="subtitle"><a href="/auth" id="loginLinkText"></a></h3>
|
<h3 class="subtitle"><a href="/auth" id="loginLinkText"></a></h3>
|
||||||
<h3 id="links">
|
<h3 id="links">
|
||||||
<a href="https://github.com/kanadeko/loli-safe" target="_blank" class="is-danger">View on Github</a><span>|</span><a href="https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj" target="_blank" class="is-danger">Chrome extension</a><span>|</span><a href="/faq" class="is-danger">faq</a><span>|</span><a href="/auth" target="_blank" class="is-danger">Dashboard</a>
|
<a href="https://github.com/kanadeko/loli-safe" target="_blank" class="is-danger">View on Github</a><span>|</span><a href="https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj" target="_blank" class="is-danger">Chrome extension</a><span>|</span><a href="/faq" class="is-danger">FAQ</a><span>|</span><a href="/auth" target="_blank" class="is-danger">Dashboard</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +20,7 @@ page.do = function(dest){
|
|||||||
return swal('Error', response.data.description, 'error');
|
return swal('Error', response.data.description, 'error');
|
||||||
|
|
||||||
localStorage.token = response.data.token;
|
localStorage.token = response.data.token;
|
||||||
window.location = '/panel';
|
window.location = '/dashboard';
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
@ -41,7 +41,7 @@ page.verify = function(){
|
|||||||
if(response.data.success === false)
|
if(response.data.success === false)
|
||||||
return swal('Error', response.data.description, 'error');
|
return swal('Error', response.data.description, 'error');
|
||||||
|
|
||||||
window.location = '/panel';
|
window.location = '/dashboard';
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
|
@ -69,7 +69,10 @@ upload.prepareUpload = function(){
|
|||||||
|
|
||||||
document.getElementById('maxFileSize').innerHTML = 'Maximum upload size per file is ' + upload.maxFileSize;
|
document.getElementById('maxFileSize').innerHTML = 'Maximum upload size per file is ' + upload.maxFileSize;
|
||||||
document.getElementById('loginToUpload').style.display = 'none';
|
document.getElementById('loginToUpload').style.display = 'none';
|
||||||
document.getElementById('loginLinkText').innerHTML = 'Create an account and keep track of your uploads';
|
|
||||||
|
if(upload.token === undefined)
|
||||||
|
document.getElementById('loginLinkText').innerHTML = 'Create an account and keep track of your uploads';
|
||||||
|
|
||||||
document.getElementById('uploadContainer').appendChild(div);
|
document.getElementById('uploadContainer').appendChild(div);
|
||||||
|
|
||||||
upload.prepareDropzone();
|
upload.prepareDropzone();
|
||||||
|
Loading…
Reference in New Issue
Block a user