Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
293ae8a8
Commit
293ae8a8
authored
Jun 22, 2016
by
Vincent Petry
Committed by
GitHub
Jun 22, 2016
Browse files
Merge pull request #25134 from owncloud/app-passwords
app passwords/device tokens wording
parents
854352d9
178fa11e
Changes
4
Hide whitespace changes
Inline
Side-by-side
settings/css/settings.css
View file @
293ae8a8
...
...
@@ -101,24 +101,24 @@ table.nostyle label { margin-right: 2em; }
table
.nostyle
td
{
padding
:
0.2em
0
;
}
#sessions
table
,
#
device
s
table
{
#
apppassword
s
table
{
width
:
100%
;
min-height
:
150px
;
padding-top
:
25px
;
}
#sessions
table
th
,
#
device
s
table
th
{
#
apppassword
s
table
th
{
font-weight
:
800
;
}
#sessions
table
th
,
#sessions
table
td
,
#
device
s
table
th
,
#
device
s
table
td
{
#
apppassword
s
table
th
,
#
apppassword
s
table
td
{
padding
:
10px
;
}
#sessions
.token-list
td
,
#
device
s
.token-list
td
{
#
apppassword
s
.token-list
td
{
border-top
:
1px
solid
#DDD
;
text-overflow
:
ellipsis
;
max-width
:
200px
;
...
...
@@ -126,12 +126,12 @@ table.nostyle td { padding: 0.2em 0; }
overflow
:
hidden
;
}
#sessions
.token-list
td
a
.icon-delete
,
#
device
s
.token-list
td
a
.icon-delete
{
#
apppassword
s
.token-list
td
a
.icon-delete
{
display
:
block
;
opacity
:
0.6
;
}
#
device-new-token
{
#
new-app-password
{
width
:
186px
;
font-family
:
monospace
;
background-color
:
lightyellow
;
...
...
settings/js/authtoken_view.js
View file @
293ae8a8
...
...
@@ -103,13 +103,13 @@
_tokenName
:
undefined
,
_add
Token
Btn
:
undefined
,
_add
AppPassword
Btn
:
undefined
,
_result
:
undefined
,
_new
Token
:
undefined
,
_new
AppPassword
:
undefined
,
_hide
Token
Btn
:
undefined
,
_hide
AppPassword
Btn
:
undefined
,
_addingToken
:
false
,
...
...
@@ -119,7 +119,7 @@
var
tokenTypes
=
[
0
,
1
];
var
_this
=
this
;
_
.
each
(
tokenTypes
,
function
(
type
)
{
var
el
=
type
===
0
?
'
#sessions
'
:
'
#
device
s
'
;
var
el
=
type
===
0
?
'
#sessions
'
:
'
#
apppassword
s
'
;
_this
.
_views
.
push
(
new
SubView
({
el
:
el
,
type
:
type
,
...
...
@@ -130,16 +130,16 @@
$el
.
on
(
'
click
'
,
'
a.icon-delete
'
,
_
.
bind
(
_this
.
_onDeleteToken
,
_this
));
});
this
.
_form
=
$
(
'
#
device-token
-form
'
);
this
.
_tokenName
=
$
(
'
#
device-token
-name
'
);
this
.
_add
TokenBtn
=
$
(
'
#device-add-token
'
);
this
.
_add
Token
Btn
.
click
(
_
.
bind
(
this
.
_add
DeviceToken
,
this
));
this
.
_form
=
$
(
'
#
app-password
-form
'
);
this
.
_tokenName
=
$
(
'
#
app-password
-name
'
);
this
.
_add
AppPasswordBtn
=
$
(
'
#add-app-password
'
);
this
.
_add
AppPassword
Btn
.
click
(
_
.
bind
(
this
.
_add
AppPassword
,
this
));
this
.
_result
=
$
(
'
#
device-token
-result
'
);
this
.
_new
Token
=
$
(
'
#device-new-token
'
);
this
.
_new
Token
.
on
(
'
focus
'
,
_
.
bind
(
this
.
_onNewTokenFocus
,
this
));
this
.
_hide
TokenBtn
=
$
(
'
#device-token
-hide
'
);
this
.
_hide
Token
Btn
.
click
(
_
.
bind
(
this
.
_hideToken
,
this
));
this
.
_result
=
$
(
'
#
app-password
-result
'
);
this
.
_new
AppPassword
=
$
(
'
#new-app-password
'
);
this
.
_new
AppPassword
.
on
(
'
focus
'
,
_
.
bind
(
this
.
_onNewTokenFocus
,
this
));
this
.
_hide
AppPasswordBtn
=
$
(
'
#app-password
-hide
'
);
this
.
_hide
AppPassword
Btn
.
click
(
_
.
bind
(
this
.
_hideToken
,
this
));
},
render
:
function
()
{
...
...
@@ -166,7 +166,7 @@
});
},
_add
DeviceToken
:
function
()
{
_add
AppPassword
:
function
()
{
var
_this
=
this
;
this
.
_toggleAddingToken
(
true
);
...
...
@@ -181,9 +181,9 @@
$
.
when
(
creatingToken
).
done
(
function
(
resp
)
{
_this
.
collection
.
add
(
resp
.
deviceToken
);
_this
.
render
();
_this
.
_new
Token
.
val
(
resp
.
token
);
_this
.
_new
AppPassword
.
val
(
resp
.
token
);
_this
.
_toggleFormResult
(
false
);
_this
.
_new
Token
.
select
();
_this
.
_new
AppPassword
.
select
();
_this
.
_tokenName
.
val
(
''
);
});
$
.
when
(
creatingToken
).
fail
(
function
()
{
...
...
@@ -195,7 +195,7 @@
},
_onNewTokenFocus
:
function
()
{
this
.
_new
Token
.
select
();
this
.
_new
AppPassword
.
select
();
},
_hideToken
:
function
()
{
...
...
@@ -204,7 +204,7 @@
_toggleAddingToken
:
function
(
state
)
{
this
.
_addingToken
=
state
;
this
.
_add
Token
Btn
.
toggleClass
(
'
icon-loading-small
'
,
state
);
this
.
_add
AppPassword
Btn
.
toggleClass
(
'
icon-loading-small
'
,
state
);
},
_onDeleteToken
:
function
(
event
)
{
...
...
settings/personal.php
View file @
293ae8a8
...
...
@@ -177,7 +177,7 @@ $tmpl->assign('groups', $groups2);
$formsAndMore
=
[];
$formsAndMore
[]
=
[
'anchor'
=>
'avatar'
,
'section-name'
=>
$l
->
t
(
'Personal info'
)];
$formsAndMore
[]
=
[
'anchor'
=>
'sessions'
,
'section-name'
=>
$l
->
t
(
'Sessions'
)];
$formsAndMore
[]
=
[
'anchor'
=>
'
device
s'
,
'section-name'
=>
$l
->
t
(
'
Device
s'
)];
$formsAndMore
[]
=
[
'anchor'
=>
'
apppassword
s'
,
'section-name'
=>
$l
->
t
(
'
App password
s'
)];
$formsAndMore
[]
=
[
'anchor'
=>
'clientsbox'
,
'section-name'
=>
$l
->
t
(
'Sync clients'
)];
$forms
=
OC_App
::
getForms
(
'personal'
);
...
...
settings/templates/personal.php
View file @
293ae8a8
...
...
@@ -183,9 +183,9 @@ if($_['passwordChangeSupported']) {
</table>
</div>
<div
id=
"
device
s"
class=
"section"
>
<h2>
<?php
p
(
$l
->
t
(
'
Device
s'
));
?>
</h2>
<span
class=
"hidden-when-empty"
>
<?php
p
(
$l
->
t
(
"You've linked these
device
s."
));
?>
</span>
<div
id=
"
apppassword
s"
class=
"section"
>
<h2>
<?php
p
(
$l
->
t
(
'
App password
s'
));
?>
</h2>
<span
class=
"hidden-when-empty"
>
<?php
p
(
$l
->
t
(
"You've linked these
app
s."
));
?>
</span>
<table>
<thead
class=
"hidden-when-empty"
>
<tr>
...
...
@@ -197,14 +197,14 @@ if($_['passwordChangeSupported']) {
<tbody
class=
"token-list icon-loading"
>
</tbody>
</table>
<p>
<?php
p
(
$l
->
t
(
'A
device
password is a passcode that gives an app or device permissions to access your
ownCloud
account.'
));
?>
</p>
<div
id=
"
device-token
-form"
>
<input
id=
"
device-token
-name"
type=
"text"
placeholder=
"
Device name
"
>
<button
id=
"
device-add-token
"
class=
"button"
>
Create new
device
password
</button>
<p>
<?php
p
(
$l
->
t
(
'A
n app
password is a passcode that gives an app or device permissions to access your
%s
account.'
,
[
$theme
->
getName
()]
));
?>
</p>
<div
id=
"
app-password
-form"
>
<input
id=
"
app-password
-name"
type=
"text"
placeholder=
"
<?php
p
(
$l
->
t
(
'App name'
));
?>
"
>
<button
id=
"
add-app-password
"
class=
"button"
>
<?php
p
(
$l
->
t
(
'
Create new
app
password
'
));
?>
</button>
</div>
<div
id=
"
device-token
-result"
class=
"hidden"
>
<input
id=
"
device-new-token
"
type=
"text"
readonly=
"readonly"
/>
<button
id=
"
device-token
-hide"
class=
"button"
>
Done
</button>
<div
id=
"
app-password
-result"
class=
"hidden"
>
<input
id=
"
new-app-password
"
type=
"text"
readonly=
"readonly"
/>
<button
id=
"
app-password
-hide"
class=
"button"
>
<?php
p
(
$l
->
t
(
'Done'
));
?>
</button>
</div>
</div>
...
...
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