mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 16:55:12 +08:00
moved login route from /login to /embed/login
This commit is contained in:
@@ -75,7 +75,7 @@ export default class Embed extends React.Component {
|
||||
<AutomaticAssetClosure asset={asset} />
|
||||
<IfSlotIsNotEmpty slot="login">
|
||||
<Popup
|
||||
href={`login?parentUrl=${encodeURIComponent(parentUrl)}`}
|
||||
href={`embed/login?parentUrl=${encodeURIComponent(parentUrl)}`}
|
||||
title="Login"
|
||||
features="menubar=0,resizable=0,width=500,height=550,top=200,left=500"
|
||||
open={showSignInDialog}
|
||||
|
||||
@@ -5,4 +5,8 @@ router.use('/stream', (req, res) => {
|
||||
res.render('embed/stream');
|
||||
});
|
||||
|
||||
router.use('/login', (req, res) => {
|
||||
res.render('embed/login');
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
||||
@@ -160,10 +160,6 @@ if (process.env.NODE_ENV !== 'production') {
|
||||
});
|
||||
}
|
||||
|
||||
router.use('/login', staticTemplate, async (req, res, next) => {
|
||||
return res.render('login');
|
||||
});
|
||||
|
||||
// Inject server route plugins.
|
||||
plugins.get('server', 'router').forEach(plugin => {
|
||||
debug(`added plugin '${plugin.plugin.name}'`);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
<link rel="stylesheet" type="text/css" href="<%= STATIC_URL %>static/embed/stream/default.css">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<%_ if (locals.customCssUrl) { _%>
|
||||
Reference in New Issue
Block a user