Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
60f2a3bb
Commit
60f2a3bb
authored
Jul 05, 2016
by
Nick Stenning
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update copy, comments from "sign in/out" to "log in/out"
parent
41904b1b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
18 deletions
+18
-18
auth.js
h/static/scripts/auth.js
+5
-5
annotation.js
h/static/scripts/directive/annotation.js
+1
-1
loggedout-message.js
h/static/scripts/directive/loggedout-message.js
+1
-1
signin-control.js
h/static/scripts/directive/signin-control.js
+2
-2
events.js
h/static/scripts/events.js
+1
-1
annotation.html
h/templates/client/annotation.html
+1
-1
loggedout_message.html
h/templates/client/loggedout_message.html
+1
-1
login_form.html
h/templates/client/login_form.html
+1
-1
signin_control.html
h/templates/client/signin_control.html
+4
-4
viewer.html
h/templates/client/viewer.html
+1
-1
No files found.
h/static/scripts/auth.js
View file @
60f2a3bb
...
...
@@ -2,7 +2,7 @@
/**
* Provides functions for retrieving and caching API tokens required by
* API requests and
sign
ing out of the API.
* API requests and
logg
ing out of the API.
*/
var
queryString
=
require
(
'query-string'
);
...
...
@@ -12,7 +12,7 @@ var INITIAL_TOKEN = {
userid
:
undefined
,
// Promise for the API token for 'userid'.
// This is initialized when fetchOrReuseToken() is called and
// reset when
sign
ing out via logout()
// reset when
logg
ing out via logout()
token
:
undefined
,
};
...
...
@@ -106,9 +106,9 @@ function clearCache() {
// @ngInject
function
authService
(
flash
,
session
)
{
/**
*
Sign
out from the API and clear any cached tokens.
*
Log
out from the API and clear any cached tokens.
*
* @return {Promise<void>} - A promise for when
sign
out has completed.
* @return {Promise<void>} - A promise for when
log
out has completed.
*/
function
logout
()
{
return
session
.
logout
({}).
$promise
...
...
@@ -116,7 +116,7 @@ function authService(flash, session) {
clearCache
();
})
.
catch
(
function
(
err
)
{
flash
.
error
(
'
Sign
out failed!'
);
flash
.
error
(
'
Log
out failed!'
);
throw
err
;
});
}
...
...
h/static/scripts/directive/annotation.js
View file @
60f2a3bb
...
...
@@ -388,7 +388,7 @@ function AnnotationController(
vm
.
save
=
function
()
{
if
(
!
vm
.
annotation
.
user
)
{
flash
.
info
(
'Please
sign
in to save your annotations.'
);
flash
.
info
(
'Please
log
in to save your annotations.'
);
return
Promise
.
resolve
();
}
if
(
!
vm
.
hasContent
()
&&
vm
.
isShared
())
{
...
...
h/static/scripts/directive/loggedout-message.js
View file @
60f2a3bb
...
...
@@ -11,7 +11,7 @@ module.exports = function () {
restrict
:
'E'
,
scope
:
{
/**
* Called when the user clicks on the "
Sign
in" text.
* Called when the user clicks on the "
Log
in" text.
*/
onLogin
:
'&'
,
},
...
...
h/static/scripts/directive/signin-control.js
View file @
60f2a3bb
...
...
@@ -19,11 +19,11 @@ module.exports = function () {
*/
onShowHelpPanel
:
'&'
,
/**
* Called when the user clicks on the "
Sign
in" text.
* Called when the user clicks on the "
Log
in" text.
*/
onLogin
:
'&'
,
/**
* Called when the user clicks on the "
Sign
out" text.
* Called when the user clicks on the "
Log
out" text.
*/
onLogout
:
'&'
,
/**
...
...
h/static/scripts/events.js
View file @
60f2a3bb
...
...
@@ -9,7 +9,7 @@ module.exports = {
/** The list of groups changed */
GROUPS_CHANGED
:
'groupsChanged'
,
/** The
sign
ed-in user changed */
/** The
logg
ed-in user changed */
USER_CHANGED
:
'userChanged'
,
/**
* The session state was updated.
...
...
h/templates/client/annotation.html
View file @
60f2a3bb
<header
class=
"annotation-header"
ng-if=
"!vm.user()"
>
<strong>
You must be
sign
ed in to create annotations.
</strong>
<strong>
You must be
logg
ed in to create annotations.
</strong>
</header>
<div
ng-keydown=
"vm.onKeydown($event)"
ng-if=
"vm.user()"
>
...
...
h/templates/client/loggedout_message.html
View file @
60f2a3bb
...
...
@@ -6,7 +6,7 @@
To reply or make your own annotations on this document,
<a
class=
"loggedout-message__link"
href=
"{{vm.serviceUrl}}register"
target=
"_blank"
>
create a free account
</a>
or
<a
class=
"loggedout-message__link"
href=
""
ng-click=
"vm.onLogin()"
>
sign
in
</a>
.
<a
class=
"loggedout-message__link"
href=
""
ng-click=
"vm.onLogin()"
>
log
in
</a>
.
</span>
<span
class=
"loggedout-message-logo"
>
<a
href=
"https://hypothes.is"
>
...
...
h/templates/client/login_form.html
View file @
60f2a3bb
...
...
@@ -57,7 +57,7 @@
</div>
<div
class=
"form-actions-buttons"
>
<button
class=
"btn btn-primary"
type=
"submit"
name=
"login"
status-button=
"login"
>
Sign
in
</button>
status-button=
"login"
>
Log
in
</button>
</div>
</div>
</form>
...
...
h/templates/client/signin_control.html
View file @
60f2a3bb
...
...
@@ -4,7 +4,7 @@
<span
class=
"signin-text"
ng-if=
"vm.newStyle && vm.auth.status === 'signed-out'"
>
<a
href=
"{{vm.serviceUrl}}register"
target=
"_blank"
>
Sign up
</a>
/
<a
href=
""
ng-click=
"vm.onLogin()"
>
Sign
in
</a>
/
<a
href=
""
ng-click=
"vm.onLogin()"
>
Log
in
</a>
</span>
<div
ng-if=
"vm.newStyle"
class=
"pull-right signin-control-menu"
...
...
@@ -33,7 +33,7 @@
</li>
<li
class=
"dropdown-menu__row"
ng-if=
"vm.auth.status === 'signed-in'"
>
<a
class=
"dropdown-menu__link dropdown-menu__link--subtle"
href=
""
ng-click=
"vm.onLogout()"
>
Sign
out
</a>
href=
""
ng-click=
"vm.onLogout()"
>
Log
out
</a>
</li>
</ul>
</div>
...
...
@@ -41,7 +41,7 @@
<!-- Old controls -->
<span
ng-if=
"!vm.newStyle && vm.auth.status === 'unknown'"
>
⋯
</span>
<span
ng-if=
"!vm.newStyle && vm.auth.status === 'signed-out'"
>
<a
href=
""
ng-click=
"vm.onLogin()"
>
Sign
in
</a>
<a
href=
""
ng-click=
"vm.onLogin()"
>
Log
in
</a>
</span>
<div
ng-if=
"!vm.newStyle"
class=
"pull-right signin-control-menu"
...
...
@@ -65,7 +65,7 @@
target=
"_blank"
>
My Annotations
</a>
</li>
<li
class=
"dropdown-menu__row"
ng-if=
"vm.auth.status === 'signed-in'"
>
<a
class=
"dropdown-menu__link"
href=
""
ng-click=
"vm.onLogout()"
>
Sign
out
</a>
<a
class=
"dropdown-menu__link"
href=
""
ng-click=
"vm.onLogout()"
>
Log
out
</a>
</li>
</ul>
</div>
h/templates/client/viewer.html
View file @
60f2a3bb
...
...
@@ -36,7 +36,7 @@
This annotation is not available.
<br>
You may need to
<a
class=
"loggedout-message__link"
href=
""
ng-click=
"login()"
>
sign
in
</a>
<a
class=
"loggedout-message__link"
href=
""
ng-click=
"login()"
>
log
in
</a>
to see it.
</span>
<span
ng-if=
"auth.status === 'signed-in'"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment