Copy from monorepo
This commit is contained in:
parent
d7674f5c91
commit
75dd947153
|
@ -1,36 +0,0 @@
|
||||||
# How to Contribute
|
|
||||||
|
|
||||||
Contributions of all kinds are welcome!
|
|
||||||
|
|
||||||
Please visit our [Community Forums](https://community.bitwarden.com/) for general community discussion and the development roadmap.
|
|
||||||
|
|
||||||
Here is how you can get involved:
|
|
||||||
|
|
||||||
- **Request a new feature:** Go to the [Feature Requests category](https://community.bitwarden.com/c/feature-requests/) of the Community Forums. Please search existing feature requests before making a new one
|
|
||||||
- **Write code for a new feature:** Make a new post in the [Github Contributions category](https://community.bitwarden.com/c/github-contributions/) of the Community Forums. Include a description of your proposed contribution, screeshots, and links to any relevant feature requests. This helps get feedback from the community and Bitwarden team members before you start writing code
|
|
||||||
- **Report a bug or submit a bugfix:** Use Github issues and pull requests
|
|
||||||
- **Write documentation:** Submit a pull request to the [Bitwarden help repository](https://github.com/bitwarden/help)
|
|
||||||
- **Help other users:** Go to the [Ask the Bitwarden Community category](https://community.bitwarden.com/c/support/) on the Community Forums
|
|
||||||
- **Translate:** See the localization (l10n) section below
|
|
||||||
|
|
||||||
## Contributor Agreement
|
|
||||||
|
|
||||||
Please sign the [Contributor Agreement](https://cla-assistant.io/bitwarden/desktop) if you intend on contributing to any Github repository. Pull requests cannot be accepted and merged unless the author has signed the Contributor Agreement.
|
|
||||||
|
|
||||||
## Pull Request Guidelines
|
|
||||||
|
|
||||||
- use `npm run lint` and fix any linting suggestions before submitting a pull request
|
|
||||||
- commit any pull requests against the `master` branch
|
|
||||||
- include a link to your Community Forums post
|
|
||||||
|
|
||||||
# Localization (l10n)
|
|
||||||
|
|
||||||
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/bitwarden-desktop/localized.svg)](https://crowdin.com/project/bitwarden-desktop)
|
|
||||||
|
|
||||||
We use a translation tool called [Crowdin](https://crowdin.com) to help manage our localization efforts across many different languages.
|
|
||||||
|
|
||||||
If you are interested in helping translate the Bitwarden desktop app into another language (or make a translation correction), please register an account at Crowdin and join our project here: https://crowdin.com/project/bitwarden-desktop
|
|
||||||
|
|
||||||
If the language that you are interested in translating is not already listed, create a new account on Crowdin, join the project, and contact the project owner (https://crowdin.com/profile/dwbit).
|
|
||||||
|
|
||||||
You can read Crowdin's getting started guide for translators here: https://support.crowdin.com/crowdin-intro/
|
|
674
LICENSE.txt
674
LICENSE.txt
|
@ -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:
|
|
||||||
|
|
||||||
{project} Copyright (C) {year} {fullname}
|
|
||||||
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>.
|
|
36
README.md
36
README.md
|
@ -1,11 +1,7 @@
|
||||||
[![Github Workflow build on master](https://github.com/bitwarden/desktop/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/bitwarden/desktop/actions/workflows/build.yml?query=branch:master)
|
[![Github Workflow build on master](https://github.com/bitwarden/clients/actions/workflows/build-desktop.yml/badge.svg?branch=master)](https://github.com/bitwarden/desktop/actions/workflows/build-desktop.yml?query=branch:master)
|
||||||
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/bitwarden-desktop/localized.svg)](https://crowdin.com/project/bitwarden-desktop)
|
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/bitwarden-desktop/localized.svg)](https://crowdin.com/project/bitwarden-desktop)
|
||||||
[![Join the chat at https://gitter.im/bitwarden/Lobby](https://badges.gitter.im/bitwarden/Lobby.svg)](https://gitter.im/bitwarden/Lobby)
|
[![Join the chat at https://gitter.im/bitwarden/Lobby](https://badges.gitter.im/bitwarden/Lobby.svg)](https://gitter.im/bitwarden/Lobby)
|
||||||
|
|
||||||
> **Archived**
|
|
||||||
>
|
|
||||||
> This repository is archived, please go to https://github.com/bitwarden/clients for future development.
|
|
||||||
|
|
||||||
# Bitwarden Desktop Application
|
# Bitwarden Desktop Application
|
||||||
|
|
||||||
[![Platforms](https://imgur.com/SLv9paA.png "Windows, macOS, and Linux")](https://bitwarden.com/download/)
|
[![Platforms](https://imgur.com/SLv9paA.png "Windows, macOS, and Linux")](https://bitwarden.com/download/)
|
||||||
|
@ -43,33 +39,3 @@ The generated manifests are pre-configured with the production ID for the browse
|
||||||
needs to be added to the `allowed_extensions` section of the manifest. These IDs are generated by the browser, and can be found in the extension settings within the browser.
|
needs to be added to the `allowed_extensions` section of the manifest. These IDs are generated by the browser, and can be found in the extension settings within the browser.
|
||||||
|
|
||||||
It will then be possible to run the desktop application as usual using `npm run electron` and communicate with the browser.
|
It will then be possible to run the desktop application as usual using `npm run electron` and communicate with the browser.
|
||||||
|
|
||||||
# We're Hiring!
|
|
||||||
|
|
||||||
Interested in contributing in a big way? Consider joining our team! We're hiring for many positions. Please take a look at our [Careers page](https://bitwarden.com/careers/) to see what opportunities are currently open as well as what it's like to work at Bitwarden.
|
|
||||||
|
|
||||||
# Contribute
|
|
||||||
|
|
||||||
Code contributions are welcome! Please commit any pull requests against the `master` branch. Learn more about how to contribute by reading the [`CONTRIBUTING.md`](CONTRIBUTING.md) file.
|
|
||||||
|
|
||||||
Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the [`SECURITY.md`](SECURITY.md) file.
|
|
||||||
|
|
||||||
## Prettier
|
|
||||||
|
|
||||||
We recently migrated to using Prettier as code formatter. All previous branches will need to updated to avoid large merge conflicts using the following steps:
|
|
||||||
|
|
||||||
1. Check out your local Branch
|
|
||||||
2. Run `git merge b4df834b16d4f5d4162a926a5a308bdb3ebc718b`
|
|
||||||
3. Resolve any merge conflicts, commit.
|
|
||||||
4. Run `npm run prettier`
|
|
||||||
5. Commit
|
|
||||||
6. Run `git merge -Xours 521feae535d83166e620c3c28dfc3e7b0314a00e`
|
|
||||||
7. Push
|
|
||||||
|
|
||||||
### Git blame
|
|
||||||
|
|
||||||
We also recommend that you configure git to ignore the prettier revision using:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git config blame.ignoreRevsFile .git-blame-ignore-revs
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
project_id_env: _CROWDIN_PROJECT_ID
|
project_id_env: CROWDIN_PROJECT_ID
|
||||||
api_token_env: CROWDIN_API_TOKEN
|
api_token_env: CROWDIN_API_TOKEN
|
||||||
preserve_hierarchy: true
|
preserve_hierarchy: true
|
||||||
files:
|
files:
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
{
|
{
|
||||||
"extraMetadata": { "name": "bitwarden" },
|
"extraMetadata": {
|
||||||
|
"name": "bitwarden"
|
||||||
|
},
|
||||||
"productName": "Bitwarden",
|
"productName": "Bitwarden",
|
||||||
"appId": "com.bitwarden.desktop",
|
"appId": "com.bitwarden.desktop",
|
||||||
"buildDependenciesFromSource": true,
|
"buildDependenciesFromSource": true,
|
||||||
"copyright": "Copyright © 2015-2022 Bitwarden Inc.",
|
"copyright": "Copyright © 2015-2022 Bitwarden Inc.",
|
||||||
"directories": { "buildResources": "resources", "output": "dist", "app": "build" },
|
"directories": {
|
||||||
|
"buildResources": "resources",
|
||||||
|
"output": "dist",
|
||||||
|
"app": "build"
|
||||||
|
},
|
||||||
"afterSign": "scripts/after-sign.js",
|
"afterSign": "scripts/after-sign.js",
|
||||||
"asarUnpack": ["**/*.node"],
|
"asarUnpack": ["**/*.node"],
|
||||||
"files": ["**/*", "!**/node_modules/@bitwarden/desktop-native/**/*"],
|
"files": ["**/*", "!**/node_modules/@bitwarden/desktop-native/**/*"],
|
||||||
|
@ -60,29 +66,54 @@
|
||||||
"target": ["portable", "nsis-web", "appx"],
|
"target": ["portable", "nsis-web", "appx"],
|
||||||
"sign": "./sign.js",
|
"sign": "./sign.js",
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{ "from": "node_modules/regedit/vbs", "to": "regedit/vbs", "filter": ["**/*"] },
|
{
|
||||||
{ "from": "resources/native-messaging.bat", "to": "native-messaging.bat" }
|
"from": "node_modules/regedit/vbs",
|
||||||
|
"to": "regedit/vbs",
|
||||||
|
"filter": ["**/*"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "resources/native-messaging.bat",
|
||||||
|
"to": "native-messaging.bat"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"category": "Utility",
|
"category": "Utility",
|
||||||
"synopsis": "A secure and free password manager for all of your devices.",
|
"synopsis": "A secure and free password manager for all of your devices.",
|
||||||
"target": ["deb", "freebsd", "rpm", "AppImage", "snap"],
|
"target": ["deb", "freebsd", "rpm", "AppImage", "snap"],
|
||||||
"desktop": { "Name": "Bitwarden", "Type": "Application", "GenericName": "Password Manager" }
|
"desktop": {
|
||||||
|
"Name": "Bitwarden",
|
||||||
|
"Type": "Application",
|
||||||
|
"GenericName": "Password Manager"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"dmg": {
|
"dmg": {
|
||||||
"icon": "dmg.icns",
|
"icon": "dmg.icns",
|
||||||
"contents": [
|
"contents": [
|
||||||
{ "x": 150, "y": 185, "type": "file" },
|
{
|
||||||
{ "x": 390, "y": 180, "type": "link", "path": "/Applications" }
|
"x": 150,
|
||||||
|
"y": 185,
|
||||||
|
"type": "file"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 390,
|
||||||
|
"y": 180,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/Applications"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"window": { "width": 540, "height": 380 }
|
"window": {
|
||||||
|
"width": 540,
|
||||||
|
"height": 380
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"mas": {
|
"mas": {
|
||||||
"entitlements": "resources/entitlements.mas.plist",
|
"entitlements": "resources/entitlements.mas.plist",
|
||||||
"entitlementsInherit": "resources/entitlements.mas.inherit.plist",
|
"entitlementsInherit": "resources/entitlements.mas.inherit.plist",
|
||||||
"hardenedRuntime": false,
|
"hardenedRuntime": false,
|
||||||
"extendInfo": { "LSMinimumSystemVersion": "10.14.0" }
|
"extendInfo": {
|
||||||
|
"LSMinimumSystemVersion": "10.14.0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"nsisWeb": {
|
"nsisWeb": {
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
|
@ -90,9 +121,12 @@
|
||||||
"allowToChangeInstallationDirectory": false,
|
"allowToChangeInstallationDirectory": false,
|
||||||
"artifactName": "${productName}-Installer-${version}.${ext}",
|
"artifactName": "${productName}-Installer-${version}.${ext}",
|
||||||
"uninstallDisplayName": "${productName}",
|
"uninstallDisplayName": "${productName}",
|
||||||
"deleteAppDataOnUninstall": true
|
"deleteAppDataOnUninstall": true,
|
||||||
|
"include": "installer.nsh"
|
||||||
|
},
|
||||||
|
"portable": {
|
||||||
|
"artifactName": "${productName}-Portable-${version}.${ext}"
|
||||||
},
|
},
|
||||||
"portable": { "artifactName": "${productName}-Portable-${version}.${ext}" },
|
|
||||||
"appx": {
|
"appx": {
|
||||||
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
||||||
"backgroundColor": "#175DDC",
|
"backgroundColor": "#175DDC",
|
||||||
|
@ -109,13 +143,22 @@
|
||||||
"appImage": {
|
"appImage": {
|
||||||
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
||||||
},
|
},
|
||||||
"rpm": { "artifactName": "${productName}-${version}-${arch}.${ext}" },
|
"rpm": {
|
||||||
"freebsd": { "artifactName": "${productName}-${version}-${arch}.${ext}" },
|
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
||||||
|
},
|
||||||
|
"freebsd": {
|
||||||
|
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
||||||
|
},
|
||||||
"snap": {
|
"snap": {
|
||||||
"autoStart": true,
|
"autoStart": true,
|
||||||
"confinement": "strict",
|
"confinement": "strict",
|
||||||
"plugs": ["default", "password-manager-service"],
|
"plugs": ["default", "password-manager-service"],
|
||||||
"stagePackages": ["default"]
|
"stagePackages": ["default"]
|
||||||
},
|
},
|
||||||
"protocols": [{ "name": "Bitwarden", "schemes": ["bitwarden"] }]
|
"protocols": [
|
||||||
|
{
|
||||||
|
"name": "Bitwarden",
|
||||||
|
"schemes": ["bitwarden"]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
!macro customInit
|
||||||
|
${if} $installMode == "all"
|
||||||
|
${IfNot} ${UAC_IsAdmin}
|
||||||
|
ShowWindow $HWNDPARENT ${SW_HIDE}
|
||||||
|
!insertmacro UAC_RunElevated
|
||||||
|
Quit
|
||||||
|
${endif}
|
||||||
|
${endif}
|
||||||
|
!macroend
|
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
|
@ -26,8 +26,6 @@
|
||||||
"symlink:win": "rm -rf ./jslib && cmd /c mklink /J .\\jslib ..\\jslib",
|
"symlink:win": "rm -rf ./jslib && cmd /c mklink /J .\\jslib ..\\jslib",
|
||||||
"symlink:mac": "npm run symlink:lin",
|
"symlink:mac": "npm run symlink:lin",
|
||||||
"symlink:lin": "rm -rf ./jslib && ln -s ../jslib ./jslib",
|
"symlink:lin": "rm -rf ./jslib && ln -s ../jslib ./jslib",
|
||||||
"lint": "eslint . && prettier --check .",
|
|
||||||
"lint:fix": "eslint . --fix",
|
|
||||||
"build": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main\" \"npm run build:renderer\"",
|
"build": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main\" \"npm run build:renderer\"",
|
||||||
"build:dev": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main:dev\" \"npm run build:renderer:dev\"",
|
"build:dev": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main:dev\" \"npm run build:renderer:dev\"",
|
||||||
"build:main": "cross-env NODE_ENV=production webpack --config webpack.main.js",
|
"build:main": "cross-env NODE_ENV=production webpack --config webpack.main.js",
|
||||||
|
@ -59,17 +57,13 @@
|
||||||
"publish:mac:mas": "npm run dist:mac:mas && npm run upload:mas",
|
"publish:mac:mas": "npm run dist:mac:mas && npm run upload:mas",
|
||||||
"publish:win": "npm run build && npm run clean:dist && electron-builder --win --x64 --arm64 --ia32 -p always -c.win.certificateSubjectName=\"8bit Solutions LLC\"",
|
"publish:win": "npm run build && npm run clean:dist && electron-builder --win --x64 --arm64 --ia32 -p always -c.win.certificateSubjectName=\"8bit Solutions LLC\"",
|
||||||
"publish:win:dev": "npm run build && npm run clean:dist && electron-builder --win --x64 --arm64 --ia32 -p always",
|
"publish:win:dev": "npm run build && npm run clean:dist && electron-builder --win --x64 --arm64 --ia32 -p always",
|
||||||
"upload:mas": "xcrun altool --upload-app --type osx --file \"$(find ./dist/mas-universal/Bitwarden*.pkg)\" --username $APPLE_ID_USERNAME --password $APPLE_ID_PASSWORD",
|
"upload:mas": "xcrun altool --upload-app --type osx --file \"$(find ./dist/mas-universal/Bitwarden*.pkg)\" --username $APPLE_ID_USERNAME --password $APPLE_ID_PASSWORD"
|
||||||
"prettier": "prettier --write .",
|
|
||||||
"prepare": "husky install"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/compiler-cli": "^12.2.13",
|
"@angular/compiler-cli": "^12.2.13",
|
||||||
"@ngtools/webpack": "^12.2.13",
|
"@ngtools/webpack": "^12.2.13",
|
||||||
"@types/node": "^16.11.12",
|
"@types/node": "^16.11.12",
|
||||||
"@types/node-ipc": "^9.1.4",
|
"@types/node-ipc": "^9.1.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.12.1",
|
|
||||||
"@typescript-eslint/parser": "^5.12.1",
|
|
||||||
"clean-webpack-plugin": "^4.0.0",
|
"clean-webpack-plugin": "^4.0.0",
|
||||||
"concurrently": "^6.0.2",
|
"concurrently": "^6.0.2",
|
||||||
"copy-webpack-plugin": "^10.0.0",
|
"copy-webpack-plugin": "^10.0.0",
|
||||||
|
@ -79,17 +73,12 @@
|
||||||
"electron-notarize": "^1.1.1",
|
"electron-notarize": "^1.1.1",
|
||||||
"electron-rebuild": "^3.2.5",
|
"electron-rebuild": "^3.2.5",
|
||||||
"electron-reload": "^1.5.0",
|
"electron-reload": "^1.5.0",
|
||||||
"eslint": "^8.9.0",
|
|
||||||
"eslint-config-prettier": "^8.4.0",
|
|
||||||
"eslint-import-resolver-typescript": "^2.5.0",
|
|
||||||
"eslint-plugin-import": "^2.25.4",
|
|
||||||
"html-loader": "^3.0.1",
|
"html-loader": "^3.0.1",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
"lint-staged": "^12.1.3",
|
"lint-staged": "^12.1.3",
|
||||||
"mini-css-extract-plugin": "^2.4.5",
|
"mini-css-extract-plugin": "^2.4.5",
|
||||||
"node-loader": "^2.0.0",
|
"node-loader": "^2.0.0",
|
||||||
"prettier": "^2.5.1",
|
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.32.11",
|
"sass": "^1.32.11",
|
||||||
"sass-loader": "^12.4.0",
|
"sass-loader": "^12.4.0",
|
||||||
|
@ -128,9 +117,5 @@
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "~16",
|
"node": "~16",
|
||||||
"npm": "~8"
|
"npm": "~8"
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"./!(jslib)**": "prettier --ignore-unknown --write",
|
|
||||||
"*.ts": "eslint --fix"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
import { RouterModule, Routes } from "@angular/router";
|
import { RouterModule, Routes } from "@angular/router";
|
||||||
|
|
||||||
import { AuthGuardService } from "jslib-angular/services/auth-guard.service";
|
import { AuthGuard } from "jslib-angular/guards/auth.guard";
|
||||||
import { LockGuardService } from "jslib-angular/services/lock-guard.service";
|
import { LockGuard } from "jslib-angular/guards/lock.guard";
|
||||||
|
|
||||||
import { LoginGuardService } from "../services/loginGuard.service";
|
|
||||||
|
|
||||||
import { HintComponent } from "./accounts/hint.component";
|
import { HintComponent } from "./accounts/hint.component";
|
||||||
import { LockComponent } from "./accounts/lock.component";
|
import { LockComponent } from "./accounts/lock.component";
|
||||||
|
@ -15,6 +13,7 @@ import { SetPasswordComponent } from "./accounts/set-password.component";
|
||||||
import { SsoComponent } from "./accounts/sso.component";
|
import { SsoComponent } from "./accounts/sso.component";
|
||||||
import { TwoFactorComponent } from "./accounts/two-factor.component";
|
import { TwoFactorComponent } from "./accounts/two-factor.component";
|
||||||
import { UpdateTempPasswordComponent } from "./accounts/update-temp-password.component";
|
import { UpdateTempPasswordComponent } from "./accounts/update-temp-password.component";
|
||||||
|
import { LoginGuard } from "./guards/login.guard";
|
||||||
import { SendComponent } from "./send/send.component";
|
import { SendComponent } from "./send/send.component";
|
||||||
import { VaultComponent } from "./vault/vault.component";
|
import { VaultComponent } from "./vault/vault.component";
|
||||||
|
|
||||||
|
@ -23,19 +22,19 @@ const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: "lock",
|
path: "lock",
|
||||||
component: LockComponent,
|
component: LockComponent,
|
||||||
canActivate: [LockGuardService],
|
canActivate: [LockGuard],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "login",
|
path: "login",
|
||||||
component: LoginComponent,
|
component: LoginComponent,
|
||||||
canActivate: [LoginGuardService],
|
canActivate: [LoginGuard],
|
||||||
},
|
},
|
||||||
{ path: "2fa", component: TwoFactorComponent },
|
{ path: "2fa", component: TwoFactorComponent },
|
||||||
{ path: "register", component: RegisterComponent },
|
{ path: "register", component: RegisterComponent },
|
||||||
{
|
{
|
||||||
path: "vault",
|
path: "vault",
|
||||||
component: VaultComponent,
|
component: VaultComponent,
|
||||||
canActivate: [AuthGuardService],
|
canActivate: [AuthGuard],
|
||||||
},
|
},
|
||||||
{ path: "hint", component: HintComponent },
|
{ path: "hint", component: HintComponent },
|
||||||
{ path: "set-password", component: SetPasswordComponent },
|
{ path: "set-password", component: SetPasswordComponent },
|
||||||
|
@ -43,17 +42,17 @@ const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: "send",
|
path: "send",
|
||||||
component: SendComponent,
|
component: SendComponent,
|
||||||
canActivate: [AuthGuardService],
|
canActivate: [AuthGuard],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "update-temp-password",
|
path: "update-temp-password",
|
||||||
component: UpdateTempPasswordComponent,
|
component: UpdateTempPasswordComponent,
|
||||||
canActivate: [AuthGuardService],
|
canActivate: [AuthGuard],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "remove-password",
|
path: "remove-password",
|
||||||
component: RemovePasswordComponent,
|
component: RemovePasswordComponent,
|
||||||
canActivate: [AuthGuardService],
|
canActivate: [AuthGuard],
|
||||||
data: { titleId: "removeMasterPassword" },
|
data: { titleId: "removeMasterPassword" },
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
import "zone.js/dist/zone";
|
import "zone.js/dist/zone";
|
||||||
|
|
||||||
import { A11yModule } from "@angular/cdk/a11y";
|
import { registerLocaleData } from "@angular/common";
|
||||||
import { DragDropModule } from "@angular/cdk/drag-drop";
|
|
||||||
import { OverlayModule } from "@angular/cdk/overlay";
|
|
||||||
import { ScrollingModule } from "@angular/cdk/scrolling";
|
|
||||||
import { DatePipe, registerLocaleData } from "@angular/common";
|
|
||||||
import localeAf from "@angular/common/locales/af";
|
import localeAf from "@angular/common/locales/af";
|
||||||
import localeAz from "@angular/common/locales/az";
|
import localeAz from "@angular/common/locales/az";
|
||||||
import localeBe from "@angular/common/locales/be";
|
import localeBe from "@angular/common/locales/be";
|
||||||
|
@ -59,11 +55,6 @@ import localeVi from "@angular/common/locales/vi";
|
||||||
import localeZhCn from "@angular/common/locales/zh-Hans";
|
import localeZhCn from "@angular/common/locales/zh-Hans";
|
||||||
import localeZhTw from "@angular/common/locales/zh-Hant";
|
import localeZhTw from "@angular/common/locales/zh-Hant";
|
||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
||||||
import { BrowserModule } from "@angular/platform-browser";
|
|
||||||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
|
||||||
|
|
||||||
import { JslibModule } from "jslib-angular/jslib.module";
|
|
||||||
|
|
||||||
import { EnvironmentComponent } from "./accounts/environment.component";
|
import { EnvironmentComponent } from "./accounts/environment.component";
|
||||||
import { HintComponent } from "./accounts/hint.component";
|
import { HintComponent } from "./accounts/hint.component";
|
||||||
|
@ -88,10 +79,11 @@ import { AccountSwitcherComponent } from "./layout/account-switcher.component";
|
||||||
import { HeaderComponent } from "./layout/header.component";
|
import { HeaderComponent } from "./layout/header.component";
|
||||||
import { NavComponent } from "./layout/nav.component";
|
import { NavComponent } from "./layout/nav.component";
|
||||||
import { SearchComponent } from "./layout/search/search.component";
|
import { SearchComponent } from "./layout/search/search.component";
|
||||||
|
import { SharedModule } from "./modules/shared.module";
|
||||||
|
import { VaultFilterModule } from "./modules/vault-filter/vault-filter.module";
|
||||||
import { AddEditComponent as SendAddEditComponent } from "./send/add-edit.component";
|
import { AddEditComponent as SendAddEditComponent } from "./send/add-edit.component";
|
||||||
import { EffluxDatesComponent as SendEffluxDatesComponent } from "./send/efflux-dates.component";
|
import { EffluxDatesComponent as SendEffluxDatesComponent } from "./send/efflux-dates.component";
|
||||||
import { SendComponent } from "./send/send.component";
|
import { SendComponent } from "./send/send.component";
|
||||||
import { ServicesModule } from "./services/services.module";
|
|
||||||
import { AddEditCustomFieldsComponent } from "./vault/add-edit-custom-fields.component";
|
import { AddEditCustomFieldsComponent } from "./vault/add-edit-custom-fields.component";
|
||||||
import { AddEditComponent } from "./vault/add-edit.component";
|
import { AddEditComponent } from "./vault/add-edit.component";
|
||||||
import { AttachmentsComponent } from "./vault/attachments.component";
|
import { AttachmentsComponent } from "./vault/attachments.component";
|
||||||
|
@ -100,7 +92,6 @@ import { CollectionsComponent } from "./vault/collections.component";
|
||||||
import { ExportComponent } from "./vault/export.component";
|
import { ExportComponent } from "./vault/export.component";
|
||||||
import { FolderAddEditComponent } from "./vault/folder-add-edit.component";
|
import { FolderAddEditComponent } from "./vault/folder-add-edit.component";
|
||||||
import { GeneratorComponent } from "./vault/generator.component";
|
import { GeneratorComponent } from "./vault/generator.component";
|
||||||
import { GroupingsComponent } from "./vault/groupings.component";
|
|
||||||
import { PasswordGeneratorHistoryComponent } from "./vault/password-generator-history.component";
|
import { PasswordGeneratorHistoryComponent } from "./vault/password-generator-history.component";
|
||||||
import { PasswordHistoryComponent } from "./vault/password-history.component";
|
import { PasswordHistoryComponent } from "./vault/password-history.component";
|
||||||
import { ShareComponent } from "./vault/share.component";
|
import { ShareComponent } from "./vault/share.component";
|
||||||
|
@ -163,19 +154,7 @@ registerLocaleData(localeZhCn, "zh-CN");
|
||||||
registerLocaleData(localeZhTw, "zh-TW");
|
registerLocaleData(localeZhTw, "zh-TW");
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [SharedModule, AppRoutingModule, VaultFilterModule],
|
||||||
A11yModule,
|
|
||||||
AppRoutingModule,
|
|
||||||
BrowserAnimationsModule,
|
|
||||||
BrowserModule,
|
|
||||||
DragDropModule,
|
|
||||||
FormsModule,
|
|
||||||
JslibModule,
|
|
||||||
OverlayModule,
|
|
||||||
ReactiveFormsModule,
|
|
||||||
ScrollingModule,
|
|
||||||
ServicesModule,
|
|
||||||
],
|
|
||||||
declarations: [
|
declarations: [
|
||||||
AccountSwitcherComponent,
|
AccountSwitcherComponent,
|
||||||
AddEditComponent,
|
AddEditComponent,
|
||||||
|
@ -187,7 +166,6 @@ registerLocaleData(localeZhTw, "zh-TW");
|
||||||
EnvironmentComponent,
|
EnvironmentComponent,
|
||||||
ExportComponent,
|
ExportComponent,
|
||||||
FolderAddEditComponent,
|
FolderAddEditComponent,
|
||||||
GroupingsComponent,
|
|
||||||
HeaderComponent,
|
HeaderComponent,
|
||||||
HintComponent,
|
HintComponent,
|
||||||
LockComponent,
|
LockComponent,
|
||||||
|
@ -218,7 +196,6 @@ registerLocaleData(localeZhTw, "zh-TW");
|
||||||
ViewComponent,
|
ViewComponent,
|
||||||
ViewCustomFieldsComponent,
|
ViewCustomFieldsComponent,
|
||||||
],
|
],
|
||||||
providers: [DatePipe],
|
|
||||||
bootstrap: [AppComponent],
|
bootstrap: [AppComponent],
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { StateService } from "jslib-common/abstractions/state.service";
|
||||||
const maxAllowedAccounts = 5;
|
const maxAllowedAccounts = 5;
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class LoginGuardService implements CanActivate {
|
export class LoginGuard implements CanActivate {
|
||||||
protected homepage = "vault";
|
protected homepage = "vault";
|
||||||
constructor(
|
constructor(
|
||||||
private stateService: StateService,
|
private stateService: StateService,
|
|
@ -0,0 +1,43 @@
|
||||||
|
import { A11yModule } from "@angular/cdk/a11y";
|
||||||
|
import { DragDropModule } from "@angular/cdk/drag-drop";
|
||||||
|
import { OverlayModule } from "@angular/cdk/overlay";
|
||||||
|
import { ScrollingModule } from "@angular/cdk/scrolling";
|
||||||
|
import { DatePipe } from "@angular/common";
|
||||||
|
import { NgModule } from "@angular/core";
|
||||||
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
||||||
|
import { BrowserModule } from "@angular/platform-browser";
|
||||||
|
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
||||||
|
|
||||||
|
import { JslibModule } from "jslib-angular/jslib.module";
|
||||||
|
|
||||||
|
import { ServicesModule } from "../services/services.module";
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
A11yModule,
|
||||||
|
BrowserAnimationsModule,
|
||||||
|
BrowserModule,
|
||||||
|
DragDropModule,
|
||||||
|
FormsModule,
|
||||||
|
JslibModule,
|
||||||
|
OverlayModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
ScrollingModule,
|
||||||
|
ServicesModule,
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
A11yModule,
|
||||||
|
BrowserAnimationsModule,
|
||||||
|
BrowserModule,
|
||||||
|
DatePipe,
|
||||||
|
DragDropModule,
|
||||||
|
FormsModule,
|
||||||
|
JslibModule,
|
||||||
|
OverlayModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
ScrollingModule,
|
||||||
|
ServicesModule,
|
||||||
|
],
|
||||||
|
providers: [DatePipe],
|
||||||
|
})
|
||||||
|
export class SharedModule {}
|
|
@ -0,0 +1,76 @@
|
||||||
|
<ng-container *ngIf="show">
|
||||||
|
<div class="filter-heading">
|
||||||
|
<button
|
||||||
|
class="no-btn"
|
||||||
|
[attr.aria-expanded]="!isCollapsed(collectionsGrouping)"
|
||||||
|
aria-controls="collection-filters"
|
||||||
|
(click)="toggleCollapse(collectionsGrouping)"
|
||||||
|
appA11yTitle="{{ 'toggleCollapse' | i18n }}"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bwi bwi-fw"
|
||||||
|
aria-hidden="true"
|
||||||
|
[ngClass]="{
|
||||||
|
'bwi-angle-right': isCollapsed(collectionsGrouping),
|
||||||
|
'bwi-angle-down': !isCollapsed(collectionsGrouping)
|
||||||
|
}"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
<h2> {{ collectionsGrouping.name | i18n }}</h2>
|
||||||
|
</div>
|
||||||
|
<ul id="collection-filters" *ngIf="!isCollapsed(collectionsGrouping)" class="filter-options">
|
||||||
|
<ng-template #recursiveCollections let-collections>
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
*ngFor="let c of collections"
|
||||||
|
[ngClass]="{ active: c.node.id === activeFilter.selectedCollectionId }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
*ngIf="c.children.length"
|
||||||
|
class="toggle-button"
|
||||||
|
[attr.aria-expanded]="!isCollapsed(c.node)"
|
||||||
|
[attr.aria-controls]="c.node.name + '_children'"
|
||||||
|
(click)="toggleCollapse(c.node)"
|
||||||
|
appA11yTitle="{{ 'toggleCollapse' | i18n }}"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bwi bwi-fw"
|
||||||
|
aria-hidden="true"
|
||||||
|
[ngClass]="{
|
||||||
|
'bwi-angle-right': isCollapsed(c.node),
|
||||||
|
'bwi-angle-down': !isCollapsed(c.node)
|
||||||
|
}"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter(c.node)"
|
||||||
|
[attr.aria-pressed]="c.node.id === activeFilter.selectedCollectionId"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
*ngIf="c.children.length === 0"
|
||||||
|
class="bwi bwi-fw bwi-collection"
|
||||||
|
aria-hidden="true"
|
||||||
|
></i>
|
||||||
|
{{ c.node.name }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
<ul
|
||||||
|
[id]="c.node.name + '_children'"
|
||||||
|
class="nested-filter-options"
|
||||||
|
*ngIf="c.children.length && !isCollapsed(c.node)"
|
||||||
|
>
|
||||||
|
<ng-container
|
||||||
|
*ngTemplateOutlet="recursiveCollections; context: { $implicit: c.children }"
|
||||||
|
>
|
||||||
|
</ng-container>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ng-template>
|
||||||
|
<ng-container
|
||||||
|
*ngTemplateOutlet="recursiveCollections; context: { $implicit: nestedCollections }"
|
||||||
|
>
|
||||||
|
</ng-container>
|
||||||
|
</ul>
|
||||||
|
</ng-container>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { CollectionFilterComponent as BaseCollectionFilterComponent } from "jslib-angular/modules/vault-filter/components/collection-filter.component";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-collection-filter",
|
||||||
|
templateUrl: "collection-filter.component.html",
|
||||||
|
})
|
||||||
|
export class CollectionFilterComponent extends BaseCollectionFilterComponent {}
|
|
@ -0,0 +1,84 @@
|
||||||
|
<ng-container *ngIf="!hide">
|
||||||
|
<div class="filter-heading">
|
||||||
|
<button
|
||||||
|
class="toggle-button"
|
||||||
|
[attr.aria-expanded]="!isCollapsed(foldersGrouping)"
|
||||||
|
aria-controls="folder-filters"
|
||||||
|
(click)="toggleCollapse(foldersGrouping)"
|
||||||
|
appA11yTitle="{{ 'toggleCollapse' | i18n }}"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bwi bwi-fw"
|
||||||
|
aria-hidden="true"
|
||||||
|
[ngClass]="{
|
||||||
|
'bwi-angle-right': isCollapsed(foldersGrouping),
|
||||||
|
'bwi-angle-down': !isCollapsed(foldersGrouping)
|
||||||
|
}"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
<h2> {{ foldersGrouping.name | i18n }}</h2>
|
||||||
|
<button class="add-button" (click)="addFolder()" appA11yTitle="{{ 'addFolder' | i18n }}">
|
||||||
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<ul id="folder-filters" class="filter-options" *ngIf="!isCollapsed(foldersGrouping)">
|
||||||
|
<ng-template #recursiveFolders let-folders>
|
||||||
|
<li
|
||||||
|
*ngFor="let f of folders"
|
||||||
|
[ngClass]="{
|
||||||
|
active: f.node.id === activeFilter.selectedFolderId && activeFilter.selectedFolder
|
||||||
|
}"
|
||||||
|
class="filter-option"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="toggle-button"
|
||||||
|
*ngIf="f.children.length"
|
||||||
|
(click)="toggleCollapse(f.node)"
|
||||||
|
appA11yTitle="{{ 'toggleCollapse' | i18n }}"
|
||||||
|
[attr.aria-expanded]="!isCollapsed(f.node)"
|
||||||
|
[attr.aria-controls]="f.node.name + '_children'"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bwi bwi-fw"
|
||||||
|
aria-hidden="true"
|
||||||
|
[ngClass]="{
|
||||||
|
'bwi-angle-right': isCollapsed(f.node),
|
||||||
|
'bwi-angle-down': !isCollapsed(f.node)
|
||||||
|
}"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter(f.node)"
|
||||||
|
[attr.aria-pressed]="
|
||||||
|
activeFilter.selectedFolder && f.node.id === activeFilter.selectedFolderId
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<i *ngIf="f.children.length === 0" class="bwi bwi-fw bwi-folder" aria-hidden="true"></i>
|
||||||
|
{{ f.node.name }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="edit-button"
|
||||||
|
*ngIf="f.node.id"
|
||||||
|
(click)="editFolder(f.node)"
|
||||||
|
appA11yTitle="{{ 'editFolder' | i18n }}"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-pencil bwi-fw" aria-hidden="true"></i>
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
<ul
|
||||||
|
[id]="f.node.name + '_children'"
|
||||||
|
class="nested-filter-options"
|
||||||
|
*ngIf="f.children.length && !isCollapsed(f.node)"
|
||||||
|
>
|
||||||
|
<ng-container *ngTemplateOutlet="recursiveFolders; context: { $implicit: f.children }">
|
||||||
|
</ng-container>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ng-template>
|
||||||
|
<ng-container
|
||||||
|
*ngTemplateOutlet="recursiveFolders; context: { $implicit: nestedFolders }"
|
||||||
|
></ng-container>
|
||||||
|
</ul>
|
||||||
|
</ng-container>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { FolderFilterComponent as BaseFolderFilterComponent } from "jslib-angular/modules/vault-filter/components/folder-filter.component";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-folder-filter",
|
||||||
|
templateUrl: "folder-filter.component.html",
|
||||||
|
})
|
||||||
|
export class FolderFilterComponent extends BaseFolderFilterComponent {}
|
|
@ -0,0 +1,102 @@
|
||||||
|
<ng-container *ngIf="show">
|
||||||
|
<ng-container [ngSwitch]="displayMode">
|
||||||
|
<ng-container *ngSwitchCase="'personalOwnershipPolicy'">
|
||||||
|
<div class="filter-heading" [ngClass]="{ active: !hasActiveFilter }">
|
||||||
|
<button
|
||||||
|
class="toggle-button"
|
||||||
|
appA11yTitle="{{ 'toggleCollapse' | i18n }}"
|
||||||
|
(click)="toggleCollapse()"
|
||||||
|
[attr.aria-expanded]="!isCollapsed"
|
||||||
|
aria-controls="organization-filters"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bwi bwi-fw"
|
||||||
|
aria-hidden="true"
|
||||||
|
[ngClass]="{
|
||||||
|
'bwi-angle-right': isCollapsed,
|
||||||
|
'bwi-angle-down': !isCollapsed
|
||||||
|
}"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="clearFilter()"
|
||||||
|
[attr.aria-pressed]="!hasActiveFilter"
|
||||||
|
>
|
||||||
|
<h2> {{ organizationGrouping.name | i18n }}</h2>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options no-margin">
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
*ngFor="let organization of organizations"
|
||||||
|
[ngClass]="{ active: organization.id === activeFilter.selectedOrganizationId }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyOrganizationFilter(organization)"
|
||||||
|
[attr.aria-pressed]="activeFilter.myVaultOnly"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-business" aria-hidden="true"></i>
|
||||||
|
{{ organization.name }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="'organizationMember'">
|
||||||
|
<div class="filter-heading" [ngClass]="{ active: !hasActiveFilter }">
|
||||||
|
<button
|
||||||
|
appA11yTitle="{{ 'toggleCollapse' | i18n }}"
|
||||||
|
(click)="toggleCollapse()"
|
||||||
|
[attr.aria-expanded]="!isCollapsed"
|
||||||
|
aria-controls="organization-filters"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bwi bwi-fw"
|
||||||
|
aria-hidden="true"
|
||||||
|
[ngClass]="{
|
||||||
|
'bwi-angle-right': isCollapsed,
|
||||||
|
'bwi-angle-down': !isCollapsed
|
||||||
|
}"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
<button class="filter-button" (click)="clearFilter()">
|
||||||
|
<h2> {{ organizationGrouping.name | i18n }}</h2>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options no-margin">
|
||||||
|
<li class="filter-option" [ngClass]="{ active: activeFilter.myVaultOnly }">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyMyVaultFilter()"
|
||||||
|
[attr.aria-pressed]="activeFilter.myVaultOnly"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-user" aria-hidden="true"></i>
|
||||||
|
{{ "myVault" | i18n }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
*ngFor="let organization of organizations"
|
||||||
|
[ngClass]="{ active: organization.id === activeFilter.selectedOrganizationId }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyOrganizationFilter(organization)"
|
||||||
|
[attr.aria-pressed]="activeFilter.selectedOrganizationId === organization.id"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-business" aria-hidden="true"></i>
|
||||||
|
{{ organization.name }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ng-container>
|
||||||
|
</ng-container>
|
||||||
|
<hr />
|
||||||
|
</ng-container>
|
|
@ -0,0 +1,19 @@
|
||||||
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { OrganizationFilterComponent as BaseOrganizationFilterComponent } from "jslib-angular/modules/vault-filter/components/organization-filter.component";
|
||||||
|
import { DisplayMode } from "jslib-angular/modules/vault-filter/models/display-mode";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-organization-filter",
|
||||||
|
templateUrl: "organization-filter.component.html",
|
||||||
|
})
|
||||||
|
export class OrganizationFilterComponent extends BaseOrganizationFilterComponent {
|
||||||
|
get show() {
|
||||||
|
const hiddenDisplayModes: DisplayMode[] = ["singleOrganizationAndPersonalOwnershipPolicies"];
|
||||||
|
return (
|
||||||
|
!this.hide &&
|
||||||
|
this.organizations.length > 0 &&
|
||||||
|
hiddenDisplayModes.indexOf(this.displayMode) === -1
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
<ng-container *ngIf="show">
|
||||||
|
<h2 class="sr-only">{{ "filters" | i18n }}</h2>
|
||||||
|
<ul class="filter-options">
|
||||||
|
<li class="filter-option" [ngClass]="{ active: activeFilter.status === 'all' }">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter('all')"
|
||||||
|
[attr.aria-pressed]="activeFilter.status === 'all'"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-filter" aria-hidden="true"></i> {{ "allItems" | i18n }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
*ngIf="!hideFavorites"
|
||||||
|
[ngClass]="{ active: activeFilter.status === 'favorites' }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter('favorites')"
|
||||||
|
[attr.aria-pressed]="activeFilter.status === 'favorites'"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-star" aria-hidden="true"></i> {{ "favorites" | i18n }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
*ngIf="!hideTrash"
|
||||||
|
[ngClass]="{ active: activeFilter.status === 'trash' }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter('trash')"
|
||||||
|
[attr.aria-pressed]="activeFilter.status === 'trash'"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i> {{ "trash" | i18n }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ng-container>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { StatusFilterComponent as BaseStatusFilterComponent } from "jslib-angular/modules/vault-filter/components/status-filter.component";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-status-filter",
|
||||||
|
templateUrl: "status-filter.component.html",
|
||||||
|
})
|
||||||
|
export class StatusFilterComponent extends BaseStatusFilterComponent {}
|
|
@ -0,0 +1,76 @@
|
||||||
|
<div class="filter-heading">
|
||||||
|
<button
|
||||||
|
class="no-btn"
|
||||||
|
(click)="toggleCollapse()"
|
||||||
|
aria-expanded="!isCollapsed"
|
||||||
|
aria-controls="type-filters"
|
||||||
|
appA11yTitle="{{ 'toggleCollapse' | i18n }}"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bwi bwi-fw"
|
||||||
|
aria-hidden="true"
|
||||||
|
[ngClass]="{
|
||||||
|
'bwi-angle-right': isCollapsed,
|
||||||
|
'bwi-angle-down': !isCollapsed
|
||||||
|
}"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
<h2> {{ typesNode.name | i18n }}</h2>
|
||||||
|
</div>
|
||||||
|
<ul id="type-filters" *ngIf="!isCollapsed" class="filter-options">
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
[ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.Login }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter(cipherTypeEnum.Login)"
|
||||||
|
[attr.aria-pressed]="activeFilter.selectedType === cipherTypeEnum.Login"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-globe" aria-hidden="true"></i> {{ "typeLogin" | i18n }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li class="filter-option" [ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.Card }">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter(cipherTypeEnum.Card)"
|
||||||
|
[attr.aria-pressed]="activeFilter.selectedType === cipherTypeEnum.Card"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-credit-card" aria-hidden="true"></i> {{ "typeCard" | i18n }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
[ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.Identity }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter(cipherTypeEnum.Identity)"
|
||||||
|
[attr.aria-pressed]="activeFilter.selectedType === cipherTypeEnum.Identity"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-id-card" aria-hidden="true"></i> {{ "typeIdentity" | i18n }}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li
|
||||||
|
class="filter-option"
|
||||||
|
[ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.SecureNote }"
|
||||||
|
>
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="applyFilter(cipherTypeEnum.SecureNote)"
|
||||||
|
[attr.aria-pressed]="activeFilter.selectedType === cipherTypeEnum.SecureNote"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-sticky-note" aria-hidden="true"></i> {{
|
||||||
|
"typeSecureNote" | i18n
|
||||||
|
}}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { TypeFilterComponent as BaseTypeFilterComponent } from "jslib-angular/modules/vault-filter/components/type-filter.component";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-type-filter",
|
||||||
|
templateUrl: "type-filter.component.html",
|
||||||
|
})
|
||||||
|
export class TypeFilterComponent extends BaseTypeFilterComponent {}
|
|
@ -0,0 +1,50 @@
|
||||||
|
<div class="container loading-spinner" *ngIf="!isLoaded">
|
||||||
|
<i class="bwi bwi-spinner bwi-spin bwi-3x" aria-hidden="true"></i>
|
||||||
|
</div>
|
||||||
|
<ng-container *ngIf="isLoaded">
|
||||||
|
<app-organization-filter
|
||||||
|
class="filter"
|
||||||
|
[hide]="hideOrganizations"
|
||||||
|
[activeFilter]="activeFilter"
|
||||||
|
[collapsedFilterNodes]="collapsedFilterNodes"
|
||||||
|
[organizations]="organizations"
|
||||||
|
[activePersonalOwnershipPolicy]="activePersonalOwnershipPolicy"
|
||||||
|
[activeSingleOrganizationPolicy]="activeSingleOrganizationPolicy"
|
||||||
|
(onNodeCollapseStateChange)="toggleFilterNodeCollapseState($event)"
|
||||||
|
(onFilterChange)="applyFilter($event)"
|
||||||
|
></app-organization-filter>
|
||||||
|
<app-status-filter
|
||||||
|
class="filter"
|
||||||
|
[hideFavorites]="hideFavorites"
|
||||||
|
[hideTrash]="hideTrash"
|
||||||
|
[activeFilter]="activeFilter"
|
||||||
|
(onFilterChange)="applyFilter($event)"
|
||||||
|
></app-status-filter>
|
||||||
|
<app-type-filter
|
||||||
|
class="filter"
|
||||||
|
[activeFilter]="activeFilter"
|
||||||
|
[collapsedFilterNodes]="collapsedFilterNodes"
|
||||||
|
(onNodeCollapseStateChange)="toggleFilterNodeCollapseState($event)"
|
||||||
|
(onFilterChange)="applyFilter($event)"
|
||||||
|
></app-type-filter>
|
||||||
|
<app-folder-filter
|
||||||
|
class="filter"
|
||||||
|
[hide]="hideFolders"
|
||||||
|
[activeFilter]="activeFilter"
|
||||||
|
[collapsedFilterNodes]="collapsedFilterNodes"
|
||||||
|
[folderNodes]="folders"
|
||||||
|
(onNodeCollapseStateChange)="toggleFilterNodeCollapseState($event)"
|
||||||
|
(onFilterChange)="applyFilter($event)"
|
||||||
|
(onAddFolder)="addFolder()"
|
||||||
|
(onEditFolder)="editFolder($event)"
|
||||||
|
></app-folder-filter>
|
||||||
|
<app-collection-filter
|
||||||
|
class="filter"
|
||||||
|
[hide]="hideCollections"
|
||||||
|
[activeFilter]="activeFilter"
|
||||||
|
[collapsedFilterNodes]="collapsedFilterNodes"
|
||||||
|
[collectionNodes]="collections"
|
||||||
|
(onNodeCollapseStateChange)="toggleFilterNodeCollapseState($event)"
|
||||||
|
(onFilterChange)="applyFilter($event)"
|
||||||
|
></app-collection-filter>
|
||||||
|
</ng-container>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { VaultFilterComponent as BaseVaultFilterComponent } from "jslib-angular/modules/vault-filter/vault-filter.component";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-vault-filter",
|
||||||
|
templateUrl: "vault-filter.component.html",
|
||||||
|
})
|
||||||
|
export class VaultFilterComponent extends BaseVaultFilterComponent {}
|
|
@ -0,0 +1,27 @@
|
||||||
|
import { NgModule } from "@angular/core";
|
||||||
|
import { BrowserModule } from "@angular/platform-browser";
|
||||||
|
|
||||||
|
import { JslibModule } from "jslib-angular/jslib.module";
|
||||||
|
import { VaultFilterService } from "jslib-angular/modules/vault-filter/vault-filter.service";
|
||||||
|
|
||||||
|
import { CollectionFilterComponent } from "./components/collection-filter.component";
|
||||||
|
import { FolderFilterComponent } from "./components/folder-filter.component";
|
||||||
|
import { OrganizationFilterComponent } from "./components/organization-filter.component";
|
||||||
|
import { StatusFilterComponent } from "./components/status-filter.component";
|
||||||
|
import { TypeFilterComponent } from "./components/type-filter.component";
|
||||||
|
import { VaultFilterComponent } from "./vault-filter.component";
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [BrowserModule, JslibModule],
|
||||||
|
declarations: [
|
||||||
|
VaultFilterComponent,
|
||||||
|
CollectionFilterComponent,
|
||||||
|
FolderFilterComponent,
|
||||||
|
OrganizationFilterComponent,
|
||||||
|
StatusFilterComponent,
|
||||||
|
TypeFilterComponent,
|
||||||
|
],
|
||||||
|
exports: [VaultFilterComponent],
|
||||||
|
providers: [VaultFilterService],
|
||||||
|
})
|
||||||
|
export class VaultFilterModule {}
|
|
@ -1,56 +1,59 @@
|
||||||
<div id="sends" class="vault">
|
<div id="sends" class="vault">
|
||||||
<div class="groupings">
|
<div class="left-nav">
|
||||||
<div class="content">
|
<div class="vault-filters">
|
||||||
<div class="inner-content">
|
<h2 class="sr-only">{{ "filters" | i18n }}</h2>
|
||||||
<h2 class="sr-only">{{ "filters" | i18n }}</h2>
|
<div class="filter">
|
||||||
<ul>
|
<ul class="filter-options">
|
||||||
<li [ngClass]="{ active: selectedAll }">
|
<li class="filter-option" [ngClass]="{ active: selectedAll }">
|
||||||
<button
|
<span class="filter-buttons">
|
||||||
type="button"
|
<button class="filter-button" (click)="selectAll()" [attr.aria-pressed]="selectedAll">
|
||||||
appStopClick
|
<i class="bwi bwi-fw bwi-filter" aria-hidden="true"></i> {{
|
||||||
(click)="selectAll()"
|
"allSends" | i18n
|
||||||
[attr.aria-pressed]="selectedAll"
|
}}
|
||||||
>
|
</button>
|
||||||
<i class="bwi bwi-fw bwi-filter" aria-hidden="true"></i> {{ "allSends" | i18n }}
|
</span>
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<h2>{{ "types" | i18n }}</h2>
|
|
||||||
<ul>
|
|
||||||
<li [ngClass]="{ active: selectedType === sendType.Text }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectType(sendType.Text)"
|
|
||||||
[attr.aria-pressed]="selectedType === sendType.Text"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i> {{
|
|
||||||
"sendTypeText" | i18n
|
|
||||||
}}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li [ngClass]="{ active: selectedType === sendType.File }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectType(sendType.File)"
|
|
||||||
[attr.aria-pressed]="selectedType === sendType.File"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-file" aria-hidden="true"></i> {{
|
|
||||||
"sendTypeFile" | i18n
|
|
||||||
}}
|
|
||||||
</button>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="filter">
|
||||||
<app-nav class="nav"></app-nav>
|
<div class="filter-heading">
|
||||||
|
<h2>{{ "types" | i18n }}</h2>
|
||||||
|
</div>
|
||||||
|
<ul class="filter-options">
|
||||||
|
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.Text }">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="selectType(sendType.Text)"
|
||||||
|
[attr.aria-pressed]="selectedType === sendType.Text"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i> {{
|
||||||
|
"sendTypeText" | i18n
|
||||||
|
}}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.File }">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<button
|
||||||
|
class="filter-button"
|
||||||
|
(click)="selectType(sendType.File)"
|
||||||
|
[attr.aria-pressed]="selectedType === sendType.File"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-fw bwi-file" aria-hidden="true"></i> {{
|
||||||
|
"sendTypeFile" | i18n
|
||||||
|
}}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<app-nav class="nav"></app-nav>
|
||||||
</div>
|
</div>
|
||||||
<div id="items" class="items">
|
<div id="items" class="items">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="list" *ngIf="filteredSends.length">
|
<div class="list full-height" *ngIf="filteredSends.length">
|
||||||
<button
|
<button
|
||||||
*ngFor="let s of filteredSends"
|
*ngFor="let s of filteredSends"
|
||||||
appStopClick
|
appStopClick
|
||||||
|
@ -126,11 +129,11 @@
|
||||||
<p>{{ "noItemsInList" | i18n }}</p>
|
<p>{{ "noItemsInList" | i18n }}</p>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="footer">
|
||||||
<div class="footer">
|
<button (click)="addSend()" class="block primary" appA11yTitle="{{ 'addItem' | i18n }}">
|
||||||
<button (click)="addSend()" class="block primary" appA11yTitle="{{ 'addItem' | i18n }}">
|
<i class="bwi bwi-plus bwi-lg" aria-hidden="true"></i>
|
||||||
<i class="bwi bwi-plus bwi-lg" aria-hidden="true"></i>
|
</button>
|
||||||
</button>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<app-send-add-edit
|
<app-send-add-edit
|
||||||
|
|
|
@ -5,7 +5,6 @@ import {
|
||||||
SECURE_STORAGE,
|
SECURE_STORAGE,
|
||||||
STATE_FACTORY,
|
STATE_FACTORY,
|
||||||
STATE_SERVICE_USE_CACHE,
|
STATE_SERVICE_USE_CACHE,
|
||||||
WINDOW,
|
|
||||||
CLIENT_TYPE,
|
CLIENT_TYPE,
|
||||||
LOCALES_DIRECTORY,
|
LOCALES_DIRECTORY,
|
||||||
SYSTEM_LANGUAGE,
|
SYSTEM_LANGUAGE,
|
||||||
|
@ -38,10 +37,10 @@ import { ElectronRendererStorageService } from "jslib-electron/services/electron
|
||||||
|
|
||||||
import { Account } from "../../models/account";
|
import { Account } from "../../models/account";
|
||||||
import { I18nService } from "../../services/i18n.service";
|
import { I18nService } from "../../services/i18n.service";
|
||||||
import { LoginGuardService } from "../../services/loginGuard.service";
|
|
||||||
import { NativeMessagingService } from "../../services/nativeMessaging.service";
|
import { NativeMessagingService } from "../../services/nativeMessaging.service";
|
||||||
import { PasswordRepromptService } from "../../services/passwordReprompt.service";
|
import { PasswordRepromptService } from "../../services/passwordReprompt.service";
|
||||||
import { StateService } from "../../services/state.service";
|
import { StateService } from "../../services/state.service";
|
||||||
|
import { LoginGuard } from "../guards/login.guard";
|
||||||
import { SearchBarService } from "../layout/search/search-bar.service";
|
import { SearchBarService } from "../layout/search/search-bar.service";
|
||||||
|
|
||||||
import { InitService } from "./init.service";
|
import { InitService } from "./init.service";
|
||||||
|
@ -55,7 +54,7 @@ const RELOAD_CALLBACK = new InjectionToken<() => any>("RELOAD_CALLBACK");
|
||||||
InitService,
|
InitService,
|
||||||
NativeMessagingService,
|
NativeMessagingService,
|
||||||
SearchBarService,
|
SearchBarService,
|
||||||
LoginGuardService,
|
LoginGuard,
|
||||||
{
|
{
|
||||||
provide: APP_INITIALIZER,
|
provide: APP_INITIALIZER,
|
||||||
useFactory: (initService: InitService) => initService.init(),
|
useFactory: (initService: InitService) => initService.init(),
|
||||||
|
|
|
@ -1,65 +1,67 @@
|
||||||
<div class="content">
|
<div class="container loading-spinner" *ngIf="!loaded">
|
||||||
<cdk-virtual-scroll-viewport
|
<i class="bwi bwi-spinner bwi-spin bwi-3x" aria-hidden="true"></i>
|
||||||
itemSize="42"
|
</div>
|
||||||
minBufferPx="400"
|
<ng-container *ngIf="loaded">
|
||||||
maxBufferPx="600"
|
<div class="content">
|
||||||
*ngIf="ciphers.length"
|
<cdk-virtual-scroll-viewport
|
||||||
>
|
itemSize="42"
|
||||||
<div class="list">
|
minBufferPx="400"
|
||||||
<button
|
maxBufferPx="600"
|
||||||
type="button"
|
*ngIf="ciphers.length"
|
||||||
*cdkVirtualFor="let c of ciphers; trackBy: trackByFn"
|
>
|
||||||
appStopClick
|
<div class="list">
|
||||||
(click)="selectCipher(c)"
|
<button
|
||||||
(contextmenu)="rightClickCipher(c)"
|
type="button"
|
||||||
title="{{ 'viewItem' | i18n }}"
|
*cdkVirtualFor="let c of ciphers; trackBy: trackByFn"
|
||||||
[ngClass]="{ active: c.id === activeCipherId }"
|
appStopClick
|
||||||
[attr.aria-pressed]="c.id === activeCipherId"
|
(click)="selectCipher(c)"
|
||||||
class="flex-list-item virtual-scroll-item"
|
(contextmenu)="rightClickCipher(c)"
|
||||||
>
|
title="{{ 'viewItem' | i18n }}"
|
||||||
<app-vault-icon [cipher]="c"></app-vault-icon>
|
[ngClass]="{ active: c.id === activeCipherId }"
|
||||||
<div class="flex-cipher-list-item">
|
[attr.aria-pressed]="c.id === activeCipherId"
|
||||||
<span class="text">
|
class="flex-list-item virtual-scroll-item"
|
||||||
{{ c.name }}
|
>
|
||||||
<ng-container *ngIf="c.organizationId">
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
||||||
<i
|
<div class="flex-cipher-list-item">
|
||||||
class="bwi bwi-collection text-muted"
|
<span class="text">
|
||||||
title="{{ 'shared' | i18n }}"
|
{{ c.name }}
|
||||||
aria-hidden="true"
|
<ng-container *ngIf="c.organizationId">
|
||||||
></i>
|
<i
|
||||||
<span class="sr-only">{{ "shared" | i18n }}</span>
|
class="bwi bwi-collection text-muted"
|
||||||
</ng-container>
|
title="{{ 'shared' | i18n }}"
|
||||||
<ng-container *ngIf="c.hasAttachments">
|
aria-hidden="true"
|
||||||
<i
|
></i>
|
||||||
class="bwi bwi-paperclip text-muted"
|
<span class="sr-only">{{ "shared" | i18n }}</span>
|
||||||
title="{{ 'attachments' | i18n }}"
|
</ng-container>
|
||||||
aria-hidden="true"
|
<ng-container *ngIf="c.hasAttachments">
|
||||||
></i>
|
<i
|
||||||
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
class="bwi bwi-paperclip text-muted"
|
||||||
</ng-container>
|
title="{{ 'attachments' | i18n }}"
|
||||||
</span>
|
aria-hidden="true"
|
||||||
<span *ngIf="c.subTitle" class="detail">{{ c.subTitle }}</span>
|
></i>
|
||||||
</div>
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
||||||
</button>
|
</ng-container>
|
||||||
</div>
|
</span>
|
||||||
</cdk-virtual-scroll-viewport>
|
<span *ngIf="c.subTitle" class="detail">{{ c.subTitle }}</span>
|
||||||
<div class="no-items" *ngIf="!ciphers.length">
|
</div>
|
||||||
<i class="bwi bwi-spinner bwi-spin bwi-3x" *ngIf="!loaded" aria-hidden="true"></i>
|
</button>
|
||||||
<ng-container *ngIf="loaded">
|
</div>
|
||||||
|
</cdk-virtual-scroll-viewport>
|
||||||
|
<div class="no-items" *ngIf="!ciphers.length">
|
||||||
<img class="no-items-image" aria-hidden="true" />
|
<img class="no-items-image" aria-hidden="true" />
|
||||||
<p>{{ "noItemsInList" | i18n }}</p>
|
<p>{{ "noItemsInList" | i18n }}</p>
|
||||||
<button (click)="addCipher()" class="btn block primary link">{{ "addItem" | i18n }}</button>
|
<button (click)="addCipher()" class="btn block primary link">{{ "addItem" | i18n }}</button>
|
||||||
</ng-container>
|
</div>
|
||||||
|
<div class="footer">
|
||||||
|
<button
|
||||||
|
(click)="addCipher()"
|
||||||
|
(contextmenu)="addCipherOptions()"
|
||||||
|
class="block primary"
|
||||||
|
appA11yTitle="{{ 'addItem' | i18n }}"
|
||||||
|
[disabled]="deleted"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-plus bwi-lg" aria-hidden="true"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</ng-container>
|
||||||
<div class="footer">
|
|
||||||
<button
|
|
||||||
(click)="addCipher()"
|
|
||||||
(contextmenu)="addCipherOptions()"
|
|
||||||
class="block primary"
|
|
||||||
appA11yTitle="{{ 'addItem' | i18n }}"
|
|
||||||
[disabled]="deleted"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-plus bwi-lg" aria-hidden="true"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -386,16 +386,6 @@
|
||||||
(blur)="saveUsernameOptions()"
|
(blur)="saveUsernameOptions()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content-row" appBoxRow>
|
|
||||||
<label for="simplelogin-hostname">{{ "hostname" | i18n }}</label>
|
|
||||||
<input
|
|
||||||
id="simplelogin-hostname"
|
|
||||||
type="text"
|
|
||||||
name="SimpleLoginHostname"
|
|
||||||
[(ngModel)]="usernameOptions.forwardedSimpleLoginHostname"
|
|
||||||
(blur)="saveUsernameOptions()"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="usernameOptions.forwardedService === 'anonaddy'">
|
<ng-container *ngIf="usernameOptions.forwardedService === 'anonaddy'">
|
||||||
<div class="box-content-row" appBoxRow>
|
<div class="box-content-row" appBoxRow>
|
||||||
|
|
|
@ -1,190 +0,0 @@
|
||||||
<div class="content">
|
|
||||||
<div class="inner-content">
|
|
||||||
<h2 class="sr-only">{{ "filters" | i18n }}</h2>
|
|
||||||
<ul>
|
|
||||||
<li [ngClass]="{ active: selectedAll }">
|
|
||||||
<button type="button" [attr.aria-pressed]="selectedAll" appStopClick (click)="selectAll()">
|
|
||||||
<i class="bwi bwi-fw bwi-filter" aria-hidden="true"></i> {{ "allItems" | i18n }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li [ngClass]="{ active: selectedFavorites }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="selectedFavorites"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectFavorites()"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-star" aria-hidden="true"></i> {{ "favorites" | i18n }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li [ngClass]="{ active: selectedTrash }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="selectedTrash"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectTrash()"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i> {{ "trash" | i18n }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<h2>{{ "types" | i18n }}</h2>
|
|
||||||
<ul>
|
|
||||||
<li [ngClass]="{ active: selectedType === cipherType.Login }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="selectedType === cipherType.Login"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectType(cipherType.Login)"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-globe" aria-hidden="true"></i> {{ "typeLogin" | i18n }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li [ngClass]="{ active: selectedType === cipherType.Card }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="selectedType === cipherType.Card"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectType(cipherType.Card)"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-credit-card" aria-hidden="true"></i> {{ "typeCard" | i18n }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li [ngClass]="{ active: selectedType === cipherType.Identity }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="selectedType === cipherType.Identity"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectType(cipherType.Identity)"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-id-card" aria-hidden="true"></i> {{ "typeIdentity" | i18n }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li [ngClass]="{ active: selectedType === cipherType.SecureNote }">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="selectedType === cipherType.SecureNote"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectType(cipherType.SecureNote)"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-sticky-note" aria-hidden="true"></i> {{
|
|
||||||
"typeSecureNote" | i18n
|
|
||||||
}}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<p *ngIf="!loaded" class="text-muted">{{ "loading" | i18n }}</p>
|
|
||||||
<ng-container *ngIf="loaded">
|
|
||||||
<div class="heading">
|
|
||||||
<h2>{{ "folders" | i18n }}</h2>
|
|
||||||
<button (click)="addFolder()" appA11yTitle="{{ 'addFolder' | i18n }}">
|
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<ng-template #recursiveFolders let-folders>
|
|
||||||
<li
|
|
||||||
*ngFor="let f of folders"
|
|
||||||
[ngClass]="{ active: selectedFolder && f.node.id === selectedFolderId }"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="selectedFolder && f.node.id === selectedFolderId"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectFolder(f.node)"
|
|
||||||
>
|
|
||||||
<i
|
|
||||||
*ngIf="f.children.length"
|
|
||||||
class="bwi bwi-fw"
|
|
||||||
title="{{ 'toggleCollapse' | i18n }}"
|
|
||||||
aria-hidden="true"
|
|
||||||
[ngClass]="{
|
|
||||||
'bwi-angle-right': isCollapsed(f.node),
|
|
||||||
'bwi-angle-down': !isCollapsed(f.node)
|
|
||||||
}"
|
|
||||||
(click)="collapse(f.node)"
|
|
||||||
appStopProp
|
|
||||||
></i>
|
|
||||||
<i
|
|
||||||
*ngIf="f.children.length === 0"
|
|
||||||
class="bwi bwi-fw bwi-folder"
|
|
||||||
aria-hidden="true"
|
|
||||||
></i>
|
|
||||||
{{ f.node.name }}
|
|
||||||
<span
|
|
||||||
appStopProp
|
|
||||||
appStopClick
|
|
||||||
(click)="editFolder(f.node)"
|
|
||||||
role="button"
|
|
||||||
appA11yTitle="{{ 'editFolder' | i18n }}"
|
|
||||||
*ngIf="f.node.id"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-pencil bwi-fw" aria-hidden="true"></i>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<ul class="bwi-ul" *ngIf="f.children.length && !isCollapsed(f.node)">
|
|
||||||
<ng-container
|
|
||||||
*ngTemplateOutlet="recursiveFolders; context: { $implicit: f.children }"
|
|
||||||
>
|
|
||||||
</ng-container>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ng-template>
|
|
||||||
<ng-container
|
|
||||||
*ngTemplateOutlet="recursiveFolders; context: { $implicit: nestedFolders }"
|
|
||||||
></ng-container>
|
|
||||||
</ul>
|
|
||||||
<div *ngIf="collections && collections.length">
|
|
||||||
<h2>{{ "collections" | i18n }}</h2>
|
|
||||||
<ul>
|
|
||||||
<ng-template #recursiveCollections let-collections>
|
|
||||||
<li
|
|
||||||
*ngFor="let c of collections"
|
|
||||||
[ngClass]="{ active: c.node.id === selectedCollectionId }"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
*ngIf="c.children.length == 0"
|
|
||||||
type="button"
|
|
||||||
[attr.aria-pressed]="c.node.id === selectedCollectionId"
|
|
||||||
appStopClick
|
|
||||||
(click)="selectCollection(c.node)"
|
|
||||||
>
|
|
||||||
<i
|
|
||||||
*ngIf="c.children.length"
|
|
||||||
class="bwi bwi-fw"
|
|
||||||
title="{{ 'toggleCollapse' | i18n }}"
|
|
||||||
aria-hidden="true"
|
|
||||||
[ngClass]="{
|
|
||||||
'bwi-angle-right': isCollapsed(c.node),
|
|
||||||
'bwi-angle-down': !isCollapsed(c.node)
|
|
||||||
}"
|
|
||||||
(click)="collapse(c.node)"
|
|
||||||
appStopProp
|
|
||||||
></i>
|
|
||||||
<i
|
|
||||||
*ngIf="c.children.length === 0"
|
|
||||||
class="bwi bwi-fw bwi-collection"
|
|
||||||
aria-hidden="true"
|
|
||||||
></i>
|
|
||||||
{{ c.node.name }}
|
|
||||||
</button>
|
|
||||||
<ul class="bwi-ul" *ngIf="c.children.length && !isCollapsed(c.node)">
|
|
||||||
<ng-container
|
|
||||||
*ngTemplateOutlet="recursiveCollections; context: { $implicit: c.children }"
|
|
||||||
>
|
|
||||||
</ng-container>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ng-template>
|
|
||||||
<ng-container
|
|
||||||
*ngTemplateOutlet="recursiveCollections; context: { $implicit: nestedCollections }"
|
|
||||||
>
|
|
||||||
</ng-container>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
<div class="footer">
|
|
||||||
<app-nav class="nav"></app-nav>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,20 +0,0 @@
|
||||||
import { Component } from "@angular/core";
|
|
||||||
|
|
||||||
import { GroupingsComponent as BaseGroupingsComponent } from "jslib-angular/components/groupings.component";
|
|
||||||
import { CollectionService } from "jslib-common/abstractions/collection.service";
|
|
||||||
import { FolderService } from "jslib-common/abstractions/folder.service";
|
|
||||||
import { StateService } from "jslib-common/abstractions/state.service";
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: "app-vault-groupings",
|
|
||||||
templateUrl: "groupings.component.html",
|
|
||||||
})
|
|
||||||
export class GroupingsComponent extends BaseGroupingsComponent {
|
|
||||||
constructor(
|
|
||||||
collectionService: CollectionService,
|
|
||||||
folderService: FolderService,
|
|
||||||
stateService: StateService
|
|
||||||
) {
|
|
||||||
super(collectionService, folderService, stateService);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -52,19 +52,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<app-vault-groupings
|
<div class="left-nav">
|
||||||
id="groupings"
|
<app-vault-filter
|
||||||
class="groupings"
|
class="vault-filters"
|
||||||
(onAllClicked)="clearGroupingFilters()"
|
[activeFilter]="activeFilter"
|
||||||
(onFavoritesClicked)="filterFavorites()"
|
(onFilterChange)="applyVaultFilter($event)"
|
||||||
(onCipherTypeClicked)="filterCipherType($event)"
|
(onAddFolder)="addFolder()"
|
||||||
(onFolderClicked)="filterFolder($event.id)"
|
(onEditFolder)="editFolder($event.id)"
|
||||||
(onAddFolder)="addFolder()"
|
></app-vault-filter>
|
||||||
(onEditFolder)="editFolder($event.id)"
|
<app-nav class="nav"></app-nav>
|
||||||
(onCollectionClicked)="filterCollection($event.id)"
|
</div>
|
||||||
(onTrashClicked)="filterDeleted()"
|
|
||||||
>
|
|
||||||
</app-vault-groupings>
|
|
||||||
</div>
|
</div>
|
||||||
<ng-template #generator></ng-template>
|
<ng-template #generator></ng-template>
|
||||||
<ng-template #attachments></ng-template>
|
<ng-template #attachments></ng-template>
|
||||||
|
|
|
@ -11,6 +11,7 @@ import { ActivatedRoute, Router } from "@angular/router";
|
||||||
import { first } from "rxjs/operators";
|
import { first } from "rxjs/operators";
|
||||||
|
|
||||||
import { ModalRef } from "jslib-angular/components/modal/modal.ref";
|
import { ModalRef } from "jslib-angular/components/modal/modal.ref";
|
||||||
|
import { VaultFilter } from "jslib-angular/modules/vault-filter/models/vault-filter.model";
|
||||||
import { ModalService } from "jslib-angular/services/modal.service";
|
import { ModalService } from "jslib-angular/services/modal.service";
|
||||||
import { BroadcasterService } from "jslib-common/abstractions/broadcaster.service";
|
import { BroadcasterService } from "jslib-common/abstractions/broadcaster.service";
|
||||||
import { EventService } from "jslib-common/abstractions/event.service";
|
import { EventService } from "jslib-common/abstractions/event.service";
|
||||||
|
@ -29,6 +30,7 @@ import { FolderView } from "jslib-common/models/view/folderView";
|
||||||
import { invokeMenu, RendererMenuItem } from "jslib-electron/utils";
|
import { invokeMenu, RendererMenuItem } from "jslib-electron/utils";
|
||||||
|
|
||||||
import { SearchBarService } from "../layout/search/search-bar.service";
|
import { SearchBarService } from "../layout/search/search-bar.service";
|
||||||
|
import { VaultFilterComponent } from "../modules/vault-filter/vault-filter.component";
|
||||||
|
|
||||||
import { AddEditComponent } from "./add-edit.component";
|
import { AddEditComponent } from "./add-edit.component";
|
||||||
import { AttachmentsComponent } from "./attachments.component";
|
import { AttachmentsComponent } from "./attachments.component";
|
||||||
|
@ -36,7 +38,6 @@ import { CiphersComponent } from "./ciphers.component";
|
||||||
import { CollectionsComponent } from "./collections.component";
|
import { CollectionsComponent } from "./collections.component";
|
||||||
import { FolderAddEditComponent } from "./folder-add-edit.component";
|
import { FolderAddEditComponent } from "./folder-add-edit.component";
|
||||||
import { GeneratorComponent } from "./generator.component";
|
import { GeneratorComponent } from "./generator.component";
|
||||||
import { GroupingsComponent } from "./groupings.component";
|
|
||||||
import { PasswordHistoryComponent } from "./password-history.component";
|
import { PasswordHistoryComponent } from "./password-history.component";
|
||||||
import { ShareComponent } from "./share.component";
|
import { ShareComponent } from "./share.component";
|
||||||
import { ViewComponent } from "./view.component";
|
import { ViewComponent } from "./view.component";
|
||||||
|
@ -51,9 +52,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
@ViewChild(ViewComponent) viewComponent: ViewComponent;
|
@ViewChild(ViewComponent) viewComponent: ViewComponent;
|
||||||
@ViewChild(AddEditComponent) addEditComponent: AddEditComponent;
|
@ViewChild(AddEditComponent) addEditComponent: AddEditComponent;
|
||||||
@ViewChild(CiphersComponent, { static: true }) ciphersComponent: CiphersComponent;
|
@ViewChild(CiphersComponent, { static: true }) ciphersComponent: CiphersComponent;
|
||||||
@ViewChild(GroupingsComponent, { static: true }) groupingsComponent: GroupingsComponent;
|
|
||||||
@ViewChild("generator", { read: ViewContainerRef, static: true })
|
@ViewChild("generator", { read: ViewContainerRef, static: true })
|
||||||
generatorModalRef: ViewContainerRef;
|
generatorModalRef: ViewContainerRef;
|
||||||
|
@ViewChild(VaultFilterComponent, { static: true }) vaultFilterComponent: VaultFilterComponent;
|
||||||
@ViewChild("attachments", { read: ViewContainerRef, static: true })
|
@ViewChild("attachments", { read: ViewContainerRef, static: true })
|
||||||
attachmentsModalRef: ViewContainerRef;
|
attachmentsModalRef: ViewContainerRef;
|
||||||
@ViewChild("passwordHistory", { read: ViewContainerRef, static: true })
|
@ViewChild("passwordHistory", { read: ViewContainerRef, static: true })
|
||||||
|
@ -70,12 +71,15 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
type: CipherType = null;
|
type: CipherType = null;
|
||||||
folderId: string = null;
|
folderId: string = null;
|
||||||
collectionId: string = null;
|
collectionId: string = null;
|
||||||
|
organizationId: string = null;
|
||||||
|
myVaultOnly = false;
|
||||||
addType: CipherType = null;
|
addType: CipherType = null;
|
||||||
addOrganizationId: string = null;
|
addOrganizationId: string = null;
|
||||||
addCollectionIds: string[] = null;
|
addCollectionIds: string[] = null;
|
||||||
showingModal = false;
|
showingModal = false;
|
||||||
deleted = false;
|
deleted = false;
|
||||||
userHasPremiumAccess = false;
|
userHasPremiumAccess = false;
|
||||||
|
activeFilter: VaultFilter = new VaultFilter();
|
||||||
|
|
||||||
private modal: ModalRef = null;
|
private modal: ModalRef = null;
|
||||||
|
|
||||||
|
@ -124,7 +128,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
await this.openGenerator(false);
|
await this.openGenerator(false);
|
||||||
break;
|
break;
|
||||||
case "syncCompleted":
|
case "syncCompleted":
|
||||||
await this.load();
|
await this.ciphersComponent.reload(this.buildFilter());
|
||||||
|
await this.vaultFilterComponent.reloadCollectionsAndFolders(this.activeFilter);
|
||||||
|
await this.vaultFilterComponent.reloadOrganizations();
|
||||||
break;
|
break;
|
||||||
case "refreshCiphers":
|
case "refreshCiphers":
|
||||||
this.ciphersComponent.refresh();
|
this.ciphersComponent.refresh();
|
||||||
|
@ -211,49 +217,31 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
async load() {
|
async load() {
|
||||||
this.route.queryParams.pipe(first()).subscribe(async (params) => {
|
this.route.queryParams.pipe(first()).subscribe(async (params) => {
|
||||||
await this.groupingsComponent.load();
|
if (params.cipherId) {
|
||||||
|
const cipherView = new CipherView();
|
||||||
if (params == null) {
|
cipherView.id = params.cipherId;
|
||||||
this.groupingsComponent.selectedAll = true;
|
if (params.action === "clone") {
|
||||||
await this.ciphersComponent.reload();
|
await this.cloneCipher(cipherView);
|
||||||
} else {
|
} else if (params.action === "edit") {
|
||||||
if (params.cipherId) {
|
await this.editCipher(cipherView);
|
||||||
const cipherView = new CipherView();
|
|
||||||
cipherView.id = params.cipherId;
|
|
||||||
if (params.action === "clone") {
|
|
||||||
await this.cloneCipher(cipherView);
|
|
||||||
} else if (params.action === "edit") {
|
|
||||||
await this.editCipher(cipherView);
|
|
||||||
} else {
|
|
||||||
await this.viewCipher(cipherView);
|
|
||||||
}
|
|
||||||
} else if (params.action === "add") {
|
|
||||||
this.addType = Number(params.addType);
|
|
||||||
this.addCipher(this.addType);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (params.deleted) {
|
|
||||||
this.groupingsComponent.selectedTrash = true;
|
|
||||||
await this.filterDeleted();
|
|
||||||
} else if (params.favorites) {
|
|
||||||
this.groupingsComponent.selectedFavorites = true;
|
|
||||||
await this.filterFavorites();
|
|
||||||
} else if (params.type && params.action !== "add") {
|
|
||||||
const t = parseInt(params.type, null);
|
|
||||||
this.groupingsComponent.selectedType = t;
|
|
||||||
await this.filterCipherType(t);
|
|
||||||
} else if (params.folderId) {
|
|
||||||
this.groupingsComponent.selectedFolder = true;
|
|
||||||
this.groupingsComponent.selectedFolderId = params.folderId;
|
|
||||||
await this.filterFolder(params.folderId);
|
|
||||||
} else if (params.collectionId) {
|
|
||||||
this.groupingsComponent.selectedCollectionId = params.collectionId;
|
|
||||||
await this.filterCollection(params.collectionId);
|
|
||||||
} else {
|
} else {
|
||||||
this.groupingsComponent.selectedAll = true;
|
await this.viewCipher(cipherView);
|
||||||
await this.ciphersComponent.reload();
|
|
||||||
}
|
}
|
||||||
|
} else if (params.action === "add") {
|
||||||
|
this.addType = Number(params.addType);
|
||||||
|
this.addCipher(this.addType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.activeFilter = new VaultFilter({
|
||||||
|
status: params.deleted ? "trash" : params.favorites ? "favorites" : "all",
|
||||||
|
cipherType:
|
||||||
|
params.action === "add" || params.type == null ? null : parseInt(params.type, null),
|
||||||
|
selectedFolderId: params.folderId,
|
||||||
|
selectedCollectionId: params.selectedCollectionId,
|
||||||
|
selectedOrganizationId: params.selectedOrganizationId,
|
||||||
|
myVaultOnly: params.myVaultOnly ?? false,
|
||||||
|
});
|
||||||
|
await this.ciphersComponent.reload(this.buildFilter());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,7 +397,7 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
this.addType = type;
|
this.addType = type;
|
||||||
this.action = "add";
|
this.action = "add";
|
||||||
this.cipherId = null;
|
this.cipherId = null;
|
||||||
this.updateCollectionProperties();
|
this.prefillNewCipherFromFilter();
|
||||||
this.go();
|
this.go();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,58 +535,75 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
this.go();
|
this.go();
|
||||||
}
|
}
|
||||||
|
|
||||||
async clearGroupingFilters() {
|
async applyVaultFilter(vaultFilter: VaultFilter) {
|
||||||
this.searchBarService.setPlaceholderText(this.i18nService.t("searchVault"));
|
this.searchBarService.setPlaceholderText(
|
||||||
await this.ciphersComponent.reload();
|
this.i18nService.t(this.calculateSearchBarLocalizationString(vaultFilter))
|
||||||
this.clearFilters();
|
|
||||||
this.go();
|
|
||||||
}
|
|
||||||
|
|
||||||
async filterFavorites() {
|
|
||||||
this.searchBarService.setPlaceholderText(this.i18nService.t("searchFavorites"));
|
|
||||||
await this.ciphersComponent.reload((c) => c.favorite);
|
|
||||||
this.clearFilters();
|
|
||||||
this.favorites = true;
|
|
||||||
this.go();
|
|
||||||
}
|
|
||||||
|
|
||||||
async filterDeleted() {
|
|
||||||
this.searchBarService.setPlaceholderText(this.i18nService.t("searchTrash"));
|
|
||||||
this.ciphersComponent.deleted = true;
|
|
||||||
await this.ciphersComponent.reload(null, true);
|
|
||||||
this.clearFilters();
|
|
||||||
this.deleted = true;
|
|
||||||
this.go();
|
|
||||||
}
|
|
||||||
|
|
||||||
async filterCipherType(type: CipherType) {
|
|
||||||
this.searchBarService.setPlaceholderText(this.i18nService.t("searchType"));
|
|
||||||
await this.ciphersComponent.reload((c) => c.type === type);
|
|
||||||
this.clearFilters();
|
|
||||||
this.type = type;
|
|
||||||
this.go();
|
|
||||||
}
|
|
||||||
|
|
||||||
async filterFolder(folderId: string) {
|
|
||||||
folderId = folderId === "none" ? null : folderId;
|
|
||||||
this.searchBarService.setPlaceholderText(this.i18nService.t("searchFolder"));
|
|
||||||
await this.ciphersComponent.reload((c) => c.folderId === folderId);
|
|
||||||
this.clearFilters();
|
|
||||||
this.folderId = folderId == null ? "none" : folderId;
|
|
||||||
this.go();
|
|
||||||
}
|
|
||||||
|
|
||||||
async filterCollection(collectionId: string) {
|
|
||||||
this.searchBarService.setPlaceholderText(this.i18nService.t("searchCollection"));
|
|
||||||
await this.ciphersComponent.reload(
|
|
||||||
(c) => c.collectionIds != null && c.collectionIds.indexOf(collectionId) > -1
|
|
||||||
);
|
);
|
||||||
this.clearFilters();
|
this.activeFilter = vaultFilter;
|
||||||
this.collectionId = collectionId;
|
await this.ciphersComponent.reload(this.buildFilter(), vaultFilter.status === "trash");
|
||||||
this.updateCollectionProperties();
|
|
||||||
this.go();
|
this.go();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private calculateSearchBarLocalizationString(vaultFilter: VaultFilter): string {
|
||||||
|
if (vaultFilter.status === "favorites") {
|
||||||
|
return "searchFavorites";
|
||||||
|
}
|
||||||
|
if (vaultFilter.status === "trash") {
|
||||||
|
return "searchTrash";
|
||||||
|
}
|
||||||
|
if (vaultFilter.cipherType != null) {
|
||||||
|
return "searchType";
|
||||||
|
}
|
||||||
|
if (vaultFilter.selectedFolderId != null && vaultFilter.selectedFolderId != "none") {
|
||||||
|
return "searchFolder";
|
||||||
|
}
|
||||||
|
if (vaultFilter.selectedCollectionId != null) {
|
||||||
|
return "searchCollection";
|
||||||
|
}
|
||||||
|
if (vaultFilter.selectedOrganizationId != null) {
|
||||||
|
return "searchOrganization";
|
||||||
|
}
|
||||||
|
if (vaultFilter.myVaultOnly) {
|
||||||
|
return "searchMyVault";
|
||||||
|
}
|
||||||
|
|
||||||
|
return "searchVault";
|
||||||
|
}
|
||||||
|
|
||||||
|
private buildFilter(): (cipher: CipherView) => boolean {
|
||||||
|
return (cipher) => {
|
||||||
|
let cipherPassesFilter = true;
|
||||||
|
if (this.activeFilter.status === "favorites" && cipherPassesFilter) {
|
||||||
|
cipherPassesFilter = cipher.favorite;
|
||||||
|
}
|
||||||
|
if (this.activeFilter.status === "trash" && cipherPassesFilter) {
|
||||||
|
cipherPassesFilter = cipher.isDeleted;
|
||||||
|
}
|
||||||
|
if (this.activeFilter.cipherType != null && cipherPassesFilter) {
|
||||||
|
cipherPassesFilter = cipher.type === this.activeFilter.cipherType;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
this.activeFilter.selectedFolderId != null &&
|
||||||
|
this.activeFilter.selectedFolderId != "none" &&
|
||||||
|
cipherPassesFilter
|
||||||
|
) {
|
||||||
|
cipherPassesFilter = cipher.folderId === this.activeFilter.selectedFolderId;
|
||||||
|
}
|
||||||
|
if (this.activeFilter.selectedCollectionId != null && cipherPassesFilter) {
|
||||||
|
cipherPassesFilter =
|
||||||
|
cipher.collectionIds != null &&
|
||||||
|
cipher.collectionIds.indexOf(this.activeFilter.selectedCollectionId) > -1;
|
||||||
|
}
|
||||||
|
if (this.activeFilter.selectedOrganizationId != null && cipherPassesFilter) {
|
||||||
|
cipherPassesFilter = cipher.organizationId === this.activeFilter.selectedOrganizationId;
|
||||||
|
}
|
||||||
|
if (this.activeFilter.myVaultOnly && cipherPassesFilter) {
|
||||||
|
cipherPassesFilter = cipher.organizationId === null;
|
||||||
|
}
|
||||||
|
return cipherPassesFilter;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
async openGenerator(comingFromAddEdit: boolean, passwordType = true) {
|
async openGenerator(comingFromAddEdit: boolean, passwordType = true) {
|
||||||
if (this.modal != null) {
|
if (this.modal != null) {
|
||||||
this.modal.close();
|
this.modal.close();
|
||||||
|
@ -657,11 +662,11 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
childComponent.onSavedFolder.subscribe(async (folder: FolderView) => {
|
childComponent.onSavedFolder.subscribe(async (folder: FolderView) => {
|
||||||
this.modal.close();
|
this.modal.close();
|
||||||
await this.groupingsComponent.loadFolders();
|
await this.vaultFilterComponent.reloadCollectionsAndFolders(this.activeFilter);
|
||||||
});
|
});
|
||||||
childComponent.onDeletedFolder.subscribe(async (folder: FolderView) => {
|
childComponent.onDeletedFolder.subscribe(async (folder: FolderView) => {
|
||||||
this.modal.close();
|
this.modal.close();
|
||||||
await this.groupingsComponent.loadFolders();
|
await this.vaultFilterComponent.reloadCollectionsAndFolders(this.activeFilter);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.modal.onClosed.subscribe(() => {
|
this.modal.onClosed.subscribe(() => {
|
||||||
|
@ -687,17 +692,6 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
return !confirmed;
|
return !confirmed;
|
||||||
}
|
}
|
||||||
|
|
||||||
private clearFilters() {
|
|
||||||
this.folderId = null;
|
|
||||||
this.collectionId = null;
|
|
||||||
this.favorites = false;
|
|
||||||
this.type = null;
|
|
||||||
this.addCollectionIds = null;
|
|
||||||
this.addType = null;
|
|
||||||
this.addOrganizationId = null;
|
|
||||||
this.deleted = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private go(queryParams: any = null) {
|
private go(queryParams: any = null) {
|
||||||
if (queryParams == null) {
|
if (queryParams == null) {
|
||||||
queryParams = {
|
queryParams = {
|
||||||
|
@ -708,6 +702,8 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
folderId: this.folderId,
|
folderId: this.folderId,
|
||||||
collectionId: this.collectionId,
|
collectionId: this.collectionId,
|
||||||
deleted: this.deleted ? true : null,
|
deleted: this.deleted ? true : null,
|
||||||
|
organizationId: this.organizationId,
|
||||||
|
myVaultOnly: this.myVaultOnly,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -751,19 +747,21 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private updateCollectionProperties() {
|
private prefillNewCipherFromFilter() {
|
||||||
if (this.collectionId != null) {
|
if (this.activeFilter.selectedCollectionId != null) {
|
||||||
const collection = this.groupingsComponent.collections.filter(
|
const collection = this.vaultFilterComponent.collections.fullList.filter(
|
||||||
(c) => c.id === this.collectionId
|
(c) => c.id === this.activeFilter.selectedCollectionId
|
||||||
);
|
);
|
||||||
if (collection.length > 0) {
|
if (collection.length > 0) {
|
||||||
this.addOrganizationId = collection[0].organizationId;
|
this.addOrganizationId = collection[0].organizationId;
|
||||||
this.addCollectionIds = [this.collectionId];
|
this.addCollectionIds = [this.activeFilter.selectedCollectionId];
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
} else if (this.activeFilter.selectedOrganizationId) {
|
||||||
|
this.addOrganizationId = this.activeFilter.selectedOrganizationId;
|
||||||
|
}
|
||||||
|
if (this.activeFilter.selectedFolderId && this.activeFilter.selectedFolder) {
|
||||||
|
this.folderId = this.activeFilter.selectedFolderId;
|
||||||
}
|
}
|
||||||
this.addOrganizationId = null;
|
|
||||||
this.addCollectionIds = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async canNavigateAway(action: string, cipher?: CipherView) {
|
private async canNavigateAway(action: string, cipher?: CipherView) {
|
||||||
|
|
|
@ -1420,7 +1420,7 @@
|
||||||
"description": "Noun: a special folder to hold deleted items"
|
"description": "Noun: a special folder to hold deleted items"
|
||||||
},
|
},
|
||||||
"searchTrash": {
|
"searchTrash": {
|
||||||
"message": "Search trash"
|
"message": "Search Trash"
|
||||||
},
|
},
|
||||||
"permanentlyDeleteItem": {
|
"permanentlyDeleteItem": {
|
||||||
"message": "Permanently Delete Item"
|
"message": "Permanently Delete Item"
|
||||||
|
@ -1805,8 +1805,8 @@
|
||||||
"leftOrganization": {
|
"leftOrganization": {
|
||||||
"message": "You have left the organization."
|
"message": "You have left the organization."
|
||||||
},
|
},
|
||||||
"ssoKeyConnectorUnavailable": {
|
"ssoKeyConnectorError": {
|
||||||
"message": "Unable to reach the key connector, try again later."
|
"message": "Key Connector error: make sure Key Connector is available and working correctly."
|
||||||
},
|
},
|
||||||
"lockAllVaults": {
|
"lockAllVaults": {
|
||||||
"message": "Lock All Vaults"
|
"message": "Lock All Vaults"
|
||||||
|
@ -1902,6 +1902,15 @@
|
||||||
"service": {
|
"service": {
|
||||||
"message": "Service"
|
"message": "Service"
|
||||||
},
|
},
|
||||||
|
"allVaults": {
|
||||||
|
"message": "All Vaults"
|
||||||
|
},
|
||||||
|
"searchOrganization": {
|
||||||
|
"message": "Search Organization"
|
||||||
|
},
|
||||||
|
"searchMyVault": {
|
||||||
|
"message": "Search My Vault"
|
||||||
|
},
|
||||||
"forwardedEmail": {
|
"forwardedEmail": {
|
||||||
"message": "Forwarded Email Alias"
|
"message": "Forwarded Email Alias"
|
||||||
},
|
},
|
||||||
|
|
|
@ -64,7 +64,7 @@ export class HelpMenu implements IMenubarMenu {
|
||||||
return {
|
return {
|
||||||
id: "fileBugReport",
|
id: "fileBugReport",
|
||||||
label: this.localize("fileBugReport"),
|
label: this.localize("fileBugReport"),
|
||||||
click: () => shell.openExternal("https://github.com/bitwarden/desktop/issues"),
|
click: () => shell.openExternal("https://github.com/bitwarden/clients/issues"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@bitwarden/desktop",
|
"name": "@bitwarden/desktop",
|
||||||
"productName": "Bitwarden",
|
"productName": "Bitwarden",
|
||||||
"description": "A secure and free password manager for all of your devices.",
|
"description": "A secure and free password manager for all of your devices.",
|
||||||
"version": "1.33.1",
|
"version": "2022.5.1",
|
||||||
"author": "Bitwarden Inc. <hello@bitwarden.com> (https://bitwarden.com)",
|
"author": "Bitwarden Inc. <hello@bitwarden.com> (https://bitwarden.com)",
|
||||||
"homepage": "https://bitwarden.com",
|
"homepage": "https://bitwarden.com",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
|
@ -96,18 +96,21 @@ textarea {
|
||||||
}
|
}
|
||||||
|
|
||||||
div:not(.modal)::-webkit-scrollbar,
|
div:not(.modal)::-webkit-scrollbar,
|
||||||
.cdk-virtual-scroll-viewport::-webkit-scrollbar {
|
.cdk-virtual-scroll-viewport::-webkit-scrollbar,
|
||||||
|
.vault-filters::-webkit-scrollbar {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div:not(.modal)::-webkit-scrollbar-track,
|
div:not(.modal)::-webkit-scrollbar-track,
|
||||||
.cdk-virtual-scroll-viewport::-webkit-scrollbar-track {
|
.cdk-virtual-scroll-viewport::-webkit-scrollbar-track,
|
||||||
|
.vault-filters::-webkit-scrollbar-track {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
div:not(.modal)::-webkit-scrollbar-thumb,
|
div:not(.modal)::-webkit-scrollbar-thumb,
|
||||||
.cdk-virtual-scroll-viewport::-webkit-scrollbar-thumb {
|
.cdk-virtual-scroll-viewport::-webkit-scrollbar-thumb,
|
||||||
|
.vault-filters::-webkit-scrollbar-thumb {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin-right: 1px;
|
margin-right: 1px;
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed("headingColor");
|
color: themed("headingColor");
|
||||||
|
|
|
@ -168,3 +168,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.no-btn {
|
||||||
|
@extend a;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("textColor");
|
||||||
|
}
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,196 @@
|
||||||
|
.left-nav {
|
||||||
|
order: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 22%;
|
||||||
|
min-width: 175px;
|
||||||
|
max-width: 250px;
|
||||||
|
border-right: 1px solid #000000;
|
||||||
|
flex-grow: 1;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
@include themify($themes) {
|
||||||
|
background-color: themed("backgroundColorAlt");
|
||||||
|
border-right-color: themed("borderColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.vault-filters {
|
||||||
|
user-select: none;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
padding: 10px 15px;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.filter {
|
||||||
|
hr {
|
||||||
|
margin: 1em 0 1em 0;
|
||||||
|
@include themify($themes) {
|
||||||
|
border-color: themed("hrColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-heading {
|
||||||
|
display: flex;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: normal;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("headingColor");
|
||||||
|
}
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
@extend .no-btn;
|
||||||
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("headingButtonColor");
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("headingButtonHoverColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button.add-button {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
.filter-button {
|
||||||
|
h2 {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("primaryColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-button {
|
||||||
|
&:hover {
|
||||||
|
h2 {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("primaryColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-options {
|
||||||
|
word-break: break-all;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 0 15px 0;
|
||||||
|
.nested-filter-options {
|
||||||
|
list-style: none;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
padding-left: 0.85em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-option {
|
||||||
|
top: 8px;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("textColor");
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
> .filter-buttons {
|
||||||
|
.filter-button {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("primaryColor");
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-button {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-buttons {
|
||||||
|
padding: 5px 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
.filter-button {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("primaryColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
@extend .no-btn;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-button,
|
||||||
|
.toggle-button {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("headingButtonColor");
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("headingButtonHoverColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-button {
|
||||||
|
visibility: hidden;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
height: 55px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
.btn {
|
||||||
|
width: 100%;
|
||||||
|
font-size: $font-size-base * 0.8;
|
||||||
|
flex: 1;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
|
||||||
|
&:not(.active) {
|
||||||
|
@include themify($themes) {
|
||||||
|
background-color: themed("backgroundColorAlt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: $font-size-base * 1.5;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -147,3 +147,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list.full-height {
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
.container {
|
||||||
|
&.loading-spinner {
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
|
@ -14,4 +14,6 @@
|
||||||
@import "plugins.scss";
|
@import "plugins.scss";
|
||||||
@import "environment.scss";
|
@import "environment.scss";
|
||||||
@import "header.scss";
|
@import "header.scss";
|
||||||
|
@import "left-nav.scss";
|
||||||
|
@import "loading.scss";
|
||||||
@import "../../jslib/angular/src/scss/icons.scss";
|
@import "../../jslib/angular/src/scss/icons.scss";
|
||||||
|
|
|
@ -93,6 +93,7 @@ $themes: (
|
||||||
accountSwitcherBackgroundColor: $background-color,
|
accountSwitcherBackgroundColor: $background-color,
|
||||||
accountSwitcherTextColor: #ffffff,
|
accountSwitcherTextColor: #ffffff,
|
||||||
svgSuffix: "-light.svg",
|
svgSuffix: "-light.svg",
|
||||||
|
hrColor: #eeeeee,
|
||||||
),
|
),
|
||||||
dark: (
|
dark: (
|
||||||
textColor: #ffffff,
|
textColor: #ffffff,
|
||||||
|
@ -146,6 +147,7 @@ $themes: (
|
||||||
accountSwitcherBackgroundColor: #2f2f2f,
|
accountSwitcherBackgroundColor: #2f2f2f,
|
||||||
accountSwitcherTextColor: #ffffff,
|
accountSwitcherTextColor: #ffffff,
|
||||||
svgSuffix: "-dark.svg",
|
svgSuffix: "-dark.svg",
|
||||||
|
hrColor: #a3a3a3,
|
||||||
),
|
),
|
||||||
nord: (
|
nord: (
|
||||||
textColor: $nord5,
|
textColor: $nord5,
|
||||||
|
@ -199,6 +201,7 @@ $themes: (
|
||||||
accountSwitcherBackgroundColor: $nord0,
|
accountSwitcherBackgroundColor: $nord0,
|
||||||
accountSwitcherTextColor: $nord5,
|
accountSwitcherTextColor: $nord5,
|
||||||
svgSuffix: "-dark.svg",
|
svgSuffix: "-dark.svg",
|
||||||
|
hrColor: $nord4,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,7 @@ app-root {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
> .groupings,
|
> .items > div,
|
||||||
> .items,
|
|
||||||
> .details,
|
> .details,
|
||||||
> .logo {
|
> .logo {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -29,275 +28,6 @@ app-root {
|
||||||
|
|
||||||
> .items {
|
> .items {
|
||||||
order: 2;
|
order: 2;
|
||||||
}
|
|
||||||
|
|
||||||
> .details {
|
|
||||||
order: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
> .logo {
|
|
||||||
order: 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
> .groupings {
|
|
||||||
order: 1;
|
|
||||||
width: 22%;
|
|
||||||
min-width: 175px;
|
|
||||||
max-width: 600px;
|
|
||||||
border-right: 1px solid #000000;
|
|
||||||
|
|
||||||
@include themify($themes) {
|
|
||||||
background-color: themed("backgroundColorAlt");
|
|
||||||
border-right-color: themed("borderColor");
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
flex-grow: 1;
|
|
||||||
justify-content: space-between;
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.inner-content {
|
|
||||||
padding-bottom: 0;
|
|
||||||
padding-right: 5px;
|
|
||||||
user-select: none;
|
|
||||||
|
|
||||||
> ul,
|
|
||||||
> div > ul {
|
|
||||||
margin: 0 0 15px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
text-transform: uppercase;
|
|
||||||
font-size: $font-size-base;
|
|
||||||
font-weight: normal;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("headingColor");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.heading {
|
|
||||||
display: flex;
|
|
||||||
|
|
||||||
button {
|
|
||||||
margin-left: auto;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("headingButtonColor");
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("headingButtonHoverColor");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ul:not(.bwi-ul) {
|
|
||||||
li {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ul.bwi-ul {
|
|
||||||
li {
|
|
||||||
word-break: break-all;
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
top: 8px;
|
|
||||||
width: 1.1em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Nested indentions
|
|
||||||
ul.bwi-ul {
|
|
||||||
// Level 1
|
|
||||||
li {
|
|
||||||
> button {
|
|
||||||
padding-left: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
left: -4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active > button .bwi-li {
|
|
||||||
left: 11px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Level 2
|
|
||||||
ul li {
|
|
||||||
> button {
|
|
||||||
padding-left: 23px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
left: 7px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active > button .bwi-li {
|
|
||||||
left: 22px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Level 3
|
|
||||||
ul ul li {
|
|
||||||
> button {
|
|
||||||
padding-left: 34px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
left: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active > button .bwi-li {
|
|
||||||
left: 33px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Level 4
|
|
||||||
ul ul ul li {
|
|
||||||
> button {
|
|
||||||
padding-left: 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
left: 29px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active > button .bwi-li {
|
|
||||||
left: 44px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Level 5
|
|
||||||
ul ul ul ul li {
|
|
||||||
> button {
|
|
||||||
padding-left: 56px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
left: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active > button .bwi-li {
|
|
||||||
left: 55px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Level 6
|
|
||||||
ul ul ul ul ul li {
|
|
||||||
> button {
|
|
||||||
padding-left: 67px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
left: 51px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active > button .bwi-li {
|
|
||||||
left: 66px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Level 7
|
|
||||||
ul ul ul ul ul ul li {
|
|
||||||
> button {
|
|
||||||
padding-left: 78px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bwi-li {
|
|
||||||
left: 62px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active > button .bwi-li {
|
|
||||||
left: 77px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
li {
|
|
||||||
button {
|
|
||||||
padding: 5px 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("textColor");
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
visibility: hidden;
|
|
||||||
margin-left: auto;
|
|
||||||
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("headingButtonColor");
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("headingButtonHoverColor");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
span {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
margin-left: -15px;
|
|
||||||
margin-right: -5px;
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 5px;
|
|
||||||
|
|
||||||
@include themify($themes) {
|
|
||||||
background-color: themed("groupingsActiveColor");
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
@include themify($themes) {
|
|
||||||
background-color: themed("backgroundColorAlt");
|
|
||||||
}
|
|
||||||
|
|
||||||
margin-left: -15px;
|
|
||||||
margin-right: -5px;
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .items {
|
|
||||||
width: 28%;
|
width: 28%;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
max-width: 350px;
|
max-width: 350px;
|
||||||
|
@ -336,6 +66,7 @@ app-root {
|
||||||
> .details {
|
> .details {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
order: 3;
|
||||||
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
background-color: themed("backgroundColorAlt2");
|
background-color: themed("backgroundColorAlt2");
|
||||||
|
@ -378,6 +109,7 @@ app-root {
|
||||||
> .logo {
|
> .logo {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
order: 3;
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
|
@ -429,31 +161,4 @@ app-root {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav {
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
.btn {
|
|
||||||
width: 100%;
|
|
||||||
font-size: $font-size-base * 0.8;
|
|
||||||
flex: 1;
|
|
||||||
border: 0;
|
|
||||||
border-radius: 0;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
|
|
||||||
&:not(.active) {
|
|
||||||
@include themify($themes) {
|
|
||||||
background-color: themed("backgroundColorAlt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
i {
|
|
||||||
font-size: $font-size-base * 1.5;
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 2px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,18 +4,18 @@
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>bitwarden</id>
|
<id>bitwarden</id>
|
||||||
<version>0.0.0</version>
|
<version>0.0.0</version>
|
||||||
<packageSourceUrl>https://github.com/bitwarden/desktop/tree/master/stores/chocolatey</packageSourceUrl>
|
<packageSourceUrl>https://github.com/bitwarden/clients/tree/master/apps/desktop/stores/chocolatey</packageSourceUrl>
|
||||||
<owners>kspearrin</owners>
|
<owners>kspearrin</owners>
|
||||||
<title>Bitwarden</title>
|
<title>Bitwarden</title>
|
||||||
<authors>Bitwarden Inc.</authors>
|
<authors>Bitwarden Inc.</authors>
|
||||||
<projectUrl>https://bitwarden.com/</projectUrl>
|
<projectUrl>https://bitwarden.com/</projectUrl>
|
||||||
<iconUrl>https://cdn.rawgit.com/bitwarden/desktop/51dd1341/resources/icon.png</iconUrl>
|
<iconUrl>https://raw.githubusercontent.com/bitwarden/brand/master/icons/256x256.png</iconUrl>
|
||||||
<copyright>Copyright © 2015-2022 Bitwarden Inc.</copyright>
|
<copyright>Copyright © 2015-2022 Bitwarden Inc.</copyright>
|
||||||
<projectSourceUrl>https://github.com/bitwarden/desktop/</projectSourceUrl>
|
<projectSourceUrl>https://github.com/bitwarden/clients/</projectSourceUrl>
|
||||||
<docsUrl>https://bitwarden.com/help/</docsUrl>
|
<docsUrl>https://bitwarden.com/help/</docsUrl>
|
||||||
<bugTrackerUrl>https://github.com/bitwarden/desktop/issues</bugTrackerUrl>
|
<bugTrackerUrl>https://github.com/bitwarden/clients/issues</bugTrackerUrl>
|
||||||
<releaseNotes>https://github.com/bitwarden/desktop/releases</releaseNotes>
|
<releaseNotes>https://github.com/bitwarden/clients/releases</releaseNotes>
|
||||||
<licenseUrl>https://github.com/bitwarden/desktop/blob/master/LICENSE.txt</licenseUrl>
|
<licenseUrl>https://github.com/bitwarden/clients/blob/master/LICENSE.txt</licenseUrl>
|
||||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
<tags>bitwarden password manager</tags>
|
<tags>bitwarden password manager</tags>
|
||||||
<summary>A secure and free password manager for all of your devices.</summary>
|
<summary>A secure and free password manager for all of your devices.</summary>
|
||||||
|
|
Loading…
Reference in New Issue