-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vueify login page #4634
vueify login page #4634
Conversation
I'm okay with exposing the |
name: 'login', | ||
meta: { | ||
title: 'Login', | ||
header: 'Medusa' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No header for the login page. It has its own header.
It's not currently an issue, because it doesn't use the VueRouter template (index.mako
),
but it will be when it does.
@@ -49,7 +49,7 @@ | |||
<link rel="stylesheet" type="text/css" href="css/lib/vue-snotify-material.css?${sbPID}"/> | |||
<%block name="css" /> | |||
</head> | |||
<body ${('data-controller="' + controller + '" data-action="' + action + '" api-key="' + app.API_KEY +'" api-root="' + app.WEB_ROOT + '/api/v2/"', '')[title == 'Login']}> | |||
<body ${('data-controller="' + controller + '" data-action="' + action + '" api-key="' + app.API_KEY + '"', '')[title == 'Login']} api-root="${app.WEB_ROOT}/api/v2/"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's expose web-root="${app.WEB_ROOT}"
instead.
(see non-review comment above)
<div class="login"> | ||
<form action="" method="post"> | ||
<h1>Medusa</h1> | ||
<div class="ctrlHolder"><input class="inlay" name="username" type="text" placeholder="Username" autocomplete="off" autocomplete="no" /></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static/js/templates/login.vue:5:128
✖ 5:128 Duplicate attribute autocomplete. vue/no-duplicate-attributes
✖ 5:128 Parsing error: duplicate-attribute. vue/no-parsing-error
off
is the correct value.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Latest commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working.
We have to expose the
api-root
to non-authed users. I can't see this being an issue since they'll need to know this once we move to using the API for authentication anyways.Closes #4624