JezerM
4 years ago
70 changed files with 4 additions and 3291 deletions
@ -1,97 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright © 2015-2017 Antergos |
|
||||||
* |
|
||||||
* combine_translations.js |
|
||||||
* |
|
||||||
* This file is part of Web Greeter |
|
||||||
* |
|
||||||
* Web Greeter is free software: you can redistribute it and/or modify |
|
||||||
* it under the terms of the GNU General Public License as published by |
|
||||||
* the Free Software Foundation, either version 3 of the License, |
|
||||||
* or any later version. |
|
||||||
* |
|
||||||
* Web Greeter is distributed in the hope that it will be useful, |
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
* GNU General Public License for more details. |
|
||||||
* |
|
||||||
* The following additional terms are in effect as per Section 7 of the license: |
|
||||||
* |
|
||||||
* The preservation of all legal notices and author attributions in |
|
||||||
* the material or in the Appropriate Legal Notices displayed |
|
||||||
* by works containing it is required. |
|
||||||
* |
|
||||||
* You should have received a copy of the GNU General Public License |
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
|
|
||||||
var fs = require( "fs" ), |
|
||||||
path = require( 'path' ), |
|
||||||
i18n_dir = process.argv[2] + '/i18n/', |
|
||||||
translation_files = fs.readdirSync( i18n_dir ), |
|
||||||
output = i18n_dir + 'translations.json', |
|
||||||
translations = {}; |
|
||||||
|
|
||||||
|
|
||||||
function sortObj( obj, order ) { |
|
||||||
"use strict"; |
|
||||||
|
|
||||||
var key, |
|
||||||
tempArry = [], |
|
||||||
i, |
|
||||||
tempObj = {}; |
|
||||||
|
|
||||||
for ( key in obj ) { |
|
||||||
tempArry.push( key ); |
|
||||||
} |
|
||||||
|
|
||||||
tempArry.sort( |
|
||||||
function( a, b ) { |
|
||||||
return a.toLowerCase().localeCompare( b.toLowerCase() ); |
|
||||||
} |
|
||||||
); |
|
||||||
|
|
||||||
if ( order === 'desc' ) { |
|
||||||
for ( i = tempArry.length - 1; i >= 0; i -- ) { |
|
||||||
tempObj[ tempArry[ i ] ] = obj[ tempArry[ i ] ]; |
|
||||||
} |
|
||||||
} else { |
|
||||||
for ( i = 0; i < tempArry.length; i ++ ) { |
|
||||||
tempObj[ tempArry[ i ] ] = obj[ tempArry[ i ] ]; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
return tempObj; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
for ( var file of translation_files ) { |
|
||||||
var abs_path = i18n_dir + file, |
|
||||||
lang = file.replace( '.json', '' ); |
|
||||||
|
|
||||||
if ( 'translations.json' === file ) { |
|
||||||
console.log( 'found' ); |
|
||||||
continue; |
|
||||||
} |
|
||||||
|
|
||||||
translations[ lang ] = JSON.parse( fs.readFileSync( abs_path, 'utf8' ) ); |
|
||||||
} |
|
||||||
|
|
||||||
translations = sortObj( translations ); |
|
||||||
|
|
||||||
fs.writeFile( output, JSON.stringify( translations ), function( error ) { |
|
||||||
if ( error ) { |
|
||||||
console.error( "write error: " + error.message ); |
|
||||||
} else { |
|
||||||
console.log( "Successful Write to " + output ); |
|
||||||
} |
|
||||||
} ); |
|
||||||
fs.writeFile( i18n_dir.replace('/i18n/', '') + '/js/translations.js', 'window.ant_translations = ' + JSON.stringify( translations ), function( error ) { |
|
||||||
if ( error ) { |
|
||||||
console.error( "write error: " + error.message ); |
|
||||||
} else { |
|
||||||
console.log( "Successful Write to " + i18n_dir.replace('/i18n/', '') + '/js/translations.js' ); |
|
||||||
} |
|
||||||
} ); |
|
||||||
|
|
||||||
console.log( 'Done!' ); |
|
@ -1,9 +0,0 @@ |
|||||||
[main] |
|
||||||
host = https://www.transifex.com |
|
||||||
|
|
||||||
[antergos.lightdm-greeter-theme] |
|
||||||
file_filter = i18n/<lang>.json |
|
||||||
source_lang = en |
|
||||||
source_file = i18n/en.json |
|
||||||
type = KEYVALUEJSON |
|
||||||
|
|
@ -1,674 +0,0 @@ |
|||||||
GNU GENERAL PUBLIC LICENSE |
|
||||||
Version 3, 29 June 2007 |
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
|
||||||
Everyone is permitted to copy and distribute verbatim copies |
|
||||||
of this license document, but changing it is not allowed. |
|
||||||
|
|
||||||
Preamble |
|
||||||
|
|
||||||
The GNU General Public License is a free, copyleft license for |
|
||||||
software and other kinds of works. |
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed |
|
||||||
to take away your freedom to share and change the works. By contrast, |
|
||||||
the GNU General Public License is intended to guarantee your freedom to |
|
||||||
share and change all versions of a program--to make sure it remains free |
|
||||||
software for all its users. We, the Free Software Foundation, use the |
|
||||||
GNU General Public License for most of our software; it applies also to |
|
||||||
any other work released this way by its authors. You can apply it to |
|
||||||
your programs, too. |
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not |
|
||||||
price. Our General Public Licenses are designed to make sure that you |
|
||||||
have the freedom to distribute copies of free software (and charge for |
|
||||||
them if you wish), that you receive source code or can get it if you |
|
||||||
want it, that you can change the software or use pieces of it in new |
|
||||||
free programs, and that you know you can do these things. |
|
||||||
|
|
||||||
To protect your rights, we need to prevent others from denying you |
|
||||||
these rights or asking you to surrender the rights. Therefore, you have |
|
||||||
certain responsibilities if you distribute copies of the software, or if |
|
||||||
you modify it: responsibilities to respect the freedom of others. |
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether |
|
||||||
gratis or for a fee, you must pass on to the recipients the same |
|
||||||
freedoms that you received. You must make sure that they, too, receive |
|
||||||
or can get the source code. And you must show them these terms so they |
|
||||||
know their rights. |
|
||||||
|
|
||||||
Developers that use the GNU GPL protect your rights with two steps: |
|
||||||
(1) assert copyright on the software, and (2) offer you this License |
|
||||||
giving you legal permission to copy, distribute and/or modify it. |
|
||||||
|
|
||||||
For the developers' and authors' protection, the GPL clearly explains |
|
||||||
that there is no warranty for this free software. For both users' and |
|
||||||
authors' sake, the GPL requires that modified versions be marked as |
|
||||||
changed, so that their problems will not be attributed erroneously to |
|
||||||
authors of previous versions. |
|
||||||
|
|
||||||
Some devices are designed to deny users access to install or run |
|
||||||
modified versions of the software inside them, although the manufacturer |
|
||||||
can do so. This is fundamentally incompatible with the aim of |
|
||||||
protecting users' freedom to change the software. The systematic |
|
||||||
pattern of such abuse occurs in the area of products for individuals to |
|
||||||
use, which is precisely where it is most unacceptable. Therefore, we |
|
||||||
have designed this version of the GPL to prohibit the practice for those |
|
||||||
products. If such problems arise substantially in other domains, we |
|
||||||
stand ready to extend this provision to those domains in future versions |
|
||||||
of the GPL, as needed to protect the freedom of users. |
|
||||||
|
|
||||||
Finally, every program is threatened constantly by software patents. |
|
||||||
States should not allow patents to restrict development and use of |
|
||||||
software on general-purpose computers, but in those that do, we wish to |
|
||||||
avoid the special danger that patents applied to a free program could |
|
||||||
make it effectively proprietary. To prevent this, the GPL assures that |
|
||||||
patents cannot be used to render the program non-free. |
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and |
|
||||||
modification follow. |
|
||||||
|
|
||||||
TERMS AND CONDITIONS |
|
||||||
|
|
||||||
0. Definitions. |
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU General Public License. |
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of |
|
||||||
works, such as semiconductor masks. |
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this |
|
||||||
License. Each licensee is addressed as "you". "Licensees" and |
|
||||||
"recipients" may be individuals or organizations. |
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work |
|
||||||
in a fashion requiring copyright permission, other than the making of an |
|
||||||
exact copy. The resulting work is called a "modified version" of the |
|
||||||
earlier work or a work "based on" the earlier work. |
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based |
|
||||||
on the Program. |
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without |
|
||||||
permission, would make you directly or secondarily liable for |
|
||||||
infringement under applicable copyright law, except executing it on a |
|
||||||
computer or modifying a private copy. Propagation includes copying, |
|
||||||
distribution (with or without modification), making available to the |
|
||||||
public, and in some countries other activities as well. |
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other |
|
||||||
parties to make or receive copies. Mere interaction with a user through |
|
||||||
a computer network, with no transfer of a copy, is not conveying. |
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices" |
|
||||||
to the extent that it includes a convenient and prominently visible |
|
||||||
feature that (1) displays an appropriate copyright notice, and (2) |
|
||||||
tells the user that there is no warranty for the work (except to the |
|
||||||
extent that warranties are provided), that licensees may convey the |
|
||||||
work under this License, and how to view a copy of this License. If |
|
||||||
the interface presents a list of user commands or options, such as a |
|
||||||
menu, a prominent item in the list meets this criterion. |
|
||||||
|
|
||||||
1. Source Code. |
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work |
|
||||||
for making modifications to it. "Object code" means any non-source |
|
||||||
form of a work. |
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official |
|
||||||
standard defined by a recognized standards body, or, in the case of |
|
||||||
interfaces specified for a particular programming language, one that |
|
||||||
is widely used among developers working in that language. |
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other |
|
||||||
than the work as a whole, that (a) is included in the normal form of |
|
||||||
packaging a Major Component, but which is not part of that Major |
|
||||||
Component, and (b) serves only to enable use of the work with that |
|
||||||
Major Component, or to implement a Standard Interface for which an |
|
||||||
implementation is available to the public in source code form. A |
|
||||||
"Major Component", in this context, means a major essential component |
|
||||||
(kernel, window system, and so on) of the specific operating system |
|
||||||
(if any) on which the executable work runs, or a compiler used to |
|
||||||
produce the work, or an object code interpreter used to run it. |
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all |
|
||||||
the source code needed to generate, install, and (for an executable |
|
||||||
work) run the object code and to modify the work, including scripts to |
|
||||||
control those activities. However, it does not include the work's |
|
||||||
System Libraries, or general-purpose tools or generally available free |
|
||||||
programs which are used unmodified in performing those activities but |
|
||||||
which are not part of the work. For example, Corresponding Source |
|
||||||
includes interface definition files associated with source files for |
|
||||||
the work, and the source code for shared libraries and dynamically |
|
||||||
linked subprograms that the work is specifically designed to require, |
|
||||||
such as by intimate data communication or control flow between those |
|
||||||
subprograms and other parts of the work. |
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users |
|
||||||
can regenerate automatically from other parts of the Corresponding |
|
||||||
Source. |
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that |
|
||||||
same work. |
|
||||||
|
|
||||||
2. Basic Permissions. |
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of |
|
||||||
copyright on the Program, and are irrevocable provided the stated |
|
||||||
conditions are met. This License explicitly affirms your unlimited |
|
||||||
permission to run the unmodified Program. The output from running a |
|
||||||
covered work is covered by this License only if the output, given its |
|
||||||
content, constitutes a covered work. This License acknowledges your |
|
||||||
rights of fair use or other equivalent, as provided by copyright law. |
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not |
|
||||||
convey, without conditions so long as your license otherwise remains |
|
||||||
in force. You may convey covered works to others for the sole purpose |
|
||||||
of having them make modifications exclusively for you, or provide you |
|
||||||
with facilities for running those works, provided that you comply with |
|
||||||
the terms of this License in conveying all material for which you do |
|
||||||
not control copyright. Those thus making or running the covered works |
|
||||||
for you must do so exclusively on your behalf, under your direction |
|
||||||
and control, on terms that prohibit them from making any copies of |
|
||||||
your copyrighted material outside their relationship with you. |
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under |
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10 |
|
||||||
makes it unnecessary. |
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological |
|
||||||
measure under any applicable law fulfilling obligations under article |
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or |
|
||||||
similar laws prohibiting or restricting circumvention of such |
|
||||||
measures. |
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid |
|
||||||
circumvention of technological measures to the extent such circumvention |
|
||||||
is effected by exercising rights under this License with respect to |
|
||||||
the covered work, and you disclaim any intention to limit operation or |
|
||||||
modification of the work as a means of enforcing, against the work's |
|
||||||
users, your or third parties' legal rights to forbid circumvention of |
|
||||||
technological measures. |
|
||||||
|
|
||||||
4. Conveying Verbatim Copies. |
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you |
|
||||||
receive it, in any medium, provided that you conspicuously and |
|
||||||
appropriately publish on each copy an appropriate copyright notice; |
|
||||||
keep intact all notices stating that this License and any |
|
||||||
non-permissive terms added in accord with section 7 apply to the code; |
|
||||||
keep intact all notices of the absence of any warranty; and give all |
|
||||||
recipients a copy of this License along with the Program. |
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey, |
|
||||||
and you may offer support or warranty protection for a fee. |
|
||||||
|
|
||||||
5. Conveying Modified Source Versions. |
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to |
|
||||||
produce it from the Program, in the form of source code under the |
|
||||||
terms of section 4, provided that you also meet all of these conditions: |
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified |
|
||||||
it, and giving a relevant date. |
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is |
|
||||||
released under this License and any conditions added under section |
|
||||||
7. This requirement modifies the requirement in section 4 to |
|
||||||
"keep intact all notices". |
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this |
|
||||||
License to anyone who comes into possession of a copy. This |
|
||||||
License will therefore apply, along with any applicable section 7 |
|
||||||
additional terms, to the whole of the work, and all its parts, |
|
||||||
regardless of how they are packaged. This License gives no |
|
||||||
permission to license the work in any other way, but it does not |
|
||||||
invalidate such permission if you have separately received it. |
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display |
|
||||||
Appropriate Legal Notices; however, if the Program has interactive |
|
||||||
interfaces that do not display Appropriate Legal Notices, your |
|
||||||
work need not make them do so. |
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent |
|
||||||
works, which are not by their nature extensions of the covered work, |
|
||||||
and which are not combined with it such as to form a larger program, |
|
||||||
in or on a volume of a storage or distribution medium, is called an |
|
||||||
"aggregate" if the compilation and its resulting copyright are not |
|
||||||
used to limit the access or legal rights of the compilation's users |
|
||||||
beyond what the individual works permit. Inclusion of a covered work |
|
||||||
in an aggregate does not cause this License to apply to the other |
|
||||||
parts of the aggregate. |
|
||||||
|
|
||||||
6. Conveying Non-Source Forms. |
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms |
|
||||||
of sections 4 and 5, provided that you also convey the |
|
||||||
machine-readable Corresponding Source under the terms of this License, |
|
||||||
in one of these ways: |
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product |
|
||||||
(including a physical distribution medium), accompanied by the |
|
||||||
Corresponding Source fixed on a durable physical medium |
|
||||||
customarily used for software interchange. |
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product |
|
||||||
(including a physical distribution medium), accompanied by a |
|
||||||
written offer, valid for at least three years and valid for as |
|
||||||
long as you offer spare parts or customer support for that product |
|
||||||
model, to give anyone who possesses the object code either (1) a |
|
||||||
copy of the Corresponding Source for all the software in the |
|
||||||
product that is covered by this License, on a durable physical |
|
||||||
medium customarily used for software interchange, for a price no |
|
||||||
more than your reasonable cost of physically performing this |
|
||||||
conveying of source, or (2) access to copy the |
|
||||||
Corresponding Source from a network server at no charge. |
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the |
|
||||||
written offer to provide the Corresponding Source. This |
|
||||||
alternative is allowed only occasionally and noncommercially, and |
|
||||||
only if you received the object code with such an offer, in accord |
|
||||||
with subsection 6b. |
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated |
|
||||||
place (gratis or for a charge), and offer equivalent access to the |
|
||||||
Corresponding Source in the same way through the same place at no |
|
||||||
further charge. You need not require recipients to copy the |
|
||||||
Corresponding Source along with the object code. If the place to |
|
||||||
copy the object code is a network server, the Corresponding Source |
|
||||||
may be on a different server (operated by you or a third party) |
|
||||||
that supports equivalent copying facilities, provided you maintain |
|
||||||
clear directions next to the object code saying where to find the |
|
||||||
Corresponding Source. Regardless of what server hosts the |
|
||||||
Corresponding Source, you remain obligated to ensure that it is |
|
||||||
available for as long as needed to satisfy these requirements. |
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided |
|
||||||
you inform other peers where the object code and Corresponding |
|
||||||
Source of the work are being offered to the general public at no |
|
||||||
charge under subsection 6d. |
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded |
|
||||||
from the Corresponding Source as a System Library, need not be |
|
||||||
included in conveying the object code work. |
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any |
|
||||||
tangible personal property which is normally used for personal, family, |
|
||||||
or household purposes, or (2) anything designed or sold for incorporation |
|
||||||
into a dwelling. In determining whether a product is a consumer product, |
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular |
|
||||||
product received by a particular user, "normally used" refers to a |
|
||||||
typical or common use of that class of product, regardless of the status |
|
||||||
of the particular user or of the way in which the particular user |
|
||||||
actually uses, or expects or is expected to use, the product. A product |
|
||||||
is a consumer product regardless of whether the product has substantial |
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent |
|
||||||
the only significant mode of use of the product. |
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods, |
|
||||||
procedures, authorization keys, or other information required to install |
|
||||||
and execute modified versions of a covered work in that User Product from |
|
||||||
a modified version of its Corresponding Source. The information must |
|
||||||
suffice to ensure that the continued functioning of the modified object |
|
||||||
code is in no case prevented or interfered with solely because |
|
||||||
modification has been made. |
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or |
|
||||||
specifically for use in, a User Product, and the conveying occurs as |
|
||||||
part of a transaction in which the right of possession and use of the |
|
||||||
User Product is transferred to the recipient in perpetuity or for a |
|
||||||
fixed term (regardless of how the transaction is characterized), the |
|
||||||
Corresponding Source conveyed under this section must be accompanied |
|
||||||
by the Installation Information. But this requirement does not apply |
|
||||||
if neither you nor any third party retains the ability to install |
|
||||||
modified object code on the User Product (for example, the work has |
|
||||||
been installed in ROM). |
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a |
|
||||||
requirement to continue to provide support service, warranty, or updates |
|
||||||
for a work that has been modified or installed by the recipient, or for |
|
||||||
the User Product in which it has been modified or installed. Access to a |
|
||||||
network may be denied when the modification itself materially and |
|
||||||
adversely affects the operation of the network or violates the rules and |
|
||||||
protocols for communication across the network. |
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided, |
|
||||||
in accord with this section must be in a format that is publicly |
|
||||||
documented (and with an implementation available to the public in |
|
||||||
source code form), and must require no special password or key for |
|
||||||
unpacking, reading or copying. |
|
||||||
|
|
||||||
7. Additional Terms. |
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this |
|
||||||
License by making exceptions from one or more of its conditions. |
|
||||||
Additional permissions that are applicable to the entire Program shall |
|
||||||
be treated as though they were included in this License, to the extent |
|
||||||
that they are valid under applicable law. If additional permissions |
|
||||||
apply only to part of the Program, that part may be used separately |
|
||||||
under those permissions, but the entire Program remains governed by |
|
||||||
this License without regard to the additional permissions. |
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option |
|
||||||
remove any additional permissions from that copy, or from any part of |
|
||||||
it. (Additional permissions may be written to require their own |
|
||||||
removal in certain cases when you modify the work.) You may place |
|
||||||
additional permissions on material, added by you to a covered work, |
|
||||||
for which you have or can give appropriate copyright permission. |
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you |
|
||||||
add to a covered work, you may (if authorized by the copyright holders of |
|
||||||
that material) supplement the terms of this License with terms: |
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the |
|
||||||
terms of sections 15 and 16 of this License; or |
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or |
|
||||||
author attributions in that material or in the Appropriate Legal |
|
||||||
Notices displayed by works containing it; or |
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or |
|
||||||
requiring that modified versions of such material be marked in |
|
||||||
reasonable ways as different from the original version; or |
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or |
|
||||||
authors of the material; or |
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some |
|
||||||
trade names, trademarks, or service marks; or |
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that |
|
||||||
material by anyone who conveys the material (or modified versions of |
|
||||||
it) with contractual assumptions of liability to the recipient, for |
|
||||||
any liability that these contractual assumptions directly impose on |
|
||||||
those licensors and authors. |
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further |
|
||||||
restrictions" within the meaning of section 10. If the Program as you |
|
||||||
received it, or any part of it, contains a notice stating that it is |
|
||||||
governed by this License along with a term that is a further |
|
||||||
restriction, you may remove that term. If a license document contains |
|
||||||
a further restriction but permits relicensing or conveying under this |
|
||||||
License, you may add to a covered work material governed by the terms |
|
||||||
of that license document, provided that the further restriction does |
|
||||||
not survive such relicensing or conveying. |
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you |
|
||||||
must place, in the relevant source files, a statement of the |
|
||||||
additional terms that apply to those files, or a notice indicating |
|
||||||
where to find the applicable terms. |
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the |
|
||||||
form of a separately written license, or stated as exceptions; |
|
||||||
the above requirements apply either way. |
|
||||||
|
|
||||||
8. Termination. |
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly |
|
||||||
provided under this License. Any attempt otherwise to propagate or |
|
||||||
modify it is void, and will automatically terminate your rights under |
|
||||||
this License (including any patent licenses granted under the third |
|
||||||
paragraph of section 11). |
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your |
|
||||||
license from a particular copyright holder is reinstated (a) |
|
||||||
provisionally, unless and until the copyright holder explicitly and |
|
||||||
finally terminates your license, and (b) permanently, if the copyright |
|
||||||
holder fails to notify you of the violation by some reasonable means |
|
||||||
prior to 60 days after the cessation. |
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is |
|
||||||
reinstated permanently if the copyright holder notifies you of the |
|
||||||
violation by some reasonable means, this is the first time you have |
|
||||||
received notice of violation of this License (for any work) from that |
|
||||||
copyright holder, and you cure the violation prior to 30 days after |
|
||||||
your receipt of the notice. |
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the |
|
||||||
licenses of parties who have received copies or rights from you under |
|
||||||
this License. If your rights have been terminated and not permanently |
|
||||||
reinstated, you do not qualify to receive new licenses for the same |
|
||||||
material under section 10. |
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies. |
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or |
|
||||||
run a copy of the Program. Ancillary propagation of a covered work |
|
||||||
occurring solely as a consequence of using peer-to-peer transmission |
|
||||||
to receive a copy likewise does not require acceptance. However, |
|
||||||
nothing other than this License grants you permission to propagate or |
|
||||||
modify any covered work. These actions infringe copyright if you do |
|
||||||
not accept this License. Therefore, by modifying or propagating a |
|
||||||
covered work, you indicate your acceptance of this License to do so. |
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients. |
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically |
|
||||||
receives a license from the original licensors, to run, modify and |
|
||||||
propagate that work, subject to this License. You are not responsible |
|
||||||
for enforcing compliance by third parties with this License. |
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an |
|
||||||
organization, or substantially all assets of one, or subdividing an |
|
||||||
organization, or merging organizations. If propagation of a covered |
|
||||||
work results from an entity transaction, each party to that |
|
||||||
transaction who receives a copy of the work also receives whatever |
|
||||||
licenses to the work the party's predecessor in interest had or could |
|
||||||
give under the previous paragraph, plus a right to possession of the |
|
||||||
Corresponding Source of the work from the predecessor in interest, if |
|
||||||
the predecessor has it or can get it with reasonable efforts. |
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the |
|
||||||
rights granted or affirmed under this License. For example, you may |
|
||||||
not impose a license fee, royalty, or other charge for exercise of |
|
||||||
rights granted under this License, and you may not initiate litigation |
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that |
|
||||||
any patent claim is infringed by making, using, selling, offering for |
|
||||||
sale, or importing the Program or any portion of it. |
|
||||||
|
|
||||||
11. Patents. |
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this |
|
||||||
License of the Program or a work on which the Program is based. The |
|
||||||
work thus licensed is called the contributor's "contributor version". |
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims |
|
||||||
owned or controlled by the contributor, whether already acquired or |
|
||||||
hereafter acquired, that would be infringed by some manner, permitted |
|
||||||
by this License, of making, using, or selling its contributor version, |
|
||||||
but do not include claims that would be infringed only as a |
|
||||||
consequence of further modification of the contributor version. For |
|
||||||
purposes of this definition, "control" includes the right to grant |
|
||||||
patent sublicenses in a manner consistent with the requirements of |
|
||||||
this License. |
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free |
|
||||||
patent license under the contributor's essential patent claims, to |
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and |
|
||||||
propagate the contents of its contributor version. |
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express |
|
||||||
agreement or commitment, however denominated, not to enforce a patent |
|
||||||
(such as an express permission to practice a patent or covenant not to |
|
||||||
sue for patent infringement). To "grant" such a patent license to a |
|
||||||
party means to make such an agreement or commitment not to enforce a |
|
||||||
patent against the party. |
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license, |
|
||||||
and the Corresponding Source of the work is not available for anyone |
|
||||||
to copy, free of charge and under the terms of this License, through a |
|
||||||
publicly available network server or other readily accessible means, |
|
||||||
then you must either (1) cause the Corresponding Source to be so |
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the |
|
||||||
patent license for this particular work, or (3) arrange, in a manner |
|
||||||
consistent with the requirements of this License, to extend the patent |
|
||||||
license to downstream recipients. "Knowingly relying" means you have |
|
||||||
actual knowledge that, but for the patent license, your conveying the |
|
||||||
covered work in a country, or your recipient's use of the covered work |
|
||||||
in a country, would infringe one or more identifiable patents in that |
|
||||||
country that you have reason to believe are valid. |
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or |
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a |
|
||||||
covered work, and grant a patent license to some of the parties |
|
||||||
receiving the covered work authorizing them to use, propagate, modify |
|
||||||
or convey a specific copy of the covered work, then the patent license |
|
||||||
you grant is automatically extended to all recipients of the covered |
|
||||||
work and works based on it. |
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within |
|
||||||
the scope of its coverage, prohibits the exercise of, or is |
|
||||||
conditioned on the non-exercise of one or more of the rights that are |
|
||||||
specifically granted under this License. You may not convey a covered |
|
||||||
work if you are a party to an arrangement with a third party that is |
|
||||||
in the business of distributing software, under which you make payment |
|
||||||
to the third party based on the extent of your activity of conveying |
|
||||||
the work, and under which the third party grants, to any of the |
|
||||||
parties who would receive the covered work from you, a discriminatory |
|
||||||
patent license (a) in connection with copies of the covered work |
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily |
|
||||||
for and in connection with specific products or compilations that |
|
||||||
contain the covered work, unless you entered into that arrangement, |
|
||||||
or that patent license was granted, prior to 28 March 2007. |
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting |
|
||||||
any implied license or other defenses to infringement that may |
|
||||||
otherwise be available to you under applicable patent law. |
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom. |
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or |
|
||||||
otherwise) that contradict the conditions of this License, they do not |
|
||||||
excuse you from the conditions of this License. If you cannot convey a |
|
||||||
covered work so as to satisfy simultaneously your obligations under this |
|
||||||
License and any other pertinent obligations, then as a consequence you may |
|
||||||
not convey it at all. For example, if you agree to terms that obligate you |
|
||||||
to collect a royalty for further conveying from those to whom you convey |
|
||||||
the Program, the only way you could satisfy both those terms and this |
|
||||||
License would be to refrain entirely from conveying the Program. |
|
||||||
|
|
||||||
13. Use with the GNU Affero General Public License. |
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have |
|
||||||
permission to link or combine any covered work with a work licensed |
|
||||||
under version 3 of the GNU Affero General Public License into a single |
|
||||||
combined work, and to convey the resulting work. The terms of this |
|
||||||
License will continue to apply to the part which is the covered work, |
|
||||||
but the special requirements of the GNU Affero General Public License, |
|
||||||
section 13, concerning interaction through a network will apply to the |
|
||||||
combination as such. |
|
||||||
|
|
||||||
14. Revised Versions of this License. |
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of |
|
||||||
the GNU General Public License from time to time. Such new versions will |
|
||||||
be similar in spirit to the present version, but may differ in detail to |
|
||||||
address new problems or concerns. |
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the |
|
||||||
Program specifies that a certain numbered version of the GNU General |
|
||||||
Public License "or any later version" applies to it, you have the |
|
||||||
option of following the terms and conditions either of that numbered |
|
||||||
version or of any later version published by the Free Software |
|
||||||
Foundation. If the Program does not specify a version number of the |
|
||||||
GNU General Public License, you may choose any version ever published |
|
||||||
by the Free Software Foundation. |
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future |
|
||||||
versions of the GNU General Public License can be used, that proxy's |
|
||||||
public statement of acceptance of a version permanently authorizes you |
|
||||||
to choose that version for the Program. |
|
||||||
|
|
||||||
Later license versions may give you additional or different |
|
||||||
permissions. However, no additional obligations are imposed on any |
|
||||||
author or copyright holder as a result of your choosing to follow a |
|
||||||
later version. |
|
||||||
|
|
||||||
15. Disclaimer of Warranty. |
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
|
||||||
|
|
||||||
16. Limitation of Liability. |
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
|
||||||
SUCH DAMAGES. |
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16. |
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided |
|
||||||
above cannot be given local legal effect according to their terms, |
|
||||||
reviewing courts shall apply local law that most closely approximates |
|
||||||
an absolute waiver of all civil liability in connection with the |
|
||||||
Program, unless a warranty or assumption of liability accompanies a |
|
||||||
copy of the Program in return for a fee. |
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS |
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs |
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest |
|
||||||
possible use to the public, the best way to achieve this is to make it |
|
||||||
free software which everyone can redistribute and change under these terms. |
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest |
|
||||||
to attach them to the start of each source file to most effectively |
|
||||||
state the exclusion of warranty; and each file should have at least |
|
||||||
the "copyright" line and a pointer to where the full notice is found. |
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.> |
|
||||||
Copyright (C) <year> <name of author> |
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify |
|
||||||
it under the terms of the GNU General Public License as published by |
|
||||||
the Free Software Foundation, either version 3 of the License, or |
|
||||||
(at your option) any later version. |
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful, |
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
GNU General Public License for more details. |
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License |
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail. |
|
||||||
|
|
||||||
If the program does terminal interaction, make it output a short |
|
||||||
notice like this when it starts in an interactive mode: |
|
||||||
|
|
||||||
<program> Copyright (C) <year> <name of author> |
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
|
||||||
This is free software, and you are welcome to redistribute it |
|
||||||
under certain conditions; type `show c' for details. |
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate |
|
||||||
parts of the General Public License. Of course, your program's commands |
|
||||||
might be different; for a GUI interface, you would use an "about box". |
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school, |
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary. |
|
||||||
For more information on this, and how to apply and follow the GNU GPL, see |
|
||||||
<http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
The GNU General Public License does not permit incorporating your program |
|
||||||
into proprietary programs. If your program is a subroutine library, you |
|
||||||
may consider it more useful to permit linking proprietary applications with |
|
||||||
the library. If this is what you want to do, use the GNU Lesser General |
|
||||||
Public License instead of this License. But first, please read |
|
||||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
|
@ -1,37 +0,0 @@ |
|||||||
# lightdm-webkit-theme-antergos |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Overview |
|
||||||
|
|
||||||
This is the default theme included with [web-greeter](http://github.com/Antergos/web-greeter). If you are using the Webkit2 greeter, you already have this theme. |
|
||||||
|
|
||||||
### Screenshots |
|
||||||
<center> |
|
||||||
<img src="img/screenshot1.jpg" alt="screenshot1" /> |
|
||||||
<hr/> |
|
||||||
<img src="img/screenshot2.jpg" alt="screenshot2" /> |
|
||||||
<hr/> |
|
||||||
<img src="img/screenshot3.jpg" alt="screenshot3" /> |
|
||||||
</center> |
|
||||||
|
|
||||||
### Prerequisites |
|
||||||
* web-greeter |
|
||||||
|
|
||||||
### Installation |
|
||||||
This theme is included with `web-greeter` which is installed by default for Antergos users. Non-Antergos users should see [web-greeter](https://github.com/Antergos/web-greeter/) for installation details. |
|
||||||
|
|
||||||
### User Icons Management |
|
||||||
|
|
||||||
To change users icons: |
|
||||||
|
|
||||||
* Create a resource named with the user's login in `/var/lib/AccountsService/icons/` |
|
||||||
* Edit `/var/lib/AccountsService/users/<userLogin>` and add a property `Icon` targeting the icon resource you just created. |
|
||||||
|
|
||||||
## Theme JavaScript API: |
|
||||||
The greeter exposes a JavaScript API to themes which they must use to interact with the greeter (in order to facilitate the user login process). For more details, check out the [API Documentation](https://doclets.io/Antergos/web-greeter/master). |
|
||||||
|
|
||||||
|
|
||||||
## Translations |
|
||||||
Translations are managed through [Transifex](http://transifex.com). |
|
||||||
|
|
@ -1,667 +0,0 @@ |
|||||||
/* |
|
||||||
* |
|
||||||
* Copyright © 2015-2017 Antergos |
|
||||||
* |
|
||||||
* style.css |
|
||||||
* |
|
||||||
* This file is part of Web Greeter |
|
||||||
* |
|
||||||
* Web Greeter is free software: you can redistribute it and/or modify |
|
||||||
* it under the terms of the GNU General Public License as published by |
|
||||||
* the Free Software Foundation, either version 3 of the License, |
|
||||||
* or any later version. |
|
||||||
* |
|
||||||
* Web Greeter is distributed in the hope that it will be useful, |
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
* GNU General Public License for more details. |
|
||||||
* |
|
||||||
* The following additional terms are in effect as per Section 7 of the license: |
|
||||||
* |
|
||||||
* The preservation of all legal notices and author attributions in |
|
||||||
* the material or in the Appropriate Legal Notices displayed |
|
||||||
* by works containing it is required. |
|
||||||
* |
|
||||||
* You should have received a copy of the GNU General Public License |
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
*/ |
|
||||||
|
|
||||||
/* HiDPI */ |
|
||||||
@media screen and (min-width: 3000px) and (min-height: 1200px) { |
|
||||||
html { |
|
||||||
zoom: 2.0; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/* Global Styles */ |
|
||||||
|
|
||||||
@font-face { |
|
||||||
font-family: 'Open Sans'; |
|
||||||
font-weight: 400; |
|
||||||
font-style: normal; |
|
||||||
src: local('Open Sans Regular'), local('Open Sans'), url('../../_vendor/fonts/TTF/OpenSans-Regular.ttf'); |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: 'Open Sans'; |
|
||||||
font-weight: 300; |
|
||||||
font-style: normal; |
|
||||||
src: local('Open Sans Light'), local('Open Sans'), url('../../_vendor/fonts/TTF/OpenSans-Light.ttf'); |
|
||||||
} |
|
||||||
|
|
||||||
body { |
|
||||||
-webkit-font-smoothing: antialiased !important; |
|
||||||
text-rendering: optimizeLegibility !important; |
|
||||||
background-color: #000000; |
|
||||||
} |
|
||||||
|
|
||||||
*:focus { |
|
||||||
outline: none; |
|
||||||
} |
|
||||||
|
|
||||||
.hidden { |
|
||||||
opacity: 0; |
|
||||||
} |
|
||||||
|
|
||||||
::-webkit-scrollbar { |
|
||||||
width: 6px; |
|
||||||
} |
|
||||||
|
|
||||||
::-webkit-scrollbar-track { |
|
||||||
background-color: #EAEAEA; |
|
||||||
border-left: 1px solid #CCCCCC; |
|
||||||
} |
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb { |
|
||||||
background-color: #5D5D5D; |
|
||||||
} |
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover { |
|
||||||
background-color: #757575; |
|
||||||
} |
|
||||||
|
|
||||||
.user-wrap2::-webkit-scrollbar { |
|
||||||
width: 4px; |
|
||||||
} |
|
||||||
|
|
||||||
.user-wrap2::-webkit-scrollbar-track { |
|
||||||
background-color: #EAEAEA; |
|
||||||
border-left: 1px solid #CCCCCC; |
|
||||||
} |
|
||||||
|
|
||||||
.user-wrap2::-webkit-scrollbar-thumb { |
|
||||||
background-color: #5D5D5D; |
|
||||||
} |
|
||||||
|
|
||||||
.user-wrap2::-webkit-scrollbar-thumb:hover { |
|
||||||
background-color: #B3B3B3; |
|
||||||
} |
|
||||||
|
|
||||||
.close_wallpapers { |
|
||||||
padding: 2px 10px !important; |
|
||||||
} |
|
||||||
|
|
||||||
html, |
|
||||||
body { |
|
||||||
height: 100%; |
|
||||||
width: 100%; |
|
||||||
background-color: #000000; |
|
||||||
font-family: "Open Sans", sans-serif; |
|
||||||
} |
|
||||||
|
|
||||||
i { |
|
||||||
font-size: 17px; |
|
||||||
} |
|
||||||
|
|
||||||
h3, .panel-heading { |
|
||||||
font-family: "Open Sans", sans-serif; |
|
||||||
font-size: 16px; |
|
||||||
text-align: center; |
|
||||||
font-weight: 400; |
|
||||||
} |
|
||||||
|
|
||||||
a { |
|
||||||
text-decoration: none !important; |
|
||||||
} |
|
||||||
|
|
||||||
/* Background Switcher */ |
|
||||||
|
|
||||||
.bg-switch { |
|
||||||
position: relative; |
|
||||||
top: 0; |
|
||||||
right: 0; |
|
||||||
bottom: 0; |
|
||||||
left: 0; |
|
||||||
width: 250px; |
|
||||||
margin: 40px auto auto; |
|
||||||
padding: 0px 53px; |
|
||||||
color: #F5F5F5; |
|
||||||
} |
|
||||||
|
|
||||||
.bg-switch h3 { |
|
||||||
color: #f5f5f5; |
|
||||||
} |
|
||||||
|
|
||||||
.bg-switch .bgs .bg { |
|
||||||
text-align: center; |
|
||||||
text-decoration: none; |
|
||||||
display: block; |
|
||||||
max-height: 95px; |
|
||||||
transition: background 0.4s ease-in; |
|
||||||
margin-bottom: 12px; |
|
||||||
} |
|
||||||
.bg-switch .bgs .bg:hover { |
|
||||||
background: rgba(255,255,255,0.3); |
|
||||||
} |
|
||||||
|
|
||||||
.bg-switch .bgs .bg.active div, .bg-switch .bgs .bg.active img { |
|
||||||
border-color: #d6004b; |
|
||||||
} |
|
||||||
|
|
||||||
.bg-switch .bgs .bg div { |
|
||||||
width: 145px; |
|
||||||
height: 95px; |
|
||||||
border: 2px solid #FFFFFF; |
|
||||||
margin-bottom: 10px; |
|
||||||
cursor: pointer; |
|
||||||
transition: all 0.3s linear; |
|
||||||
background-size: cover; |
|
||||||
background-repeat: no-repeat; |
|
||||||
} |
|
||||||
|
|
||||||
.hovered { |
|
||||||
text-decoration: none; |
|
||||||
background-color: #ECF0F1; |
|
||||||
} |
|
||||||
|
|
||||||
#user-list2 { |
|
||||||
width: 100%; |
|
||||||
} |
|
||||||
|
|
||||||
#user-list2 span { |
|
||||||
font-size: 19px; |
|
||||||
} |
|
||||||
|
|
||||||
#user-list2 img { |
|
||||||
width: 32px; |
|
||||||
height: 32px; |
|
||||||
margin-right: 10px; |
|
||||||
} |
|
||||||
|
|
||||||
#bg-switch-wrapper { |
|
||||||
right: -250px; |
|
||||||
width: 250px; |
|
||||||
background: rgba(0, 0, 0, 0.5); |
|
||||||
position: fixed; |
|
||||||
height: 100%; |
|
||||||
overflow-y: auto; |
|
||||||
z-index: 1000; |
|
||||||
transition: right 0.8s cubic-bezier(0.77, 0, 0.175, 1); |
|
||||||
} |
|
||||||
|
|
||||||
.bg-switch-container { |
|
||||||
position: absolute; |
|
||||||
top: 0; |
|
||||||
width: 250px; |
|
||||||
list-style: none; |
|
||||||
margin: 0; |
|
||||||
padding: 0; |
|
||||||
} |
|
||||||
|
|
||||||
#bg-switch-toggle { |
|
||||||
top: 0; |
|
||||||
right: -2px; |
|
||||||
position: fixed; |
|
||||||
z-index: 1; |
|
||||||
} |
|
||||||
|
|
||||||
#bg-switch-wrapper.active { |
|
||||||
right: 0px; |
|
||||||
width: 250px; |
|
||||||
overflow-x: hidden; |
|
||||||
} |
|
||||||
|
|
||||||
.toggle { |
|
||||||
margin: 10px 20px 0 0; |
|
||||||
} |
|
||||||
|
|
||||||
/* Full Page Image Header Area */ |
|
||||||
|
|
||||||
.header { |
|
||||||
display: table; |
|
||||||
height: 100%; |
|
||||||
width: 100%; |
|
||||||
position: relative; |
|
||||||
background-color: #000000; |
|
||||||
background-size: cover !important; |
|
||||||
background-repeat: no-repeat !important; |
|
||||||
background-position: center !important; |
|
||||||
transition: left 0.8s, background-image 0.3s; |
|
||||||
transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1), linear; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
#user-target2 { |
|
||||||
position: relative; |
|
||||||
} |
|
||||||
|
|
||||||
#user-target2 i { |
|
||||||
right: -21px; |
|
||||||
color: #2C3E50; |
|
||||||
font-size: 14px; |
|
||||||
} |
|
||||||
|
|
||||||
#trigger i { |
|
||||||
color: #2C3E50; |
|
||||||
font-size: 14px; |
|
||||||
position: relative; |
|
||||||
top: 10px; |
|
||||||
right: 5px; |
|
||||||
} |
|
||||||
|
|
||||||
/* Clock Widget */ |
|
||||||
|
|
||||||
.time { |
|
||||||
font-family: "Open Sans", sans-serif; |
|
||||||
font-size: 96px; |
|
||||||
font-weight: 300; |
|
||||||
line-height: 1em; |
|
||||||
text-decoration: none; |
|
||||||
color: #3D73C5; |
|
||||||
background-color: rgb(252, 247, 247); |
|
||||||
transition: 1s ease-out; |
|
||||||
position: relative; |
|
||||||
top: 11px; |
|
||||||
} |
|
||||||
|
|
||||||
#panelfix { |
|
||||||
max-height: 178px !important; |
|
||||||
min-height: 178px; |
|
||||||
} |
|
||||||
|
|
||||||
.time-panel a { |
|
||||||
display: block; |
|
||||||
animation: clkwiggle 7s infinite; |
|
||||||
} |
|
||||||
|
|
||||||
.time:hover { |
|
||||||
cursor: pointer; |
|
||||||
color: #77ADFF; |
|
||||||
/* text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.7); */ |
|
||||||
} |
|
||||||
|
|
||||||
.time-panel { |
|
||||||
background-color: rgb(252, 247, 247) !important; |
|
||||||
border-color: transparent !important; |
|
||||||
} |
|
||||||
|
|
||||||
.time-panel:target { |
|
||||||
animation: flip 0.5s ease-out; |
|
||||||
} |
|
||||||
|
|
||||||
.time-panel:target:after { |
|
||||||
opacity: 0; |
|
||||||
} |
|
||||||
|
|
||||||
/* Login Dialog */ |
|
||||||
|
|
||||||
.welcome { |
|
||||||
font-weight: 500; |
|
||||||
font-size: 17px; |
|
||||||
position: relative; |
|
||||||
right: 9px; |
|
||||||
} |
|
||||||
|
|
||||||
.panel-heading img { |
|
||||||
max-height: 30px; |
|
||||||
width: auto; |
|
||||||
} |
|
||||||
|
|
||||||
.login-wrapper { |
|
||||||
list-style-type: none; |
|
||||||
display: table-row; |
|
||||||
} |
|
||||||
|
|
||||||
.login-cell { |
|
||||||
display: table-cell; |
|
||||||
vertical-align: middle; |
|
||||||
} |
|
||||||
|
|
||||||
.login-box { |
|
||||||
min-height: 275px; |
|
||||||
} |
|
||||||
|
|
||||||
#login { |
|
||||||
opacity: 0; |
|
||||||
transition: opacity 0.3s ease-in; |
|
||||||
} |
|
||||||
|
|
||||||
#panel-fix .panel-shadow, .panel-group, .panel-shadow { |
|
||||||
box-shadow: none !important; |
|
||||||
border: none !important; |
|
||||||
} |
|
||||||
|
|
||||||
#collapseOne { |
|
||||||
position: relative; |
|
||||||
top: 5px; |
|
||||||
} |
|
||||||
|
|
||||||
#collapseTwo { |
|
||||||
position: relative; |
|
||||||
top: 15px; |
|
||||||
} |
|
||||||
|
|
||||||
.panel-default { |
|
||||||
background-color: rgb(252, 247, 247); |
|
||||||
} |
|
||||||
|
|
||||||
.badge { |
|
||||||
color: #2C3E50; |
|
||||||
} |
|
||||||
|
|
||||||
.badge, .badge i { |
|
||||||
font-size: 10px !important; |
|
||||||
display: none; |
|
||||||
} |
|
||||||
|
|
||||||
.list-group-item.hovered .badge, |
|
||||||
.list-group-item.hovered .badge i { |
|
||||||
display: block; |
|
||||||
margin-top: 3px; |
|
||||||
} |
|
||||||
|
|
||||||
.panel-heading { |
|
||||||
padding: 10px 20px !important; |
|
||||||
background: #F1F1F1; |
|
||||||
border-bottom-color: rgba(221,221,221, 0.35) !important; |
|
||||||
} |
|
||||||
|
|
||||||
.panel-footer { |
|
||||||
height: 50px; |
|
||||||
background: #F1F1F1; |
|
||||||
border-top-color: rgba(221,221,221, 0.35); |
|
||||||
} |
|
||||||
|
|
||||||
#accordion { |
|
||||||
margin-bottom: 10px; |
|
||||||
} |
|
||||||
|
|
||||||
#sessions, #actionsArea { |
|
||||||
transition: all ease 3s; |
|
||||||
} |
|
||||||
|
|
||||||
.panel-body { |
|
||||||
background-color: rgb(252, 247, 247); |
|
||||||
padding: 10px; |
|
||||||
} |
|
||||||
|
|
||||||
.panel-footer { |
|
||||||
padding: 5px 15px; |
|
||||||
} |
|
||||||
|
|
||||||
.panel-flow { |
|
||||||
overflow: visible !important; |
|
||||||
} |
|
||||||
|
|
||||||
.password ul { |
|
||||||
text-align: left; |
|
||||||
} |
|
||||||
|
|
||||||
div.password, div.status, div.timer { |
|
||||||
text-align: center; |
|
||||||
position: relative; |
|
||||||
display: none; |
|
||||||
width: 47%; |
|
||||||
margin: 0 auto; |
|
||||||
} |
|
||||||
|
|
||||||
#passwordField { |
|
||||||
margin-left: 1px; |
|
||||||
} |
|
||||||
|
|
||||||
.input-group-btn { |
|
||||||
width: auto; |
|
||||||
} |
|
||||||
.form-control { |
|
||||||
border-color: transparent !important; |
|
||||||
} |
|
||||||
|
|
||||||
input.password.form-control { |
|
||||||
box-shadow: 0 1px #dddddd; |
|
||||||
margin-top: -1px; |
|
||||||
} |
|
||||||
input.password.form-control:focus { |
|
||||||
box-shadow: inset 0 -2px 0 #2196F3 !important; |
|
||||||
border-bottom: 2px solid #2196F3 !important; |
|
||||||
margin-top: 0; |
|
||||||
} |
|
||||||
|
|
||||||
#passwordArea .btn { |
|
||||||
padding: 7px 12px; |
|
||||||
} |
|
||||||
|
|
||||||
#passwordArea .btn-group > .btn { |
|
||||||
float: initial; |
|
||||||
} |
|
||||||
|
|
||||||
#logArea { |
|
||||||
position: absolute; |
|
||||||
top: 25%; |
|
||||||
left: 5%; |
|
||||||
width: 25%; |
|
||||||
height: 50%; |
|
||||||
display: none; |
|
||||||
overflow: auto; |
|
||||||
color: #FFFFFF; |
|
||||||
background: rgba(0, 0, 0, 0.6); |
|
||||||
border-radius: 10px; |
|
||||||
font-size: 15px; |
|
||||||
padding: 20px; |
|
||||||
} |
|
||||||
|
|
||||||
/* Animation */ |
|
||||||
|
|
||||||
@keyframes bounce { |
|
||||||
0% { |
|
||||||
transform: translateY(0); |
|
||||||
} |
|
||||||
100% { |
|
||||||
transform: translateY(-20px); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
@keyframes clkwiggle { |
|
||||||
0% { transform: rotate(0deg); } |
|
||||||
1% { transform: rotate(-2deg); } |
|
||||||
1.5% { transform: rotate(2deg); } |
|
||||||
2% { transform: rotate(0deg); } |
|
||||||
2.5% { transform: rotate(-2deg); } |
|
||||||
3.5% { transform: rotate(2deg); } |
|
||||||
4% { transform: rotate(0deg); } |
|
||||||
100% { transform: rotate(0deg); } |
|
||||||
} |
|
||||||
|
|
||||||
.random { |
|
||||||
background: rgba(111, 111, 111, 0.65); |
|
||||||
text-align: center; |
|
||||||
display: table; |
|
||||||
color: rgba(255, 255, 255, 0.72); |
|
||||||
width: 145px; |
|
||||||
height: 95px; |
|
||||||
border: 2px solid #FFFFFF; |
|
||||||
margin-bottom: 10px; |
|
||||||
cursor: pointer; |
|
||||||
padding-top: 28.5px; |
|
||||||
} |
|
||||||
|
|
||||||
.random span { |
|
||||||
font-size: 18px; |
|
||||||
} |
|
||||||
|
|
||||||
.random:hover { |
|
||||||
color: white; |
|
||||||
background: rgba(111, 111, 111, 0.85); |
|
||||||
} |
|
||||||
|
|
||||||
.random.active { |
|
||||||
border: 2px solid #3D73C5; |
|
||||||
} |
|
||||||
|
|
||||||
.user-wrap2 { |
|
||||||
max-width: 50%; |
|
||||||
margin: 0 auto; |
|
||||||
display: -webkit-box; |
|
||||||
overflow: visible; |
|
||||||
} |
|
||||||
|
|
||||||
#list-group { |
|
||||||
padding: 0px; |
|
||||||
overflow: visible; |
|
||||||
} |
|
||||||
|
|
||||||
@media (max-width: 1900px) { |
|
||||||
|
|
||||||
.bg-switch { |
|
||||||
position: relative; |
|
||||||
width: 250px; |
|
||||||
margin: 40px auto auto; |
|
||||||
padding: 0px 74px; |
|
||||||
} |
|
||||||
|
|
||||||
.bg-switch .bgs .bg { |
|
||||||
text-align: center; |
|
||||||
text-decoration: none; |
|
||||||
} |
|
||||||
|
|
||||||
.bg-switch .bgs .bg img { |
|
||||||
width: 102px; |
|
||||||
height: 67px; |
|
||||||
margin-bottom: 5px; |
|
||||||
} |
|
||||||
|
|
||||||
h3 { |
|
||||||
margin-top: 10px; |
|
||||||
margin-bottom: 8px; |
|
||||||
} |
|
||||||
|
|
||||||
#logArea { |
|
||||||
top: 24%; |
|
||||||
left: 2%; |
|
||||||
} |
|
||||||
|
|
||||||
.random { |
|
||||||
width: 102px; |
|
||||||
height: 67px; |
|
||||||
margin-bottom: 5px; |
|
||||||
padding-top: 18px; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
.list-group-item { |
|
||||||
padding: 5px 15px; |
|
||||||
} |
|
||||||
|
|
||||||
.list-group-item img { |
|
||||||
position: relative; |
|
||||||
bottom: 2px; |
|
||||||
} |
|
||||||
|
|
||||||
.list-group-item span:first-of-type { |
|
||||||
position: relative; |
|
||||||
top: 2px; |
|
||||||
} |
|
||||||
|
|
||||||
a.list-group-item:focus, a.list-group-item.hovered { |
|
||||||
position: relative; |
|
||||||
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12); |
|
||||||
border-color: transparent; |
|
||||||
outline: none; |
|
||||||
margin: 0px 0; |
|
||||||
background: #FFFFFF; |
|
||||||
} |
|
||||||
|
|
||||||
a.list-group-item.hover:not(:focus) { |
|
||||||
background: #f0f0f0; |
|
||||||
} |
|
||||||
|
|
||||||
a.list-group-item:focus:before, a.list-group-item:focus:after, |
|
||||||
a.list-group-item:hover:before, a.list-group-item:hover:after, |
|
||||||
a.list-group-item.hovered:after, a.list-group-item.hovered:before { |
|
||||||
content: ""; |
|
||||||
position: absolute; |
|
||||||
z-index: -1; |
|
||||||
top: 0; |
|
||||||
bottom: 0; |
|
||||||
left: 10px; |
|
||||||
right: 10px; |
|
||||||
border-radius: 10px; |
|
||||||
} |
|
||||||
|
|
||||||
a.list-group-item:focus:after, a.list-group-item:hover:after, a.list-group-item.hovered:after { |
|
||||||
right: 10px; |
|
||||||
left: auto; |
|
||||||
transform: skew(8deg) rotate(3deg); |
|
||||||
} |
|
||||||
|
|
||||||
.input-group, #passwordArea table { |
|
||||||
width: 100%; |
|
||||||
margin-top: 5px; |
|
||||||
} |
|
||||||
.modal-title { |
|
||||||
text-align: center; |
|
||||||
padding-top: 20px; |
|
||||||
} |
|
||||||
|
|
||||||
.modal-footer { |
|
||||||
text-align: center; |
|
||||||
padding-bottom: 30px; |
|
||||||
padding-left: 25px; |
|
||||||
padding-right: 25px; |
|
||||||
} |
|
||||||
|
|
||||||
.modal-header { |
|
||||||
padding-left: 25px; |
|
||||||
padding-right: 25px; |
|
||||||
} |
|
||||||
|
|
||||||
#statusArea { |
|
||||||
width: 360px; |
|
||||||
position: relative; |
|
||||||
top: 15px |
|
||||||
} |
|
||||||
|
|
||||||
.alert-danger { |
|
||||||
background-color: #e51c23; |
|
||||||
} |
|
||||||
|
|
||||||
.alert { |
|
||||||
border: none; |
|
||||||
color: #fff; |
|
||||||
font-size: 14.5px; |
|
||||||
font-weight: 400; |
|
||||||
padding-right: 35px; |
|
||||||
padding-left: 35px; |
|
||||||
} |
|
||||||
|
|
||||||
.alert .close { |
|
||||||
color: #fff; |
|
||||||
} |
|
||||||
|
|
||||||
.close { |
|
||||||
font-size: 34px; |
|
||||||
font-weight: 300; |
|
||||||
line-height: 24px; |
|
||||||
opacity: 0.6; |
|
||||||
transition: all 0.2s; |
|
||||||
} |
|
||||||
|
|
||||||
.alert-dismissible .close { |
|
||||||
position: relative; |
|
||||||
top: -2px; |
|
||||||
right: -21px; |
|
||||||
} |
|
||||||
|
|
||||||
.close:hover { |
|
||||||
opacity: 1; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Verifikasie misluk. Probeer asseblief weer.", |
|
||||||
"background_options": "agtergrond Options", |
|
||||||
"cancel": "kanselleer", |
|
||||||
"confirm_system_action": "Is jy seker?", |
|
||||||
"debug_log": "debug Meld", |
|
||||||
"greeting": "Welkom!", |
|
||||||
"hibernate": "hiberneer", |
|
||||||
"random": "Random", |
|
||||||
"reset": "herstel", |
|
||||||
"restart": "Begin oor", |
|
||||||
"shutdown": "Sit af", |
|
||||||
"suspend": "opskort" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": ".ﻯﺮﺧﺍ ﺓﺮﻣ ﻝﻭﺎﺣ .ﺔﻗﺩﺎﺼﻤﻟﺍ ﻞﺸﻓ !ﻩﻭﺍ ﻩﺍ", |
|
||||||
"background_options": "ﺔﻴﻔﻠﺨﻟﺍ ﺕﺍﺭﺎﻴﺧ", |
|
||||||
"cancel": "ءﺎﻐﻟﺇ", |
|
||||||
"confirm_system_action": "؟ﺪﻛﺄﺘﻣ ﺖﻧﺃ ﻞﻫ", |
|
||||||
"debug_log": "ﺢﻴﺤﺼﺘﻟﺍ ﻞﺠﺳ", |
|
||||||
"greeting": "!ﻚﺑ أهلا", |
|
||||||
"hibernate": "ﻡﺎﻧ", |
|
||||||
"random": "ﻲﺋﺍﻮﺸﻋ", |
|
||||||
"reset": "ﻦﻴﻴﻌﺗ ﺓﺩﺎﻋﺇ", |
|
||||||
"restart": "ءﺪﺑ ﺓﺩﺎﻋﺇ", |
|
||||||
"shutdown": "ﻖﻠﻏﺍ", |
|
||||||
"suspend": "ﻖﻴﻠﻌﺗ" |
|
||||||
} |
|
@ -1 +0,0 @@ |
|||||||
{"auth_failed":"Oh Uh! Authentication bilmədi. Zəhmət olmasa bir daha cəhd edin.","background_options":"Ümumi Seçimlər","cancel":"ləğv etmək","confirm_system_action":"Sən əminsən?","debug_log":"debug Giriş","greeting":"Xoş gəlmisiniz!","hibernate":"qışlamaq","random":"təsadüfi","reset":"Reset","restart":"Yenidən başlamaq","shutdown":"Söndür","suspend":"dayandırmaq"} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Памылка аўтэнтыфікацыі. Калі ласка, паспрабуйце яшчэ раз.", |
|
||||||
"background_options": "фонавыя Опцыі", |
|
||||||
"cancel": "адмяніць", |
|
||||||
"confirm_system_action": "Вы ўпэўненыя?", |
|
||||||
"debug_log": "часопіс адладкі", |
|
||||||
"greeting": "Сардэчна запрашаем!", |
|
||||||
"hibernate": "зімаваць", |
|
||||||
"random": "выпадковы", |
|
||||||
"reset": "скід", |
|
||||||
"restart": "Перазапуск", |
|
||||||
"shutdown": "выключэнне", |
|
||||||
"suspend": "прыпыніць" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Опа! Неуспешна идентификация. Моля, опитайте отново.", |
|
||||||
"background_options": "Опции на фона", |
|
||||||
"cancel": "Отказ", |
|
||||||
"confirm_system_action": "Сигурен ли си?", |
|
||||||
"debug_log": "Лог за отстраняване на грешки", |
|
||||||
"greeting": "Добре дошли!", |
|
||||||
"hibernate": "Хибернация", |
|
||||||
"random": "Произволен", |
|
||||||
"reset": "Нулиране", |
|
||||||
"restart": "Рестартиране", |
|
||||||
"shutdown": "Изключване", |
|
||||||
"suspend": "Преустановяване" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh! Oh! Autenticació fallida. Si us plau, torneu-ho a provar.", |
|
||||||
"background_options": "Opcions del fons", |
|
||||||
"cancel": "Cancel·la", |
|
||||||
"confirm_system_action": "N'esteu segur?", |
|
||||||
"debug_log": "Registre de depuració", |
|
||||||
"greeting": "Benvinguts!", |
|
||||||
"hibernate": "Hiberna", |
|
||||||
"random": "Aleatori", |
|
||||||
"reset": "Restableix", |
|
||||||
"restart": "Reinicia", |
|
||||||
"shutdown": "Atura", |
|
||||||
"suspend": "Suspèn" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Ověření se nezdařilo. Prosím zkuste to znovu.", |
|
||||||
"background_options": "Volby Pozadí", |
|
||||||
"cancel": "Zrušit", |
|
||||||
"confirm_system_action": "Jsi si jistý?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Vítejte!", |
|
||||||
"hibernate": "Hibernace", |
|
||||||
"random": "Náhodný", |
|
||||||
"reset": "Obnovit", |
|
||||||
"restart": "Restart", |
|
||||||
"shutdown": "Vypnout", |
|
||||||
"suspend": "Pozastavit" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Godkendelse mislykkedes. Prøv igen.", |
|
||||||
"background_options": "baggrund Valgmuligheder", |
|
||||||
"cancel": "Ophæve", |
|
||||||
"confirm_system_action": "Er du sikker?", |
|
||||||
"debug_log": "debug Log", |
|
||||||
"greeting": "Velkomst!", |
|
||||||
"hibernate": "dvale", |
|
||||||
"random": "Tilfældig", |
|
||||||
"reset": "Nulstil", |
|
||||||
"restart": "Genstart", |
|
||||||
"shutdown": "Lukke ned", |
|
||||||
"suspend": "Suspendere" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Die Authentifizierung ist fehlgeschlagen. Bitte erneut probieren.", |
|
||||||
"background_options": "Hintergrund Optionen", |
|
||||||
"cancel": "Abbrechen", |
|
||||||
"confirm_system_action": "Sind Sie sich sicher?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Willkommen!", |
|
||||||
"hibernate": "Ruhezustand", |
|
||||||
"random": "Zufällig", |
|
||||||
"reset": "Reset", |
|
||||||
"restart": "Neustart", |
|
||||||
"shutdown": "Herunterfahren", |
|
||||||
"suspend": "Bereitschaftsbetrieb" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Ωχ Ωχ! Ο έλεγχος ταυτότητας απέτυχε. Παρακαλώ δοκιμάστε ξανά.", |
|
||||||
"background_options": "Επιλογές φόντου", |
|
||||||
"cancel": "Ακύρωση", |
|
||||||
"confirm_system_action": "Είσαι σίγουρος/η;", |
|
||||||
"debug_log": "Αποσφαλμάτωση Εγγραφής", |
|
||||||
"greeting": "Καλώς ήρθατε!", |
|
||||||
"hibernate": "Αδρανοποίηση", |
|
||||||
"random": "Τυχαίο", |
|
||||||
"reset": "Επαναφορά", |
|
||||||
"restart": "Επανεκκίνηση", |
|
||||||
"shutdown": "Τερματισμός λειτουργίας", |
|
||||||
"suspend": "Αναστολή" |
|
||||||
} |
|
@ -1 +0,0 @@ |
|||||||
{"auth_failed":"Uh Oh! Authentication failed. Please try again.","background_options":"Background Options","cancel":"Cancel","confirm_system_action":"Are you sure?","debug_log":"Debug Log","greeting":"Welcome!","hibernate":"Hibernate","random":"Random","reset":"Reset","restart":"Restart","shutdown":"Shutdown","suspend":"Suspend"} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Aŭtentigo malsukcesis. Bonvolu reprovi.", |
|
||||||
"background_options": "Fona Ebloj", |
|
||||||
"cancel": "Rezignu", |
|
||||||
"confirm_system_action": "Ĉu vi certas?", |
|
||||||
"debug_log": "debug Ensalutu", |
|
||||||
"greeting": "Bonvenon!", |
|
||||||
"hibernate": "hiberna", |
|
||||||
"random": "Random", |
|
||||||
"reset": "Restarigi", |
|
||||||
"restart": "Rekomenci", |
|
||||||
"shutdown": "elŝaltita", |
|
||||||
"suspend": "malakcepti" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "¡Vaya! Error de autenticación. Por favor, vuelva a intentarlo.", |
|
||||||
"background_options": "Opciones de fondo", |
|
||||||
"cancel": "Cancelar", |
|
||||||
"confirm_system_action": "¿Está seguro?", |
|
||||||
"debug_log": "Registro de depuración de errores", |
|
||||||
"greeting": "¡Bienvenido!", |
|
||||||
"hibernate": "Hibernar", |
|
||||||
"random": "Al azar", |
|
||||||
"reset": "Reiniciar", |
|
||||||
"restart": "Reiniciar", |
|
||||||
"shutdown": "Apagar", |
|
||||||
"suspend": "Suspender" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Tuvastamine ebaõnnestus. Palun proovi uuesti.", |
|
||||||
"background_options": "Taust valikud", |
|
||||||
"cancel": "Tühista", |
|
||||||
"confirm_system_action": "Oled sa kindel?", |
|
||||||
"debug_log": "Debug Logi", |
|
||||||
"greeting": "Tere tulemast!", |
|
||||||
"hibernate": "talveund magama", |
|
||||||
"random": "juhuslik", |
|
||||||
"reset": "Taasta", |
|
||||||
"restart": "Taaskäivita", |
|
||||||
"shutdown": "Lülita välja", |
|
||||||
"suspend": "peatada" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Egiaztapenak huts egin du. Mesedez, saiatu berriz.", |
|
||||||
"background_options": "Aurrekariak Aukerak", |
|
||||||
"cancel": "Utzi", |
|
||||||
"confirm_system_action": "Zihur zaude?", |
|
||||||
"debug_log": "Araztu hasi saioa", |
|
||||||
"greeting": "Ongi etorri!", |
|
||||||
"hibernate": "hibernatzeko", |
|
||||||
"random": "Random", |
|
||||||
"reset": "Berrezarri", |
|
||||||
"restart": "Restart", |
|
||||||
"shutdown": "Itzali", |
|
||||||
"suspend": "Eseki" |
|
||||||
} |
|
@ -1 +0,0 @@ |
|||||||
{"auth_failed":".ﺪﯿﻨﮐ ﺵﻼﺗ ﻩﺭﺎﺑﻭﺩ ﺎﻔﻄﻟ .ﺖﺳﺍ ﻩﺩﺭﻮﺧ ﺖﺴﮑﺷ ﺖﯾﻮﻫ ﺯﺍﺮﺣﺍ !ﻩﻭﺍ ﻩﻭﺍ","background_options":"ﻪﻨﯿﻣﺯ ﺲﭘ ﯼﺎﻫ ﻪﻨﯾﺰﮔ","cancel":"ﻮﻐﻟ","confirm_system_action":"؟ﺪﯿﺘﺴﻫ ﻦﺌﻤﻄﻣ ﺎﻤﺷ","debug_log":"ﺩﻭﺭﻭ ﯽﯾﺍﺩﺯ ﻝﺎﮑﺷﺍ","greeting":"!ﯼﺪﻣﺁ ﺵﻮﺧ","hibernate":"ﯽﻧﺎﺘﺴﻣﺯ ﺏﺍﻮﺧ","random":"ﯽﻓﺩﺎﺼﺗ","reset":"ﺩﺪﺠﻣ ﻢﯿﻈﻨﺗ","restart":"ﺩﺪﺠﻣ ﯼﺯﺍﺪﻧﺍ ﻩﺍﺭ","shutdown":"ﻥﺩﺮﮐ ﺵﻮﻣﺎﺧ","suspend":"ﻖﯿﻠﻌﺗ"} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Voi ei! Todennus epäonnistui. Yritä uudelleen.", |
|
||||||
"background_options": "tausta Valinnat", |
|
||||||
"cancel": "Peruuttaa", |
|
||||||
"confirm_system_action": "Oletko varma?", |
|
||||||
"debug_log": "vianjäljityslokin", |
|
||||||
"greeting": "Tervetuloa!", |
|
||||||
"hibernate": "talvehtia", |
|
||||||
"random": "satunnainen", |
|
||||||
"reset": "asettaa uudelleen", |
|
||||||
"restart": "Aloittaa alusta", |
|
||||||
"shutdown": "Sammuttaa", |
|
||||||
"suspend": "Keskeyttää" |
|
||||||
} |
|
@ -1 +0,0 @@ |
|||||||
{"auth_failed":"Uh Oh! L'authentification a échoué. S'il vous plaît essayer à nouveau.","background_options":"Options de fond","cancel":"Annuler","confirm_system_action":"Es-tu sûr?","debug_log":"journal de débogage","greeting":"Bienvenue!","hibernate":"Hiberner","random":"aléatoire","reset":"Réinitialiser","restart":"Redémarrer","shutdown":"Fermer","suspend":"Suspendre"} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Fallou a autenticación. Por favor, ténteo de novo.", |
|
||||||
"background_options": "opcións de fondo", |
|
||||||
"cancel": "cancelar", |
|
||||||
"confirm_system_action": "Estás seguro?", |
|
||||||
"debug_log": "debug Log", |
|
||||||
"greeting": "Benvido!", |
|
||||||
"hibernate": "hibernar", |
|
||||||
"random": "aleatorio", |
|
||||||
"reset": "Restaurar", |
|
||||||
"restart": "restart", |
|
||||||
"shutdown": "shutdown", |
|
||||||
"suspend": "suspender" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "אוי לא! האימות נכשל. נא לנסות שוב.", |
|
||||||
"background_options": "אפשרויות רקע", |
|
||||||
"cancel": "ביטול", |
|
||||||
"confirm_system_action": "האם אתם בטוחים?", |
|
||||||
"debug_log": "תיעוד Debug", |
|
||||||
"greeting": "ברוכים הבאים!", |
|
||||||
"hibernate": "מצב שינה", |
|
||||||
"random": "אקראי", |
|
||||||
"reset": "אתחול", |
|
||||||
"restart": "הפעלה מחדש", |
|
||||||
"shutdown": "כיבוי", |
|
||||||
"suspend": "השעייה" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh oh! Provjera autentičnosti nije uspjela. Molim te pokušaj ponovno.", |
|
||||||
"background_options": "Mogućnosti Pozadina", |
|
||||||
"cancel": "Otkazati", |
|
||||||
"confirm_system_action": "Jesi li siguran?", |
|
||||||
"debug_log": "debug Prijava", |
|
||||||
"greeting": "Dobrodošli!", |
|
||||||
"hibernate": "hibernacija", |
|
||||||
"random": "Slučajna", |
|
||||||
"reset": "Poništi", |
|
||||||
"restart": "Restart", |
|
||||||
"shutdown": "Ugasiti", |
|
||||||
"suspend": "Obustaviti" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "UH Oh! Sikertelen volt a hitelesítés. Kérlek próbáld újra.", |
|
||||||
"background_options": "háttér beállításai", |
|
||||||
"cancel": "Mégsem", |
|
||||||
"confirm_system_action": "Biztos benne?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Fogadtatás!", |
|
||||||
"hibernate": "hibernate", |
|
||||||
"random": "Véletlen", |
|
||||||
"reset": "visszaállítása", |
|
||||||
"restart": "Újraindítás", |
|
||||||
"shutdown": "Lekapcsol", |
|
||||||
"suspend": "felfüggesztheti" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh oh! Otentikasi gagal. Silakan coba lagi.", |
|
||||||
"background_options": "latar Belakang Pilihan", |
|
||||||
"cancel": "Membatalkan", |
|
||||||
"confirm_system_action": "Apa kamu yakin?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Menyambut!", |
|
||||||
"hibernate": "Hibernate", |
|
||||||
"random": "Acak", |
|
||||||
"reset": "Atur ulang", |
|
||||||
"restart": "Mengulang kembali", |
|
||||||
"shutdown": "Matikan", |
|
||||||
"suspend": "Menangguhkan" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Autenticazione fallita. Riprova.", |
|
||||||
"background_options": "Opzioni sfondo", |
|
||||||
"cancel": "Cancellare", |
|
||||||
"confirm_system_action": "Sei sicuro?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Ben arrivato!", |
|
||||||
"hibernate": "Ibernazione", |
|
||||||
"random": "Casuale", |
|
||||||
"reset": "Reset", |
|
||||||
"restart": "Riavviamento", |
|
||||||
"shutdown": "Spegnimento", |
|
||||||
"suspend": "Sospensione" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "ええとああ! 認証に失敗しました。 もう一度やり直してください。", |
|
||||||
"background_options": "壁紙のオプション", |
|
||||||
"cancel": "キャンセル", |
|
||||||
"confirm_system_action": "よろしいですか?", |
|
||||||
"debug_log": "デバッグログ", |
|
||||||
"greeting": "ようこそ!", |
|
||||||
"hibernate": "ハイバネート", |
|
||||||
"random": "ランダム", |
|
||||||
"reset": "リセット", |
|
||||||
"restart": "再起動", |
|
||||||
"shutdown": "シャットダウン", |
|
||||||
"suspend": "サスペンド" |
|
||||||
} |
|
@ -1 +0,0 @@ |
|||||||
{"auth_failed":"Uh Oh! იდენტიფიკაცია ვერ მოხერხდა. გთხოვთ კიდევ სცადეთ.","background_options":"Background პარამეტრები","cancel":"გაუქმება","confirm_system_action":"დარწმუნებული ხარ?","debug_log":"Debug შესვლა","greeting":"გამარჯობა!","hibernate":"hibernate","random":"შემთხვევითი","reset":"ხელახლა","restart":"გადატვირთვა","shutdown":"გათიშვა","suspend":"შეაჩეროს"} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "어 오! 인증 실패. 다시 시도하십시오.", |
|
||||||
"background_options": "배경 옵션", |
|
||||||
"cancel": "취소", |
|
||||||
"confirm_system_action": "확실합니까?", |
|
||||||
"debug_log": "디버그 로그", |
|
||||||
"greeting": "환영!", |
|
||||||
"hibernate": "최대 절전 모드", |
|
||||||
"random": "닥치는대로의", |
|
||||||
"reset": "리셋", |
|
||||||
"restart": "재시작", |
|
||||||
"shutdown": "일시 휴업", |
|
||||||
"suspend": "매달다" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Oi! Tapatybės nustatymas nepavyko. Prašome bandyti dar kartą.", |
|
||||||
"background_options": "Fono parametrai", |
|
||||||
"cancel": "Atsisakyti", |
|
||||||
"confirm_system_action": "Ar tikrai?", |
|
||||||
"debug_log": "Derinimo žurnalas", |
|
||||||
"greeting": "Sveiki!", |
|
||||||
"hibernate": "Užmigdyti", |
|
||||||
"random": "Atsitiktinės", |
|
||||||
"reset": "Atstatyti", |
|
||||||
"restart": "Paleisti iš naujo", |
|
||||||
"shutdown": "Išjungti", |
|
||||||
"suspend": "Pristabdyti" |
|
||||||
} |
|
@ -1 +0,0 @@ |
|||||||
{"auth_failed":"Ух О! Проверката за автентичност не успеа. Ве молиме обидете се повторно.","background_options":"Опции позадина","cancel":"Откажи","confirm_system_action":"Дали си сигурен?","debug_log":"debug Логирање","greeting":"Добредојдовте!","hibernate":"хибернираат","random":"Случајна","reset":"ресетирање","restart":"Рестарт","shutdown":"Исклучи","suspend":"суспендира"} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Pengesahan gagal. Sila cuba lagi.", |
|
||||||
"background_options": "Pilihan Latar Belakang", |
|
||||||
"cancel": "Batal", |
|
||||||
"confirm_system_action": "Adakah anda pasti?", |
|
||||||
"debug_log": "debug Log", |
|
||||||
"greeting": "Selamat Datang!", |
|
||||||
"hibernate": "hibernate", |
|
||||||
"random": "Random", |
|
||||||
"reset": "Set semula", |
|
||||||
"restart": "Mula semula", |
|
||||||
"shutdown": "Menutup", |
|
||||||
"suspend": "Gantung" |
|
||||||
} |
|
@ -1 +0,0 @@ |
|||||||
{"auth_failed":"UH oh! Autentisering mislyktes. Vær så snill, prøv på nytt.","background_options":"bakgrunns alternativer","cancel":"Kansellere","confirm_system_action":"Er du sikker?","debug_log":"Debug Log","greeting":"Velkommen!","hibernate":"Hibernate","random":"Tilfeldig","reset":"Tilbakestill","restart":"Omstart","shutdown":"Skru av","suspend":"Henge"} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Verificatie is mislukt. Probeer opnieuw.", |
|
||||||
"background_options": "achtergrond Opties", |
|
||||||
"cancel": "Annuleer", |
|
||||||
"confirm_system_action": "Weet je het zeker?", |
|
||||||
"debug_log": "debug Log", |
|
||||||
"greeting": "Welkom!", |
|
||||||
"hibernate": "overwinteren", |
|
||||||
"random": "toevallig", |
|
||||||
"reset": "Reset", |
|
||||||
"restart": "Herstart", |
|
||||||
"shutdown": "Afsluiten", |
|
||||||
"suspend": "opschorten" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "O o! Uwierzytelnianie nie powiodło się. Proszę spróbuj ponownie.", |
|
||||||
"background_options": "Opcje tła", |
|
||||||
"cancel": "Anuluj", |
|
||||||
"confirm_system_action": "Jesteś pewny?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Zapraszamy!", |
|
||||||
"hibernate": "Hibernować", |
|
||||||
"random": "Losowy", |
|
||||||
"reset": "Nastawić", |
|
||||||
"restart": "restart", |
|
||||||
"shutdown": "Zamknąć", |
|
||||||
"suspend": "Zawieszać" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! A autenticação falhou. Por favor, tente novamente.", |
|
||||||
"background_options": "Opções de Fundo", |
|
||||||
"cancel": "Cancelar", |
|
||||||
"confirm_system_action": "Você tem certeza?", |
|
||||||
"debug_log": "Registo de Depuração", |
|
||||||
"greeting": "Bem-vindo!", |
|
||||||
"hibernate": "Hibernar", |
|
||||||
"random": "Aleatório", |
|
||||||
"reset": "Repor", |
|
||||||
"restart": "Reiniciar", |
|
||||||
"shutdown": "Desligar", |
|
||||||
"suspend": "Suspender" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Autentificare esuata. Vă rugăm să încercați din nou.", |
|
||||||
"background_options": "Opțiuni de fundal", |
|
||||||
"cancel": "Anula", |
|
||||||
"confirm_system_action": "Esti sigur?", |
|
||||||
"debug_log": "debug Log", |
|
||||||
"greeting": "Bine ati venit!", |
|
||||||
"hibernate": "hiberna", |
|
||||||
"random": "Întâmplător", |
|
||||||
"reset": "Reset", |
|
||||||
"restart": "Repornire", |
|
||||||
"shutdown": "Închide", |
|
||||||
"suspend": "Suspenda" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Ой! Ошибка аутентификации. Пожалуйста, попробуйте еще раз.", |
|
||||||
"background_options": "Фоновые настройки", |
|
||||||
"cancel": "Отмена", |
|
||||||
"confirm_system_action": "Вы уверены?", |
|
||||||
"debug_log": "Журнал отладки", |
|
||||||
"greeting": "Добро пожаловать!", |
|
||||||
"hibernate": "Гибернация", |
|
||||||
"random": "Выборочно", |
|
||||||
"reset": "Сброс", |
|
||||||
"restart": "Перезагрузка", |
|
||||||
"shutdown": "Выключить", |
|
||||||
"suspend": "Приостановить" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Ale nie! Overenie totožnosti zlyhalo. Prosím, skúste to znovu.", |
|
||||||
"background_options": "Voľby pozadia", |
|
||||||
"cancel": "Zrušiť", |
|
||||||
"confirm_system_action": "Ste si istý?", |
|
||||||
"debug_log": "Záznam ladenia", |
|
||||||
"greeting": "Vitajte!", |
|
||||||
"hibernate": "Hibernovať", |
|
||||||
"random": "Náhodné", |
|
||||||
"reset": "Obnoviť", |
|
||||||
"restart": "Reštartovať", |
|
||||||
"shutdown": "Vypnúť", |
|
||||||
"suspend": "Uspať" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Preverjanje pristnosti ni uspelo. Prosim poskusi znova.", |
|
||||||
"background_options": "Možnosti ozadja", |
|
||||||
"cancel": "Prekliči", |
|
||||||
"confirm_system_action": "Ali si prepričan?", |
|
||||||
"debug_log": "debug Log", |
|
||||||
"greeting": "Dobrodošli!", |
|
||||||
"hibernate": "hibernacija", |
|
||||||
"random": "random", |
|
||||||
"reset": "Ponastavi", |
|
||||||
"restart": "Ponovni zagon", |
|
||||||
"shutdown": "Ugasniti", |
|
||||||
"suspend": "odloži" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Аутентификација није успела. Покушајте поново.", |
|
||||||
"background_options": "Опције за позадину", |
|
||||||
"cancel": "Одустани", |
|
||||||
"confirm_system_action": "Да ли сте сигурни?", |
|
||||||
"debug_log": "Запис за исправљање грешака", |
|
||||||
"greeting": "Добро дошли!", |
|
||||||
"hibernate": "Хибернирај", |
|
||||||
"random": "Случајни избор", |
|
||||||
"reset": "Ресетуј", |
|
||||||
"restart": "Поново покрени", |
|
||||||
"shutdown": "Искључи", |
|
||||||
"suspend": "Суспендуј" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Hoppsan! Autentisering misslyckades. Var god försök igen.", |
|
||||||
"background_options": "Välj bakgrund", |
|
||||||
"cancel": "Avbryt", |
|
||||||
"confirm_system_action": "Är du säker?", |
|
||||||
"debug_log": "Felsökningslogg", |
|
||||||
"greeting": "Välkommen!", |
|
||||||
"hibernate": "Viloläge", |
|
||||||
"random": "Slumpmässig", |
|
||||||
"reset": "Återställa", |
|
||||||
"restart": "Starta om", |
|
||||||
"shutdown": "Stäng av", |
|
||||||
"suspend": "Vänteläge" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Эй кош! Хатои. Лутфан, боз кӯшиш кунед.", |
|
||||||
"background_options": "Имконот замина", |
|
||||||
"cancel": "бекор", |
|
||||||
"confirm_system_action": "Шумо мутмаъин ҳастед?", |
|
||||||
"debug_log": "сознамоии English Русский", |
|
||||||
"greeting": "Хуш омадед!", |
|
||||||
"hibernate": "Hibernate", |
|
||||||
"random": "ихтиёрӣ", |
|
||||||
"reset": "Reset", |
|
||||||
"restart": "Оғози дубора", |
|
||||||
"shutdown": "Пӯшида шудан", |
|
||||||
"suspend": "боздоштан" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Nabigo ang pagpapatotoo. Pakisubukang muli.", |
|
||||||
"background_options": "Mga Pagpipilian sa Background", |
|
||||||
"cancel": "kanselahin", |
|
||||||
"confirm_system_action": "Sigurado ka ba?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Maligayang pagdating!", |
|
||||||
"hibernate": "pagtulog sa panahon ng taglamig", |
|
||||||
"random": "Random", |
|
||||||
"reset": "I-reset ang", |
|
||||||
"restart": "I-restart ang", |
|
||||||
"shutdown": "pagpipinid", |
|
||||||
"suspend": "Suspindihin" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Ah ah! Kimlik doğrulama başarısız oldu. Lütfen tekrar deneyin.", |
|
||||||
"background_options": "Geçmiş Seçenekleri", |
|
||||||
"cancel": "İptal", |
|
||||||
"confirm_system_action": "Emin misiniz?", |
|
||||||
"debug_log": "Debug Günlüğü", |
|
||||||
"greeting": "Hoşgeldiniz!", |
|
||||||
"hibernate": "kış uykusuna yatmak", |
|
||||||
"random": "rasgele", |
|
||||||
"reset": "Reset", |
|
||||||
"restart": "Tekrar başlat", |
|
||||||
"shutdown": "Kapat", |
|
||||||
"suspend": "Askıya" |
|
||||||
} |
|
File diff suppressed because one or more lines are too long
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Ой-ой! Помилка аутентифікації. Будь ласка спробуйте ще раз.", |
|
||||||
"background_options": "фонові Опції", |
|
||||||
"cancel": "Скасувати", |
|
||||||
"confirm_system_action": "Ти впевнений?", |
|
||||||
"debug_log": "Журнал налагодження", |
|
||||||
"greeting": "Ласкаво просимо!", |
|
||||||
"hibernate": "зимувати", |
|
||||||
"random": "випадковий", |
|
||||||
"reset": "Скидання", |
|
||||||
"restart": "перезапуск", |
|
||||||
"shutdown": "Закрити", |
|
||||||
"suspend": "призупинити" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "呃哦! 验证失败。 请再试一次。", |
|
||||||
"background_options": "背景选项", |
|
||||||
"cancel": "取消", |
|
||||||
"confirm_system_action": "你确定?", |
|
||||||
"debug_log": "调试日志", |
|
||||||
"greeting": "欢迎!", |
|
||||||
"hibernate": "过冬", |
|
||||||
"random": "随机", |
|
||||||
"reset": "重置", |
|
||||||
"restart": "重启", |
|
||||||
"shutdown": "关掉", |
|
||||||
"suspend": "暂停" |
|
||||||
} |
|
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
"auth_failed": "Uh Oh! Ukuqinisekisa kwehlulekile. Sicela uzame futhi.", |
|
||||||
"background_options": "Izinketho Background", |
|
||||||
"cancel": "Khansela", |
|
||||||
"confirm_system_action": "Uqinisekile?", |
|
||||||
"debug_log": "Debug Log", |
|
||||||
"greeting": "Siyakwamukela!", |
|
||||||
"hibernate": "ezilala ubusika bonke", |
|
||||||
"random": "Random", |
|
||||||
"reset": "Hlela", |
|
||||||
"restart": "Restart", |
|
||||||
"shutdown": "Vala shaqa", |
|
||||||
"suspend": "Alime" |
|
||||||
} |
|
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 219 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 59 KiB |
@ -1,257 +0,0 @@ |
|||||||
<!DOCTYPE html> |
|
||||||
<!-- |
|
||||||
~ |
|
||||||
~ Copyright © 2015-2017 Antergos |
|
||||||
~ |
|
||||||
~ index.html |
|
||||||
~ |
|
||||||
~ This file is part of Web Greeter |
|
||||||
~ |
|
||||||
~ web-greeter is free software: you can redistribute it and/or modify |
|
||||||
~ it under the terms of the GNU General Public License as published by |
|
||||||
~ the Free Software Foundation, either version 3 of the License, |
|
||||||
~ or any later version. |
|
||||||
~ |
|
||||||
~ web-greeter is distributed in the hope that it will be useful, |
|
||||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
~ GNU General Public License for more details. |
|
||||||
~ |
|
||||||
~ The following additional terms are in effect as per Section 7 of the license: |
|
||||||
~ |
|
||||||
~ The preservation of all legal notices and author attributions in |
|
||||||
~ the material or in the Appropriate Legal Notices displayed |
|
||||||
~ by works containing it is required. |
|
||||||
~ |
|
||||||
~ You should have received a copy of the GNU General Public License |
|
||||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
--> |
|
||||||
|
|
||||||
<html lang="en"> |
|
||||||
|
|
||||||
<head> |
|
||||||
<meta charset="utf-8"> |
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
||||||
<title>LightDM Web Greeter</title> |
|
||||||
|
|
||||||
<!--For testing the theme in a web browser --> |
|
||||||
<!--<script type="text/javascript" src="../_vendor/js/mock.js"></script>--> |
|
||||||
|
|
||||||
<!-- Vendor CSS --> |
|
||||||
<link rel="stylesheet" type="text/css" href="../../_vendor/css/bootswatch-paper.bootstrap.min.css"/> |
|
||||||
<link rel="stylesheet" type="text/css" href="../../_vendor/fonts/font-awesome/font-awesome.min.css"/> |
|
||||||
|
|
||||||
<!-- Theme's CSS --> |
|
||||||
<link rel="stylesheet" type="text/css" href="css/style.css"> |
|
||||||
|
|
||||||
<!-- Vendor JavaScript --> |
|
||||||
<script src="../../_vendor/js/jquery.min.js"></script> |
|
||||||
<script src="../../_vendor/js/bootstrap.min.js"></script> |
|
||||||
<script src="../../_vendor/js/js.cookie.min.js"></script> |
|
||||||
|
|
||||||
<!-- Theme JavaScript --> |
|
||||||
<script src="js/translations.js"></script> |
|
||||||
<script src="js/greeter.js"></script> |
|
||||||
|
|
||||||
</head> |
|
||||||
|
|
||||||
<body> |
|
||||||
|
|
||||||
<!-- BG Switcher --> |
|
||||||
<a id="bg-switch-toggle" href="#" class="btn btn-primary btn-lg toggle close_wallpapers"> |
|
||||||
<i class="fa fa-bars"></i> |
|
||||||
</a> |
|
||||||
|
|
||||||
<div id="bg-switch-wrapper"> |
|
||||||
<div class="bg-switch-container"> |
|
||||||
<a id="bg-switch-close" href="#" class="btn btn-default btn-lg pull-right toggle close_wallpapers"> |
|
||||||
<i class="fa fa-times"></i> |
|
||||||
</a> |
|
||||||
|
|
||||||
<div class="bg-switch"> |
|
||||||
<h3 data-i18n="background_options">${i18n}</h3> |
|
||||||
<div class="clearfix"></div> |
|
||||||
<div class="bgs"> |
|
||||||
<a href="#" data-img="random" class="bg clearfix"> |
|
||||||
<div class="random"> |
|
||||||
<span data-i18n="random">${i18n}</span> |
|
||||||
</div> |
|
||||||
</a> |
|
||||||
<!--Background thumbnails will be added here dynamically --> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<!-- /BG Switcher Sidebar --> |
|
||||||
|
|
||||||
<!-- Full Page Image Header Area --> |
|
||||||
<div id="top" class="header"> |
|
||||||
<div class="login-wrapper"> |
|
||||||
<div class="login-cell"> |
|
||||||
<div class="container"> |
|
||||||
<div class="row"> |
|
||||||
<div class="col-md-6 col-md-offset-3"> |
|
||||||
<!-- Login Dialog --> |
|
||||||
<div id="login" class="panel panel-default login-box"> |
|
||||||
<div class="panel-heading text-center"> |
|
||||||
<span class="pull-left"> |
|
||||||
<img src="img/antergos.png" data-greeter-config="logo" alt="Antergos"/> |
|
||||||
</span> <span class="welcome"></span> |
|
||||||
<span id="hostname" class="pull-right"></span> |
|
||||||
</div> |
|
||||||
<div id="panelfix" class="panel-body panel-shadow"> |
|
||||||
<div class="panel-group" id="accordion"> |
|
||||||
<div class="panel panel-default panel-shadow time-panel"> |
|
||||||
|
|
||||||
<div id="collapseOne" class="panel-collapse collapse in"> |
|
||||||
<div id="timewrap" class="panel-body panel-shadow time-panel text-center"> |
|
||||||
<a id="trigger" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"> |
|
||||||
<!-- Clock Widget --> |
|
||||||
<span id="current_time" class="time text-center"></span> |
|
||||||
<i class="fa fa-toggle-up"></i> </a> |
|
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
<div class="panel panel-default panel-shadow panel-flow"> |
|
||||||
<!-- User Selection Widget --> |
|
||||||
<div id="collapseTwo" class="panel-collapse panel-shadow collapse"> |
|
||||||
<div id="list-group" class="panel-body panel-shadow panel-wrap"> |
|
||||||
|
|
||||||
<div class="user-wrap2"> |
|
||||||
|
|
||||||
<div id="user-list2" class="list-group"></div> |
|
||||||
<a id="user-target2" class="user-toggle cancel_auth" data-toggle="collapse" data-parent="#accordion" href="#collapseOne"> |
|
||||||
<i class="fa fa-toggle-down" style="position:absolute;"></i> |
|
||||||
</a> |
|
||||||
|
|
||||||
</div> |
|
||||||
<!-- Password Input --> |
|
||||||
<div id="passwordArea" class="password"> |
|
||||||
<table border="0" align="center"> |
|
||||||
<tr> |
|
||||||
<td> |
|
||||||
<div class="input-group"> |
|
||||||
<input id="passwordField" title="input password" type="password" class="password form-control"/> |
|
||||||
|
|
||||||
<div class="input-group-btn"> |
|
||||||
<div class="btn-group"> |
|
||||||
<button class="btn btn-primary submit_passwd" type="button" title="submit password"> |
|
||||||
<i class="fa fa-sign-in"></i> |
|
||||||
</button> |
|
||||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" title="show options menu"> |
|
||||||
<i class="fa fa-caret-down"></i> |
|
||||||
</button> |
|
||||||
<ul class="dropdown-menu pull-right" title="options menu"> |
|
||||||
<li> |
|
||||||
<a href="#" class="cancel_auth" data-i18n="cancel" title="cancel"> |
|
||||||
<i class="fa fa-times"></i> ${i18n}</a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a href="#" onclick="$(document.location.reload(true))" data-i18n="reset" title="reset"> |
|
||||||
<i class="fa fa-refresh"></i> ${i18n}</a> |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
<a href="#" data-i18n="debug_log" title="debug log"> |
|
||||||
<i class="fa fa-bug"></i> ${i18n}</a> |
|
||||||
</li> |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
|
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<div id="timerArea" class="timer"> |
|
||||||
<i class="fa fa-spinner"></i> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<!-- Status Area --> |
|
||||||
<div id="statusArea" class="status"> |
|
||||||
<div class="alert alert-dismissible alert-danger fade in"> |
|
||||||
<button type="button" class="close cancel_auth" data-dismiss="alert" aria-hidden="true"> ×</button> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="panel-footer"> |
|
||||||
<div id="session-list" class="btn-group pull-left hidden"> |
|
||||||
<button type="button" class="btn btn-default selected"></button> |
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
||||||
<span class="fa fa-caret-down"></span></button> |
|
||||||
<ul id="sessions" class="dropdown-menu"></ul> |
|
||||||
</div> |
|
||||||
<div id="actionsArea" class="btn-group pull-right"></div> |
|
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div id="logArea" class="log"></div> |
|
||||||
|
|
||||||
<div class="modal"> |
|
||||||
<div class="modal-dialog modal-sm"> |
|
||||||
<div class="modal-content"> |
|
||||||
<div class="modal-header"> |
|
||||||
<button type="button" class="close fa fa-close" data-dismiss="modal" aria-hidden="true"></button> |
|
||||||
<h4 class="modal-title" data-i18n="confirm_system_action">${i18n}</h4> |
|
||||||
</div> |
|
||||||
<!--<div class="modal-body"> |
|
||||||
</div>--> |
|
||||||
<div class="modal-footer"> |
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal" data-i18n="cancel">${i18n}</button> |
|
||||||
<button type="button" class="btn btn-primary"></button> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<!-- Custom JavaScript for the BG Switcher & Clock Toggle --> |
|
||||||
<script> |
|
||||||
// TODO: Move this stuff into greeter.js |
|
||||||
$('#bg-switch-wrapper').on('transitionend', function() { |
|
||||||
if ( $(this).hasClass('active') ) { |
|
||||||
$('#bg-switch-toggle').hide(0); |
|
||||||
$('#bg-switch-close').show(0); |
|
||||||
} else { |
|
||||||
$('#bg-switch-close').hide(100); |
|
||||||
$('#bg-switch-toggle').show(100); |
|
||||||
} |
|
||||||
}); |
|
||||||
$( "#bg-switch-close, #bg-switch-toggle" ).click( function( e ) { |
|
||||||
e.preventDefault(); |
|
||||||
$('#bg-switch-wrapper').toggleClass( "active" ); |
|
||||||
} ); |
|
||||||
|
|
||||||
$( '#collapseTwo' ).on( 'shown.bs.collapse', function() { |
|
||||||
$(this).find( 'a' ).filter( ':not(.dropdown-menu *)' ).each( function( index ) { |
|
||||||
$( this ).attr( 'tabindex', index + 1 ); |
|
||||||
} ); |
|
||||||
} ); |
|
||||||
$( '#collapseTwo' ).on( 'hidden.bs.collapse', function() { |
|
||||||
$(this).find( 'a' ).filter( ':not(.dropdown-menu *)' ).each( function( index ) { |
|
||||||
$( this ).attr( 'tabindex', -1 ); |
|
||||||
} ); |
|
||||||
} ); |
|
||||||
|
|
||||||
</script> |
|
||||||
|
|
||||||
</body> |
|
||||||
|
|
||||||
</html> |
|
@ -1,894 +0,0 @@ |
|||||||
/* |
|
||||||
* greeter.js |
|
||||||
* |
|
||||||
* Copyright © 2015-2017 Antergos |
|
||||||
* |
|
||||||
* This file is part of Web Greeter |
|
||||||
* |
|
||||||
* Web Greeter is free software: you can redistribute it and/or modify |
|
||||||
* it under the terms of the GNU General Public License as published by |
|
||||||
* the Free Software Foundation, either version 3 of the License, |
|
||||||
* or any later version. |
|
||||||
* |
|
||||||
* Web Greeter is distributed in the hope that it will be useful, |
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
* GNU General Public License for more details. |
|
||||||
* |
|
||||||
* The following additional terms are in effect as per Section 7 of the license: |
|
||||||
* |
|
||||||
* The preservation of all legal notices and author attributions in |
|
||||||
* the material or in the Appropriate Legal Notices displayed |
|
||||||
* by works containing it is required. |
|
||||||
* |
|
||||||
* You should have received a copy of the GNU General Public License |
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* This is used to access our classes from within jQuery callbacks. |
|
||||||
*/ |
|
||||||
let _self = null, |
|
||||||
_bg_self = null, |
|
||||||
_config = null; |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Capitalize a string. |
|
||||||
* |
|
||||||
* @returns {string} |
|
||||||
*/ |
|
||||||
String.prototype.capitalize = function () { |
|
||||||
return this.charAt( 0 ).toUpperCase() + this.slice( 1 ); |
|
||||||
}; |
|
||||||
|
|
||||||
|
|
||||||
function is_empty( value ) { |
|
||||||
if ( value instanceof Array ) { |
|
||||||
return value.length === 0; |
|
||||||
} |
|
||||||
|
|
||||||
return ['', null, 'null', undefined, 'undefined', false, 'false'].includes( value ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Add text to the debug log element (accessible from the login screen). |
|
||||||
* |
|
||||||
* @param {string} text - To be added to the log. |
|
||||||
*/ |
|
||||||
function log( text ) { |
|
||||||
if ( _config.debug ) { |
|
||||||
console.debug( text ); |
|
||||||
} |
|
||||||
|
|
||||||
$( '#logArea' ).append( `${text}<br/>` ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* The base class for all theme components. It handles accessing cached settings in |
|
||||||
* local storage and also initializes config values. |
|
||||||
*/ |
|
||||||
class ThemeConfig { |
|
||||||
|
|
||||||
constructor() { |
|
||||||
if ( null !== _config ) { |
|
||||||
return _config; |
|
||||||
} |
|
||||||
|
|
||||||
_config = theme_utils.bind_this( this ); |
|
||||||
|
|
||||||
this.debug = false; |
|
||||||
this.lang = window.navigator.language.split( '-' )[0].toLowerCase(); |
|
||||||
this.translations = window.ant_translations; |
|
||||||
this.$log_container = $( '#logArea' ); |
|
||||||
this.cache_backend = ''; |
|
||||||
|
|
||||||
this.setup_cache_backend(); |
|
||||||
|
|
||||||
return _config; |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Determine which background image should be displayed and apply it. |
|
||||||
* |
|
||||||
* @return {Promise} |
|
||||||
*/ |
|
||||||
initialize() { |
|
||||||
return new Promise( resolve => this.init_config_values( resolve ) ); |
|
||||||
} |
|
||||||
|
|
||||||
setup_cache_backend() { |
|
||||||
// Do we have access to localStorage?
|
|
||||||
try { |
|
||||||
localStorage.setItem( 'testing', 'test' ); |
|
||||||
|
|
||||||
if ( 'test' === localStorage.getItem( 'testing' ) ) { |
|
||||||
// We have access to localStorage
|
|
||||||
this.cache_backend = 'localStorage'; |
|
||||||
} |
|
||||||
|
|
||||||
localStorage.removeItem( 'testing' ); |
|
||||||
|
|
||||||
} catch ( err ) { |
|
||||||
// We do not have access to localStorage. Use cookies instead.
|
|
||||||
log( err ); |
|
||||||
log( 'INFO: localStorage is not available. Using cookies for cache backend.' ); |
|
||||||
this.cache_backend = 'Cookies'; |
|
||||||
} |
|
||||||
|
|
||||||
log( `AntergosThemeUtils.cache_backend is: ${this.cache_backend}` ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Get a key's value from localStorage. Keys can have two or more parts. |
|
||||||
* For example: "ant:user:john:session". |
|
||||||
* |
|
||||||
* @param {...string} key_parts Strings that are combined to form the key. |
|
||||||
* |
|
||||||
* @return {string|null} |
|
||||||
*/ |
|
||||||
_get( ...key_parts ) { |
|
||||||
let key = `ant`, |
|
||||||
value = null; |
|
||||||
|
|
||||||
for ( let part of key_parts ) { |
|
||||||
key += `:${part}`; |
|
||||||
} |
|
||||||
|
|
||||||
if ( 'localStorage' === this.cache_backend ) { |
|
||||||
value = localStorage.getItem( key ); |
|
||||||
|
|
||||||
} else if ( 'Cookies' === this.cache_backend ) { |
|
||||||
value = Cookies.get( key ) || null; |
|
||||||
} |
|
||||||
|
|
||||||
log( `ThemeSettings._get() key: ${key} value is: ${value}` ); |
|
||||||
|
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Set a key's value in localStorage. Keys can have two or more parts. |
|
||||||
* For example: "ant:user:john:session". |
|
||||||
* |
|
||||||
* @param {string} value The value to set. |
|
||||||
* @param {...string} key_parts Strings that are combined to form the key. |
|
||||||
* |
|
||||||
* @return {string} Always returns `value` (regardless of whether it was set successfully). |
|
||||||
*/ |
|
||||||
_set( value, ...key_parts ) { |
|
||||||
let key = `ant`; |
|
||||||
|
|
||||||
for ( let part of key_parts ) { |
|
||||||
key += `:${part}`; |
|
||||||
} |
|
||||||
|
|
||||||
log( `ThemeSettings._set() called with key: ${key} and value: ${value}` ); |
|
||||||
|
|
||||||
if ( 'localStorage' === this.cache_backend ) { |
|
||||||
localStorage.setItem( key, value ); |
|
||||||
|
|
||||||
} else if ( 'Cookies' === this.cache_backend ) { |
|
||||||
Cookies.set( key, value ); |
|
||||||
} |
|
||||||
|
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Get some values from `web-greeter.conf` and save them for later. |
|
||||||
* |
|
||||||
* @param {Promise.resolve} callback |
|
||||||
*/ |
|
||||||
init_config_values( callback ) { |
|
||||||
if ( 'undefined' === typeof( greeter_config ) ) { |
|
||||||
window.greeter_config = { branding: {}, greeter: {} }; |
|
||||||
} |
|
||||||
|
|
||||||
this.logo = greeter_config.branding.logo || 'img/antergos.png'; |
|
||||||
this.user_image = greeter_config.branding.user_image || 'img/antergos-logo-user.png'; |
|
||||||
this.background_images_dir = greeter_config.branding.background_images_dir || '/usr/share/backgrounds'; |
|
||||||
this.debug = greeter_config.greeter.debug_mode || false; |
|
||||||
this.background_images = this._get( 'background_manager', 'background_images' ); |
|
||||||
this.images_cache_expires = moment.unix( parseInt( this._get( 'background_manager', 'cache_expires' ) ) ); |
|
||||||
|
|
||||||
let expired = ( null === this.background_images || ! this.images_cache_expires.isValid() || moment().isAfter( this.images_cache_expires ) ); |
|
||||||
|
|
||||||
if ( this.background_images && this.background_images.length > 0 && ! expired ) { |
|
||||||
this.background_images = JSON.parse( this.background_images ); |
|
||||||
return callback(); |
|
||||||
} |
|
||||||
|
|
||||||
theme_utils.dirlist( this.background_images_dir, true, result => { |
|
||||||
this.cache_background_images( result ); |
|
||||||
return callback(); |
|
||||||
} ); |
|
||||||
} |
|
||||||
|
|
||||||
cache_background_images( result ) { |
|
||||||
this.background_images = result; |
|
||||||
|
|
||||||
if ( is_empty( this.background_images ) ) { |
|
||||||
return; |
|
||||||
} |
|
||||||
|
|
||||||
this._set( JSON.stringify( this.background_images ), 'background_manager', 'background_images' ); |
|
||||||
|
|
||||||
let expires = moment().add( 7, 'days' ).unix().toString(); |
|
||||||
this.images_cache_expires = this._set( expires, 'background_manager', 'cache_expires' ); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* This class handles the theme's background switcher. |
|
||||||
*/ |
|
||||||
class BackgroundManager { |
|
||||||
|
|
||||||
constructor() { |
|
||||||
if ( null !== _bg_self ) { |
|
||||||
return _bg_self; |
|
||||||
} |
|
||||||
|
|
||||||
_bg_self = theme_utils.bind_this( this ); |
|
||||||
|
|
||||||
this.current_background = _config._get( 'background_manager', 'current_background' ); |
|
||||||
this.random_background = _config._get( 'background_manager', 'random_background' ); |
|
||||||
|
|
||||||
if ( is_empty( _config.background_images ) ) { |
|
||||||
log( 'BackgroundManager: [ERROR] No background images detected.' ); |
|
||||||
|
|
||||||
$( '.header' ).fadeTo( 300, 0.5, function () { |
|
||||||
$( '.header' ).css( 'background-image', 'url(img/fallback_bg.jpg)' ); |
|
||||||
} ).fadeTo( 300, 1 ); |
|
||||||
} |
|
||||||
|
|
||||||
return _bg_self; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Determine which background image should be displayed and apply it. |
|
||||||
* |
|
||||||
* @return {Promise} |
|
||||||
*/ |
|
||||||
initialize() { |
|
||||||
return new Promise( (resolve, reject) => { |
|
||||||
if ( is_empty( _bg_self.current_background ) ) { |
|
||||||
_bg_self.random_background = _config._set( 'true', 'background_manager', 'random_background' ); |
|
||||||
} |
|
||||||
|
|
||||||
if ( 'true' === _bg_self.random_background ) { |
|
||||||
_bg_self.current_background = _config._set( _bg_self.get_random_image(), 'background_manager', 'current_background' ); |
|
||||||
} |
|
||||||
|
|
||||||
return _bg_self.do_background( resolve ); |
|
||||||
}); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Sets the background image to the value of {@link this.current_background}. |
|
||||||
* |
|
||||||
* @param {?Promise.resolve} resolve |
|
||||||
*/ |
|
||||||
do_background( resolve = null ) { |
|
||||||
let background = _bg_self.current_background, |
|
||||||
tpl = background.startsWith( 'url(' ) ? background : `url(${background})`; |
|
||||||
|
|
||||||
$( '.header' ).css( 'background-image', tpl ); |
|
||||||
|
|
||||||
if ( null !== resolve ) { |
|
||||||
return resolve(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Get a random background image from our images array. |
|
||||||
* |
|
||||||
* @returns {string} The absolute path to a background image. |
|
||||||
*/ |
|
||||||
get_random_image() { |
|
||||||
let random_bg; |
|
||||||
|
|
||||||
if ( is_empty( _config.background_images ) ) { |
|
||||||
return 'img/fallback_bg.jpg'; |
|
||||||
} |
|
||||||
|
|
||||||
random_bg = Math.floor( Math.random() * _config.background_images.length ); |
|
||||||
let image = _config.background_images[random_bg]; |
|
||||||
|
|
||||||
return image; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Setup the background switcher widget. |
|
||||||
*/ |
|
||||||
setup_background_thumbnails() { |
|
||||||
if ( _config.background_images && _config.background_images.length ) { |
|
||||||
let current_bg_url = `url(${this.current_background})`, |
|
||||||
$random_thumbnail = $( '[data-img="random"]' ), |
|
||||||
$thumbs_container = $( '.bgs' ); |
|
||||||
|
|
||||||
// TODO: Implement some form of pagination
|
|
||||||
if ( _config.background_images.length > 100 ) { |
|
||||||
_config.background_images = _config.background_images.splice( 0, 100 ); |
|
||||||
} |
|
||||||
|
|
||||||
$random_thumbnail.on( 'click', event => this.background_selected_handler(event) ); |
|
||||||
|
|
||||||
for ( let image_file of _config.background_images ) { |
|
||||||
let $link = $( '<a href="#"><div>' ), |
|
||||||
$img_el = $link.children( 'div' ), |
|
||||||
img_url = `url(web-greeter://${image_file})`; |
|
||||||
|
|
||||||
if ( image_file === this.current_background || img_url === current_bg_url ) { |
|
||||||
$link.addClass( 'active' ); |
|
||||||
} |
|
||||||
|
|
||||||
$img_el.css( 'background-image', img_url ); |
|
||||||
|
|
||||||
$link.addClass( 'bg clearfix' ).attr( 'data-img', img_url ); |
|
||||||
$link.appendTo( $thumbs_container ).on( 'click', event => this.background_selected_handler(event) ); |
|
||||||
} |
|
||||||
|
|
||||||
if ( ! $( '.bg.active' ).length ) { |
|
||||||
$random_thumbnail.addClass( 'active' ); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Handle background image selected event. |
|
||||||
* |
|
||||||
* @param {Object} event jQuery event object. |
|
||||||
*/ |
|
||||||
background_selected_handler( event ) { |
|
||||||
let $target = $( event.target ), |
|
||||||
image = event.target.parentElement.dataset.img |
|
||||||
|
|
||||||
$( '.bg.active' ).removeClass( 'active' ); |
|
||||||
$target.addClass( 'active' ); |
|
||||||
|
|
||||||
if ( 'random' === image ) { |
|
||||||
_bg_self.random_background = _config._set( 'true', 'background_manager', 'random_background' ); |
|
||||||
_bg_self.current_background = _bg_self.get_random_image(); |
|
||||||
} else { |
|
||||||
_bg_self.random_background = _config._set( 'false', 'background_manager', 'random_background' ); |
|
||||||
_bg_self.current_background = image; |
|
||||||
} |
|
||||||
|
|
||||||
_config._set( image, 'background_manager', 'current_background' ); |
|
||||||
this.do_background(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* This is the theme's main class object. It contains most of the theme's logic. |
|
||||||
*/ |
|
||||||
class Theme { |
|
||||||
|
|
||||||
constructor() { |
|
||||||
if ( null !== _self ) { |
|
||||||
return _self; |
|
||||||
} |
|
||||||
|
|
||||||
_self = theme_utils.bind_this( this ); |
|
||||||
|
|
||||||
this.tux = 'img/antergos-logo-user.png'; |
|
||||||
this.user_list_visible = false; |
|
||||||
this.auth_pending = false; |
|
||||||
this.showing_message = false; |
|
||||||
this.selected_user = null; |
|
||||||
this.$user_list = $( '#user-list2' ); |
|
||||||
this.$session_list = $( '#sessions' ); |
|
||||||
this.$clock_container = $( '#collapseOne' ); |
|
||||||
this.$clock = $( '#current_time' ); |
|
||||||
this.$actions_container = $( '#actionsArea' ); |
|
||||||
this.$msg_area_container = $( '#statusArea' ); |
|
||||||
this.$alert_msg_tpl = this.$msg_area_container.children( '.alert-dismissible' ).clone(); |
|
||||||
|
|
||||||
this.background_manager = new BackgroundManager(); |
|
||||||
|
|
||||||
this.background_manager.initialize().then( () => this.initialize() ); |
|
||||||
|
|
||||||
return _self; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Initialize the theme. |
|
||||||
*/ |
|
||||||
initialize() { |
|
||||||
this.prepare_translations(); |
|
||||||
this.do_static_translations(); |
|
||||||
this.initialize_clock(); |
|
||||||
this.prepare_login_panel_header(); |
|
||||||
this.prepare_system_action_buttons(); |
|
||||||
|
|
||||||
$( '#login' ).css( 'opacity', '1' ); |
|
||||||
|
|
||||||
this.prepare_user_list(); |
|
||||||
this.prepare_session_list(); |
|
||||||
this.register_callbacks(); |
|
||||||
this.background_manager.setup_background_thumbnails(); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Register callbacks for the LDM Greeter as well as any others that haven't |
|
||||||
* been registered elsewhere. |
|
||||||
*/ |
|
||||||
register_callbacks() { |
|
||||||
this.$user_list |
|
||||||
.parents( '.collapse' ) |
|
||||||
.on( 'shown.bs.collapse hidden.bs.collapse', event => this.user_list_collapse_handler(event) ); |
|
||||||
|
|
||||||
$( document ).on( 'keydown', event => this.key_press_handler(event) ); |
|
||||||
$( '.cancel_auth:not(.alert .cancel_auth)' ).on( 'click', event => this.cancel_authentication(event) ); |
|
||||||
|
|
||||||
$( '.submit_passwd' ).on( 'click', event => this.submit_password(event) ); |
|
||||||
$( '[data-i18n="debug_log"]' ).on( 'click', event => this.show_log_handler(event) ); |
|
||||||
|
|
||||||
lightdm.show_prompt.connect( (prompt, type) => this.show_prompt(prompt, type) ); |
|
||||||
lightdm.show_message.connect( (msg, type) => this.show_message(msg, type) ); |
|
||||||
|
|
||||||
window.start_authentication = event => this.start_authentication(event); |
|
||||||
window.cancel_authentication = event => this.cancel_authentication(event); |
|
||||||
|
|
||||||
lightdm.authentication_complete.connect( () => this.authentication_complete() ); |
|
||||||
lightdm.autologin_timer_expired.connect( event => this.cancel_authentication(event) ); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Initialize the user list. |
|
||||||
*/ |
|
||||||
prepare_user_list() { |
|
||||||
let template; |
|
||||||
|
|
||||||
// Loop through the array of LightDMUser objects to create our user list.
|
|
||||||
for ( let user of lightdm.users ) { |
|
||||||
let last_session = _config._get( 'user', user.username, 'session' ), |
|
||||||
image_src = ( user.image && user.image.length ) ? user.image : _config.user_image; |
|
||||||
|
|
||||||
if ( null === last_session ) { |
|
||||||
// This user has never logged in before let's enable the system's default session.
|
|
||||||
last_session = _config._set( lightdm.default_session, 'user', user.username, 'session' ); |
|
||||||
} |
|
||||||
|
|
||||||
log( `Last session for ${user.username} was: ${last_session}` ); |
|
||||||
|
|
||||||
template = ` |
|
||||||
<a href="#" id="${user.username}" class="list-group-item ${user.username}" data-session="${last_session}"> |
|
||||||
<img src="${image_src}" class="img-circle" alt="${user.display_name}" /> |
|
||||||
<span>${user.display_name}</span> |
|
||||||
<span class="badge"><i class="fa fa-check"></i></span> |
|
||||||
</a>`; |
|
||||||
|
|
||||||
// Insert the template into the DOM and then register event handlers so we don't
|
|
||||||
// have to iterate over the users again later.
|
|
||||||
$( template ) |
|
||||||
.appendTo( this.$user_list ) |
|
||||||
.on( 'click', event => this.start_authentication(event) ) |
|
||||||
.on( 'error.antergos', err => this.user_image_error_handler(err) ); |
|
||||||
|
|
||||||
} // END for ( let user of lightdm.users )
|
|
||||||
|
|
||||||
if ( this.$user_list.children().length > 3 ) { |
|
||||||
// Make the user list two columns instead of one.
|
|
||||||
this.$user_list.css( 'column-count', '2' ).parent().css( 'max-width', '85%' ); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Initialize the session selection dropdown. |
|
||||||
*/ |
|
||||||
prepare_session_list() { |
|
||||||
// Loop through the array of LightDMSession objects to create our session list.
|
|
||||||
for ( let session of lightdm.sessions ) { |
|
||||||
let css_class = session.name.replace( / /g, '' ), |
|
||||||
template; |
|
||||||
|
|
||||||
log( `Adding ${session.name} to the session list...` ); |
|
||||||
|
|
||||||
template = ` |
|
||||||
<li> |
|
||||||
<a href="#" data-session-id="${session.key}" class="${css_class}">${session.name}</a> |
|
||||||
</li>`; |
|
||||||
|
|
||||||
$( template ) |
|
||||||
.appendTo( this.$session_list ) |
|
||||||
.on( 'click', event => this.session_toggle_handler(event) ); |
|
||||||
|
|
||||||
} // END for (var session of lightdm.sessions)
|
|
||||||
|
|
||||||
$( '.dropdown-toggle' ).dropdown(); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Initialize the system action buttons |
|
||||||
*/ |
|
||||||
prepare_system_action_buttons() { |
|
||||||
let template, |
|
||||||
actions = { |
|
||||||
shutdown: 'power-off', |
|
||||||
hibernate: 'asterisk', |
|
||||||
suspend: 'arrow-down', |
|
||||||
restart: 'refresh' |
|
||||||
}; |
|
||||||
|
|
||||||
for ( let action of Object.keys( actions ) ) { |
|
||||||
let cmd = `can_${action}`; |
|
||||||
|
|
||||||
template = ` |
|
||||||
<a href="#" id="${action}" class="btn btn-default ${action}" data-toggle="tooltip" data-placement="top" title="${action.capitalize()}" data-container="body"> |
|
||||||
<i class="fa fa-${actions[action]}"></i> |
|
||||||
</a>`; |
|
||||||
|
|
||||||
if ( ! lightdm[cmd] ) { |
|
||||||
// This action is either not available on this system or we don't have permission to use it.
|
|
||||||
continue; |
|
||||||
} |
|
||||||
|
|
||||||
$( template ) |
|
||||||
.appendTo( this.$actions_container ) |
|
||||||
.on( 'click', event => this.system_action_handler(event) ); |
|
||||||
|
|
||||||
} // END for (let action of actions)
|
|
||||||
|
|
||||||
$( '[data-toggle=tooltip]' ).tooltip(); |
|
||||||
$( '.modal' ).modal( { show: false } ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Setup the clock widget. |
|
||||||
*/ |
|
||||||
initialize_clock() { |
|
||||||
this.$clock.html( theme_utils.get_current_localized_time() ); |
|
||||||
|
|
||||||
setInterval( () => _self.$clock.html( theme_utils.get_current_localized_time() ), 60000 ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Show the user list if its not already shown. This is used to allow the user to |
|
||||||
* display the user list by pressing Enter or Spacebar. |
|
||||||
*/ |
|
||||||
show_user_list( show = true ) { |
|
||||||
let delay = 0; |
|
||||||
|
|
||||||
if ( false === show ) { |
|
||||||
return; |
|
||||||
} |
|
||||||
|
|
||||||
if ( this.$clock_container.hasClass( 'in' ) ) { |
|
||||||
delay = 500; |
|
||||||
|
|
||||||
$( '#trigger' ).trigger( 'click' ); |
|
||||||
} |
|
||||||
|
|
||||||
if ( this.$user_list.children().length <= 1 ) { |
|
||||||
setTimeout( () => this.$user_list.find( 'a' ).trigger( 'click', this ), delay ); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
prepare_login_panel_header() { |
|
||||||
let greeting = _config.translations.greeting ? _config.translations.greeting : 'Welcome!', |
|
||||||
logo = is_empty( _config.logo ) ? 'img/antergos.png' : _config.logo; |
|
||||||
|
|
||||||
$( '.welcome' ).text( greeting ); |
|
||||||
$( '#hostname' ).append( lightdm.hostname ); |
|
||||||
$( '[data-greeter-config="logo"]' ).attr( 'src', logo ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
prepare_translations() { |
|
||||||
if ( ! _config.translations.hasOwnProperty( this.lang ) ) { |
|
||||||
this.lang = 'en'; |
|
||||||
|
|
||||||
for ( let lang of window.navigator.languages ) { |
|
||||||
if ( _config.translations.hasOwnProperty( lang ) ) { |
|
||||||
this.lang = lang; |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
_config.translations = _config.translations[ this.lang ]; |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Replace '${i18n}' with translated string for all elements that |
|
||||||
* have the data-i18n attribute. This is for elements that are not generated |
|
||||||
* dynamically (they can be found in index.html). |
|
||||||
*/ |
|
||||||
do_static_translations() { |
|
||||||
$( '[data-i18n]' ).each( function () { |
|
||||||
let key = $( this ).attr( 'data-i18n' ), |
|
||||||
html = $( this ).html(), |
|
||||||
translated = _config.translations[ key ], |
|
||||||
new_html = html.replace( '${i18n}', translated ); |
|
||||||
|
|
||||||
$( this ).html( new_html ); |
|
||||||
} ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Start the authentication process for the selected user. |
|
||||||
* |
|
||||||
* @param {object} event - jQuery.Event object from 'click' event. |
|
||||||
*/ |
|
||||||
start_authentication( event ) { |
|
||||||
let user_id = $( event.target ).attr( 'id' ), |
|
||||||
selector = `.${user_id}`, |
|
||||||
user_session_cached = _config._get( 'user', user_id, 'session' ), |
|
||||||
user_session = is_empty( user_session_cached ) ? lightdm.default_session : user_session_cached; |
|
||||||
|
|
||||||
if ( this.auth_pending || null !== this.selected_user ) { |
|
||||||
lightdm.cancel_authentication(); |
|
||||||
log( `Authentication cancelled for ${this.selected_user}` ); |
|
||||||
this.selected_user = null; |
|
||||||
this.auth_pending = false; |
|
||||||
} |
|
||||||
|
|
||||||
log( `Starting authentication for ${user_id}.` ); |
|
||||||
|
|
||||||
this.selected_user = user_id; |
|
||||||
|
|
||||||
if ( this.$user_list.children().length > 3 ) { |
|
||||||
// Reset columns since only the selected user is visible right now.
|
|
||||||
this.$user_list.css( 'column-count', 'initial' ).parent().css( 'max-width', '50%' ); |
|
||||||
} |
|
||||||
|
|
||||||
$( selector ).addClass( 'hovered' ).siblings().hide(); |
|
||||||
$( '.fa-toggle-down' ).hide(); |
|
||||||
|
|
||||||
log( `Session for ${user_id} is ${user_session}` ); |
|
||||||
|
|
||||||
$( `[data-session-id="${user_session}"]` ).parent().trigger( 'click', this ); |
|
||||||
|
|
||||||
$( '#session-list' ).removeClass( 'hidden' ).show(); |
|
||||||
$( '#passwordArea' ).show(); |
|
||||||
$('#passwordField').focus(); |
|
||||||
$( '.dropdown-toggle' ).dropdown(); |
|
||||||
|
|
||||||
this.auth_pending = true; |
|
||||||
|
|
||||||
lightdm.authenticate( user_id ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Cancel the pending authentication. |
|
||||||
* |
|
||||||
* @param {object} event - jQuery.Event object from 'click' event. |
|
||||||
*/ |
|
||||||
cancel_authentication( event ) { |
|
||||||
let selectors = ['#statusArea', '#timerArea', '#passwordArea', '#session-list']; |
|
||||||
|
|
||||||
selectors.forEach( selector => $( selector ).hide() ); |
|
||||||
|
|
||||||
lightdm.cancel_authentication(); |
|
||||||
|
|
||||||
log( 'Cancelled authentication.' ); |
|
||||||
|
|
||||||
this.selected_user = null; |
|
||||||
this.auth_pending = false; |
|
||||||
|
|
||||||
if ( event && $( event.target ).hasClass( 'alert' ) ) { |
|
||||||
/* We were triggered by the authentication failed message being dismissed. |
|
||||||
* Keep the same account selected so user can retry without re-selecting an account. |
|
||||||
*/ |
|
||||||
$( '#collapseTwo .user-wrap2' ).show( () => { |
|
||||||
$( '.list-group-item.hovered' ).trigger( 'click' ); |
|
||||||
} ); |
|
||||||
|
|
||||||
} else { |
|
||||||
if ( this.$user_list.children().length > 3 ) { |
|
||||||
// Make the user list two columns instead of one.
|
|
||||||
this.$user_list.css( 'column-count', '2' ).parent().css( 'max-width', '85%' ); |
|
||||||
} |
|
||||||
|
|
||||||
$( '.hovered' ).removeClass( 'hovered' ).siblings().show(); |
|
||||||
$( '.fa-toggle-down' ).show(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Called when the user attempts to authenticate (submits password). |
|
||||||
* We check to see if the user successfully authenticated and if so tell the LDM |
|
||||||
* Greeter to log them in with the session they selected. |
|
||||||
*/ |
|
||||||
authentication_complete() { |
|
||||||
let selected_session = $( '#session-list .selected' ).attr( 'data-session-id' ), |
|
||||||
err_msg = _config.translations.auth_failed; |
|
||||||
|
|
||||||
this.auth_pending = false; |
|
||||||
|
|
||||||
_config._set( selected_session, 'user', lightdm.authentication_user, 'session' ); |
|
||||||
|
|
||||||
$( '#timerArea' ).hide(); |
|
||||||
|
|
||||||
if ( lightdm.is_authenticated ) { |
|
||||||
// The user entered the correct password. Let's start the session.
|
|
||||||
$( 'body' ).fadeOut( 1000, () => lightdm.start_session( selected_session ) ); |
|
||||||
|
|
||||||
} else { |
|
||||||
// The user did not enter the correct password. Show error message.
|
|
||||||
this.showing_message = true; |
|
||||||
this.show_message( err_msg, 'error' ); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
submit_password( event ) { |
|
||||||
let passwd = $( '#passwordField' ).val(); |
|
||||||
console.log(lightdm.authentication_user); |
|
||||||
|
|
||||||
$( '#passwordArea' ).hide(); |
|
||||||
$( '#timerArea' ).show(); |
|
||||||
|
|
||||||
lightdm.respond( passwd ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
session_toggle_handler( event ) { |
|
||||||
let $session = $( event.target ), |
|
||||||
session_name = $session.text(), |
|
||||||
session_key = $session.attr( 'data-session-id' ); |
|
||||||
|
|
||||||
$session |
|
||||||
.parents( '.btn-group' ) |
|
||||||
.find( '.selected' ) |
|
||||||
.attr( 'data-session-id', session_key ) |
|
||||||
.html( session_name ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
key_press_handler( event ) { |
|
||||||
let action = this.showing_message ? this.dismiss_message : null; |
|
||||||
|
|
||||||
if ( null === action ) { |
|
||||||
switch ( event.which ) { |
|
||||||
case 13: |
|
||||||
if ( this.auth_pending ) { |
|
||||||
action = this.submit_password; |
|
||||||
} else if ( ! this.user_list_visible ) { |
|
||||||
action = this.show_user_list; |
|
||||||
} |
|
||||||
break; |
|
||||||
case 27: |
|
||||||
action = this.auth_pending ? this.cancel_authentication : null; |
|
||||||
break; |
|
||||||
case 32: |
|
||||||
action = ( !this.user_list_visible && !this.auth_pending ) ? this.show_user_list : null; |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
if ( null !== action ) { |
|
||||||
action(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
system_action_handler( event ) { |
|
||||||
let action = $( event.currentTarget ).attr( 'id' ), |
|
||||||
$modal = $( '.modal' ); |
|
||||||
|
|
||||||
$modal |
|
||||||
.find( '.btn-primary' ) |
|
||||||
.text( _config.translations[ action ] ) |
|
||||||
.on( 'click', action, function( event ) { |
|
||||||
$( this ).off( 'click' ); |
|
||||||
$( 'body' ).fadeOut( 1000, () => lightdm[ event.data ]() ); |
|
||||||
} ); |
|
||||||
|
|
||||||
$modal |
|
||||||
.find( '.btn-default' ) |
|
||||||
.on( 'click', function( event ) { |
|
||||||
$( this ).next().off( 'click' ); |
|
||||||
} ); |
|
||||||
|
|
||||||
$modal.modal( 'toggle' ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
user_list_collapse_handler( event ) { |
|
||||||
this.user_list_visible = $( event.target ).hasClass( 'in' ); |
|
||||||
this.show_user_list( this.user_list_visible ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
user_image_error_handler( event ) { |
|
||||||
$( event.target ).off( 'error.antergos' ); |
|
||||||
$( event.target ).attr( 'src', this.tux ); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
show_log_handler( event ) { |
|
||||||
if ( _config.$log_container.is( ':visible' ) ) { |
|
||||||
_config.$log_container.hide(); |
|
||||||
} else { |
|
||||||
_config.$log_container.show(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* LightDM Callback - Show prompt to user. |
|
||||||
* |
|
||||||
* @param text |
|
||||||
* @param type |
|
||||||
*/ |
|
||||||
show_prompt( text, type ) { |
|
||||||
if ( 'password' === type ) { |
|
||||||
$( '#passwordField' ).val( '' ); |
|
||||||
$( '#passwordArea' ).show(); |
|
||||||
$( '#passwordField' ).focus(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* LightDM Callback - Show message to user. |
|
||||||
* |
|
||||||
* @param text |
|
||||||
* @param type |
|
||||||
*/ |
|
||||||
show_message( text, type ) { |
|
||||||
if ( ! text.length ) { |
|
||||||
log( 'show_message() called without a message to show!' ); |
|
||||||
return; |
|
||||||
} |
|
||||||
|
|
||||||
let $msg_container = this.$msg_area_container.children( '.alert-dismissible' ); |
|
||||||
|
|
||||||
if ( ! $msg_container.length ) { |
|
||||||
$msg_container = this.$alert_msg_tpl.clone(); |
|
||||||
$msg_container.appendTo( this.$msg_area_container ); |
|
||||||
} |
|
||||||
|
|
||||||
$msg_container.on( 'closed.bs.alert', event => this.cancel_authentication( event ) ); |
|
||||||
|
|
||||||
$msg_container.html( $msg_container.html() + text ); |
|
||||||
$( '#collapseTwo .user-wrap2' ).hide(); |
|
||||||
this.$msg_area_container.show(); |
|
||||||
} |
|
||||||
|
|
||||||
dismiss_message() { |
|
||||||
this.$msg_area_container |
|
||||||
.children( '.alert-dismissible' ) |
|
||||||
.find('.close') |
|
||||||
.trigger('click'); |
|
||||||
|
|
||||||
this.showing_message = false; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Initialize the theme once the window has loaded. |
|
||||||
*/ |
|
||||||
$( window ).on( 'GreeterReady', () => { |
|
||||||
const config = new ThemeConfig(); |
|
||||||
|
|
||||||
config.initialize().then( () => new Theme() ); |
|
||||||
} ); |
|
File diff suppressed because one or more lines are too long
@ -1,36 +0,0 @@ |
|||||||
{ |
|
||||||
"name": "web-greeter-theme-default", |
|
||||||
"version": "2.2.2", |
|
||||||
"description": "Default theme for LightDM Web Greeter.", |
|
||||||
"homepage": "https://github.com/antergos/web-greeter", |
|
||||||
"main": "index.js", |
|
||||||
"repository": { |
|
||||||
"url": "antergos/web-greeter.git", |
|
||||||
"type": "git" |
|
||||||
}, |
|
||||||
"author": { |
|
||||||
"name": "Antergos Linux Project", |
|
||||||
"email": "dev@antergos.com", |
|
||||||
"url": "https://antergos.com" |
|
||||||
}, |
|
||||||
"license": "GPL-3", |
|
||||||
"bugs": "https://github.com/antergos/web-greeter/issues", |
|
||||||
"config": {}, |
|
||||||
"wg_theme": { |
|
||||||
"display_name": "Default", |
|
||||||
"supports": ["3"], |
|
||||||
"entry_point": "./index.html", |
|
||||||
"styles": [ |
|
||||||
"bootswatch-paper", |
|
||||||
"font-awesome", |
|
||||||
"./css/style.css" |
|
||||||
], |
|
||||||
"scripts": [ |
|
||||||
"jquery", |
|
||||||
"bootstrap", |
|
||||||
"cookie", |
|
||||||
"./js/translations.js", |
|
||||||
"./js/greeter.js" |
|
||||||
] |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue