├── .github └── workflows │ └── main.yml ├── .gitignore ├── COPYING ├── README.md ├── com.github.skarva.lockbox.yml ├── data ├── com.github.skarva.lockbox.appdata.xml.in ├── com.github.skarva.lockbox.desktop.in ├── com.github.skarva.lockbox.gschema.xml ├── icons │ ├── 16 │ │ └── com.github.skarva.lockbox.svg │ ├── 24 │ │ └── com.github.skarva.lockbox.svg │ ├── 32 │ │ └── com.github.skarva.lockbox.svg │ ├── 48 │ │ └── com.github.skarva.lockbox.svg │ ├── 64 │ │ └── com.github.skarva.lockbox.svg │ ├── 128 │ │ └── com.github.skarva.lockbox.svg │ └── icon.svg ├── lockbox.gresource.xml ├── meson.build ├── screenshot1.png ├── screenshot2.png ├── screenshot3.png └── styles │ └── Note.css ├── meson.build ├── meson └── post_install.py ├── po ├── LINGUAS ├── POTFILES ├── com.github.skarva.lockbox.pot ├── meson.build ├── nl.po ├── pt.po └── se.po └── src ├── Application.vala ├── Dialogs ├── LoginDialog.vala ├── NoteDialog.vala └── PreferencesDialog.vala ├── MainWindow.vala ├── Schemas ├── Login.vala └── Note.vala ├── Services ├── Collection.vala └── Settings.vala ├── Widgets ├── CollectionListRow.vala ├── HeaderBar.vala ├── LaunchScreen.vala └── WelcomeScreen.vala ├── config.vala.in └── meson.build /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | # This workflow will run for any pull request or pushed commit 4 | on: [push, pull_request] 5 | 6 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 7 | jobs: 8 | # This workflow contains a single job called "flatpak" 9 | flatpak: 10 | # The type of runner that the job will run on 11 | runs-on: ubuntu-latest 12 | # This job runs in a special container designed for building Flatpaks for AppCenter 13 | container: 14 | image: ghcr.io/elementary/flatpak-platform/runtime:6 15 | options: --privileged 16 | 17 | # Steps represent a sequence of tasks that will be executed as part of the job 18 | steps: 19 | # Checks-out your repository under $GITHUB_WORKSPACE, so the job can access it 20 | - uses: actions/checkout@v2 21 | # Builds your flatpak manifest using the Flatpak Builder action 22 | - uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3 23 | with: 24 | # This is the name of the Bundle file we're building and can be anything you like 25 | bundle: com.github.skarva.lockbox.flatpak 26 | # This uses your app's RDNN ID 27 | manifest-path: com.github.skarva.lockbox.yml 28 | # You can automatically run any of the tests you've created as part of this workflow 29 | run-tests: true 30 | # These lines specify the location of the elementary Runtime and Sdk 31 | repository-name: appcenter 32 | repository-url: https://flatpak.elementary.io/repo.flatpakrepo 33 | cache-key: "flatpak-builder-${{ github.sha }}" 34 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | src/config.vala 3 | .flatkpak-builder/ 4 | *~ 5 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Icon 3 |

4 |

Lock Box

5 |

6 | Get it on AppCenter 7 |

8 | 9 | ![Lock Box Screenshot](data/screenshot1.png?raw=true) 10 | 11 | ## Lock your secrets up tight 12 | 13 | Keep your notes and website logins secure in an easy to manage collection. It is ready to go when you're logged in, and securely encrypted when you're not. 14 | 15 | ### Features 16 | * Fast search 17 | * Sort by name or date added 18 | * Access to logins saved in Epiphany 19 | 20 | ## Developing and Building 21 | 22 | You'll need the following dependencies: 23 | * meson 24 | * libgranite-dev 25 | * libsecret-1-dev 26 | * valac 27 | 28 | Run `meson build` to configure the build environment. Change to the build directory and run `ninja` to build 29 | 30 | meson build --prefix=/usr 31 | cd build 32 | ninja 33 | 34 | To install, use `ninja install`, then execute with `com.github.skarva.lockbox` 35 | 36 | sudo ninja install 37 | com.github.skarva.lockbox 38 | -------------------------------------------------------------------------------- /com.github.skarva.lockbox.yml: -------------------------------------------------------------------------------- 1 | app-id: com.github.skarva.lockbox 2 | 3 | runtime: io.elementary.Platform 4 | runtime-version: '6.1' 5 | sdk: io.elementary.Sdk 6 | 7 | command: com.github.skarva.lockbox 8 | 9 | finish-args: 10 | - '--share=ipc' 11 | - '--socket=fallback-x11' 12 | - '--socket=wayland' 13 | - '--talk-name=org.freedesktop.secrets' 14 | 15 | modules: 16 | - name: lockbox 17 | buildsystem: meson 18 | sources: 19 | - type: dir 20 | path: . 21 | -------------------------------------------------------------------------------- /data/com.github.skarva.lockbox.appdata.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.github.skarva.lockbox 4 | 5 | Lock Box 6 | Lock your secrets up tight 7 | 8 | CC-BY-4.0 9 | GPL-3.0-or-later 10 | 11 | 12 |

13 | Keep your notes and website credentials secure in an easy-to-manage collection. It is ready to go when you're logged in, and securely encrypted when you're not. 14 |

15 |
16 | 17 | com.github.skarva.lockbox.desktop 18 | 19 | https://github.com/skarva/lockbox 20 | 21 | 22 | 23 | https://raw.githubusercontent.com/skarva/lockbox/master/data/screenshot1.png 24 | 25 | 26 | https://raw.githubusercontent.com/skarva/lockbox/master/data/screenshot2.png 27 | 28 | 29 | https://raw.githubusercontent.com/skarva/lockbox/master/data/screenshot3.png 30 | 31 | 32 | 33 | 34 | 35 | 36 |

New packaging, same great app

37 |
    38 |
  • Flatpak-ify Lock Box for eOS 6
  • 39 |
  • Fix typo in Epiphany browser by @megatux
  • 40 |
  • Icon Tweaks by @Fatih20
  • 41 |
  • Added Translation (Portuguese-Portugal) by @rottenpants466
  • 42 |
43 |
44 |
45 | 46 | 47 |

New coat of paint

48 |
    49 |
  • New icon thanks to Fatih
  • 50 |
  • Additional back-end updates thanks to Ryo
  • 51 |
52 |
53 |
54 | 55 | 56 |

Quality of life patches!

57 |
    58 |
  • Show password when you edit login credentials
  • 59 |
  • Double-clicking a login opens the site in your default browser
  • 60 |
  • Search is focused the moment you start typing
  • 61 |
  • Dutch translation (Thanks to Vistaus!)
  • 62 |
63 |
64 |
65 | 66 | 67 |

Initial release

68 |
69 |
70 |
71 | 72 | 73 | #667885 74 | rgb(255, 255, 255) 75 | 5 76 | pk_live_51FCdRMKRbBpGR3zW13QhdM6Rw8JSHJJOvHzhR8CQh0aEZiILo339t3Mg2tevLcRtXyYnFlokxaWSgB2c3USkeE5T00IsFkkBAN 77 | 78 | 79 | 80 |
81 | -------------------------------------------------------------------------------- /data/com.github.skarva.lockbox.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | 5 | Name=Lock Box 6 | Comment=Lock your secrets up tight 7 | Categories=Utility;GTK; 8 | 9 | Icon=com.github.skarva.lockbox 10 | Exec=com.github.skarva.lockbox 11 | Terminal=false 12 | Keywords=Password;Login;Notes; 13 | -------------------------------------------------------------------------------- /data/com.github.skarva.lockbox.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | false 11 | The maximized state of the main window. 12 | The maximized state of the main window. 13 | 14 | 15 | 800 16 | Width of the main window. 17 | Width of the main window. 18 | 19 | 20 | 600 21 | Height of the main window. 22 | Height of the main window. 23 | 24 | 25 | -1 26 | X-axis position of the main window. 27 | X-axis position of the main window. 28 | 29 | 30 | -1 31 | Y-axis position of the main window. 32 | Y-axis position of the main window. 33 | 34 | 35 | 36 | 37 | true 38 | Clear clipboard after timeout. 39 | Clear clipboard after timeout. 40 | 41 | 42 | 10 43 | Timeout for clearing clipboard in seconds. 44 | Timeout for clearing clipboard in seconds. 45 | 46 | 47 | false 48 | Toggle for application dark mode. 49 | Toggle for appication dark mode. 50 | 51 | 52 | 'name' 53 | An index of the sorting method 54 | An index of the sorting method to apply to the collection list 55 | 56 | 57 | true 58 | Toggle for ascending or descending sort 59 | Toggle for ascending or descending sort 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /data/icons/icon.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml 1572 | 1573 | 1574 | 1580 | 1584 | 1588 | 1592 | 1596 | 1597 | 1603 | 1607 | 1611 | 1612 | 1613 | 1614 | 1615 | 1616 | 1617 | 1618 | 1619 | 1620 | 1621 | 1718 | -------------------------------------------------------------------------------- /data/lockbox.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | styles/Note.css 6 | 7 | 8 | -------------------------------------------------------------------------------- /data/meson.build: -------------------------------------------------------------------------------- 1 | icon_sizes = ['16', '24', '32', '48', '64', '128'] 2 | 3 | foreach i : icon_sizes 4 | install_data( 5 | join_paths('icons', i, 'com.github.skarva.lockbox.svg'), 6 | install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps') 7 | ) 8 | install_data( 9 | join_paths('icons', i, 'com.github.skarva.lockbox.svg'), 10 | install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i + '@2', 'apps') 11 | ) 12 | endforeach 13 | 14 | install_data( 15 | meson.project_name() + '.gschema.xml', 16 | install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas') 17 | ) 18 | 19 | gnome = import('gnome') 20 | resources = gnome.compile_resources( 21 | 'lockbox-resources', 22 | files('lockbox.gresource.xml'), 23 | source_dir: [ join_paths(meson.source_root(), 'data') ] 24 | ) 25 | 26 | #Translate and install our .desktop file 27 | i18n.merge_file( 28 | input: meson.project_name() + '.desktop.in', 29 | output: meson.project_name() + '.desktop', 30 | po_dir: join_paths(meson.source_root(), 'po'), 31 | type: 'desktop', 32 | install: true, 33 | install_dir: join_paths(get_option('datadir'), 'applications') 34 | ) 35 | 36 | #Translate and install our .appdata file 37 | i18n.merge_file( 38 | input: meson.project_name() + '.appdata.xml.in', 39 | output: meson.project_name() + '.appdata.xml', 40 | po_dir: join_paths(meson.source_root(), 'po'), 41 | install: true, 42 | install_dir: join_paths(get_option('datadir'), 'appdata') 43 | ) 44 | 45 | desktop_file_validate = find_program('desktop-file-validate', required:false) 46 | 47 | if desktop_file_validate.found() 48 | test ( 49 | 'Validate desktop file', 50 | desktop_file_validate, 51 | args: join_paths(meson.current_build_dir (), meson.project_name() + '.desktop') 52 | ) 53 | endif 54 | 55 | appstreamcli = find_program(['appstreamcli', 'appstream-util'], required:false) 56 | 57 | if appstreamcli.found() 58 | test ( 59 | 'Validate appdata file', 60 | appstreamcli, 61 | args: ['validate', join_paths(meson.current_build_dir (), meson.project_name() + '.appdata.xml')] 62 | ) 63 | endif 64 | -------------------------------------------------------------------------------- /data/screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skarva/lockbox/a4739deb0616e5d4c925a1ca7df1c22e147f49d1/data/screenshot1.png -------------------------------------------------------------------------------- /data/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skarva/lockbox/a4739deb0616e5d4c925a1ca7df1c22e147f49d1/data/screenshot2.png -------------------------------------------------------------------------------- /data/screenshot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skarva/lockbox/a4739deb0616e5d4c925a1ca7df1c22e147f49d1/data/screenshot3.png -------------------------------------------------------------------------------- /data/styles/Note.css: -------------------------------------------------------------------------------- 1 | /* Copyright 2019 skarva llc */ 2 | 3 | .note-content { 4 | padding: 3px; 5 | 6 | border-bottom-color: rgba(0,0,0,0.25); 7 | border-bottom-left-radius: 2.5px; 8 | border-bottom-right-radius: 2.5px; 9 | border-bottom-style: solid; 10 | border-bottom-width: 1px; 11 | 12 | border-left-color: rgba(0,0,0,0.25); 13 | border-left-style: solid; 14 | border-left-width: 1px; 15 | 16 | border-right-color: rgba(0,0,0,0.25); 17 | border-right-style: solid; 18 | border-right-width: 1px; 19 | 20 | border-top-color: rgba(0,0,0,0.25); 21 | border-top-left-radius: 2.5px; 22 | border-top-right-radius: 2.5px; 23 | border-top-style: solid; 24 | border-top-width: 1px; 25 | 26 | transition-delay: 0; 27 | transition-duration: 0.2s; 28 | transition-timing-function: ease-out; 29 | } 30 | 31 | .note-content-focus { 32 | border-bottom-color: rgba(62,161,239,0.5); 33 | border-bottom-left-radius: 2.5px; 34 | border-bottom-right-radius: 2.5px; 35 | border-bottom-style: solid; 36 | border-bottom-width: 1px; 37 | 38 | border-left-color: rgba(62,161,239,0.5); 39 | border-left-style: solid; 40 | border-left-width: 1px; 41 | 42 | border-right-color: rgba(62,161,239,0.5); 43 | border-right-style: solid; 44 | border-right-width: 1px; 45 | 46 | border-top-color: rgba(62,161,239,0.5); 47 | border-top-left-radius: 2.5px; 48 | border-top-right-radius: 2.5px; 49 | border-top-style: solid; 50 | border-top-width: 1px; 51 | 52 | transition-delay: 0; 53 | transition-duration: 0.2s; 54 | transition-timing-function: ease-in; 55 | } 56 | 57 | .note-text text { 58 | background-image: linear-gradient(rgb(60,60,60), rgb(62,62,62)); 59 | } 60 | -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- 1 | project('com.github.skarva.lockbox', 'vala', 'c', meson_version: '>= 0.43', version: '1.2') 2 | 3 | i18n = import('i18n') 4 | 5 | add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')], language: 'vala') 6 | add_project_arguments([ 7 | '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()) 8 | ], 9 | language: 'c', 10 | ) 11 | 12 | dependencies = [ 13 | dependency('libsecret-1'), 14 | dependency('granite'), 15 | meson.get_compiler('vala').find_library('posix'), 16 | meson.get_compiler('c').find_library('m', required : false) 17 | ] 18 | 19 | subdir('data') 20 | subdir('src') 21 | subdir('po') 22 | 23 | meson.add_install_script('meson/post_install.py') 24 | -------------------------------------------------------------------------------- /meson/post_install.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import os 4 | import subprocess 5 | 6 | schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas') 7 | iconcachedir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'icons', 'hicolor') 8 | 9 | if not os.environ.get('DESTDIR'): 10 | print('Compiling gsettings schemas…') 11 | subprocess.call(['glib-compile-schemas', schemadir]) 12 | 13 | print('Updating desktop icon cache…') 14 | subprocess.call(['gtk-update-icon-cache', '-qtf', iconcachedir]) 15 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | # please keep this list sorted alphabetically 2 | # 3 | nl 4 | pt 5 | se 6 | -------------------------------------------------------------------------------- /po/POTFILES: -------------------------------------------------------------------------------- 1 | src/Application.vala 2 | src/MainWindow.vala 3 | src/Dialogs/LoginDialog.vala 4 | src/Dialogs/NoteDialog.vala 5 | src/Dialogs/PreferencesDialog.vala 6 | src/Widgets/HeaderBar.vala 7 | src/Widgets/LaunchScreen.vala 8 | src/Widgets/WelcomeScreen.vala 9 | data/com.github.skarva.lockbox.appdata.xml.in 10 | data/com.github.skarva.lockbox.desktop.in 11 | -------------------------------------------------------------------------------- /po/com.github.skarva.lockbox.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.skarva.lockbox package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: com.github.skarva.lockbox\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2019-08-30 21:31-0400\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=CHARSET\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: src/Dialogs/LoginDialog.vala:39 src/Dialogs/LoginDialog.vala:56 21 | msgid "Add Login" 22 | msgstr "" 23 | 24 | #: src/Dialogs/LoginDialog.vala:59 src/Dialogs/NoteDialog.vala:57 25 | msgid "Name:" 26 | msgstr "" 27 | 28 | #: src/Dialogs/LoginDialog.vala:67 29 | msgid "URI:" 30 | msgstr "" 31 | 32 | #: src/Dialogs/LoginDialog.vala:75 33 | msgid "Username:" 34 | msgstr "" 35 | 36 | #: src/Dialogs/LoginDialog.vala:83 37 | msgid "Password:" 38 | msgstr "" 39 | 40 | #: src/Dialogs/LoginDialog.vala:94 src/Dialogs/NoteDialog.vala:82 41 | msgid "Cancel" 42 | msgstr "" 43 | 44 | #: src/Dialogs/LoginDialog.vala:95 45 | msgid "Save Login" 46 | msgstr "" 47 | 48 | #: src/Dialogs/LoginDialog.vala:121 src/Dialogs/NoteDialog.vala:116 49 | msgid "Some fields are still empty!" 50 | msgstr "" 51 | 52 | #: src/Dialogs/LoginDialog.vala:122 53 | msgid "You must fill in all the fields in order to save your login info." 54 | msgstr "" 55 | 56 | #: src/Dialogs/NoteDialog.vala:37 src/Dialogs/NoteDialog.vala:54 57 | msgid "Add Note" 58 | msgstr "" 59 | 60 | #: src/Dialogs/NoteDialog.vala:66 61 | msgid "Note:" 62 | msgstr "" 63 | 64 | #: src/Dialogs/NoteDialog.vala:83 65 | msgid "Save note" 66 | msgstr "" 67 | 68 | #: src/Dialogs/NoteDialog.vala:117 69 | msgid "You must fill in all the fields in order to save your note." 70 | msgstr "" 71 | 72 | #: src/Dialogs/PreferencesDialog.vala:31 src/Widgets/HeaderBar.vala:72 73 | msgid "Preferences" 74 | msgstr "" 75 | 76 | #: src/Dialogs/PreferencesDialog.vala:48 77 | msgid "Security" 78 | msgstr "" 79 | 80 | #: src/Dialogs/PreferencesDialog.vala:52 81 | msgid "Clear clipboard after timeout:" 82 | msgstr "" 83 | 84 | #: src/Dialogs/PreferencesDialog.vala:57 85 | msgid "Timeout (secs):" 86 | msgstr "" 87 | 88 | #: src/Dialogs/PreferencesDialog.vala:65 89 | msgid "Interface" 90 | msgstr "" 91 | 92 | #: src/Dialogs/PreferencesDialog.vala:69 93 | msgid "Dark Mode:" 94 | msgstr "" 95 | 96 | #: src/Dialogs/PreferencesDialog.vala:74 97 | msgid "Close" 98 | msgstr "" 99 | 100 | #: src/Widgets/HeaderBar.vala:37 101 | msgid "Add New Login" 102 | msgstr "" 103 | 104 | #: src/Widgets/HeaderBar.vala:41 105 | msgid "Add Secure Note" 106 | msgstr "" 107 | 108 | #: src/Widgets/HeaderBar.vala:58 109 | msgid "Add Login or Note" 110 | msgstr "" 111 | 112 | #: src/Widgets/HeaderBar.vala:65 113 | msgid "Search for sites and notes (Ctrl+F)..." 114 | msgstr "" 115 | 116 | #: src/Widgets/HeaderBar.vala:76 117 | msgid "Sort by Name" 118 | msgstr "" 119 | 120 | #: src/Widgets/HeaderBar.vala:82 121 | msgid "Sort by Created Date" 122 | msgstr "" 123 | 124 | #: src/Widgets/HeaderBar.vala:103 125 | msgid "Menu" 126 | msgstr "" 127 | 128 | #: src/Widgets/LaunchScreen.vala:24 129 | #: data/com.github.skarva.lockbox.appdata.xml.in:7 130 | #: data/com.github.skarva.lockbox.desktop.in:3 131 | msgid "Lock Box" 132 | msgstr "" 133 | 134 | #: src/Widgets/LaunchScreen.vala:25 135 | msgid "Sit tight while your secret clearance is verified" 136 | msgstr "" 137 | 138 | #: src/Widgets/WelcomeScreen.vala:28 139 | msgid "Nothing to see here" 140 | msgstr "" 141 | 142 | #: src/Widgets/WelcomeScreen.vala:29 143 | msgid "Start storing your important info securely" 144 | msgstr "" 145 | 146 | #: src/Widgets/WelcomeScreen.vala:34 147 | msgid "Configure" 148 | msgstr "" 149 | 150 | #: src/Widgets/WelcomeScreen.vala:34 151 | msgid "Customize your lock box" 152 | msgstr "" 153 | 154 | #: src/Widgets/WelcomeScreen.vala:35 155 | msgid "Store Login" 156 | msgstr "" 157 | 158 | #: src/Widgets/WelcomeScreen.vala:35 159 | msgid "Add website login details to your lock box" 160 | msgstr "" 161 | 162 | #: src/Widgets/WelcomeScreen.vala:36 163 | msgid "Store Note" 164 | msgstr "" 165 | 166 | #: src/Widgets/WelcomeScreen.vala:36 167 | msgid "Add a new note to yourself to your lock box" 168 | msgstr "" 169 | 170 | #: data/com.github.skarva.lockbox.appdata.xml.in:8 171 | msgid "Lock your secrets up tight" 172 | msgstr "" 173 | 174 | #: data/com.github.skarva.lockbox.appdata.xml.in:11 175 | msgid "" 176 | "Keep your notes and website credentials secure in an easy-to-manage " 177 | "collection. It is ready to go when you're logged in, and securely encrypted " 178 | "when you're not." 179 | msgstr "" 180 | 181 | #: data/com.github.skarva.lockbox.appdata.xml.in:12 182 | msgid "Features" 183 | msgstr "" 184 | 185 | #: data/com.github.skarva.lockbox.appdata.xml.in:14 186 | msgid "Fast search" 187 | msgstr "" 188 | 189 | #: data/com.github.skarva.lockbox.appdata.xml.in:15 190 | msgid "Sort by name or date added" 191 | msgstr "" 192 | 193 | #: data/com.github.skarva.lockbox.appdata.xml.in:16 194 | msgid "Access to passwords saved in Epiphany" 195 | msgstr "" 196 | 197 | #: data/com.github.skarva.lockbox.appdata.xml.in:27 198 | msgid "Dark Theme" 199 | msgstr "" 200 | 201 | #: data/com.github.skarva.lockbox.appdata.xml.in:31 202 | msgid "Light Theme" 203 | msgstr "" 204 | 205 | #: data/com.github.skarva.lockbox.appdata.xml.in:35 206 | msgid "Creating a new secret item" 207 | msgstr "" 208 | 209 | #: data/com.github.skarva.lockbox.appdata.xml.in:39 210 | msgid "Quick searching" 211 | msgstr "" 212 | 213 | #: data/com.github.skarva.lockbox.appdata.xml.in:44 214 | msgid "skarva llc" 215 | msgstr "" 216 | 217 | #: data/com.github.skarva.lockbox.appdata.xml.in:53 218 | msgid "Initial release" 219 | msgstr "" 220 | 221 | #: data/com.github.skarva.lockbox.desktop.in:4 222 | msgid "Password Manager" 223 | msgstr "" 224 | 225 | #: data/com.github.skarva.lockbox.desktop.in:5 226 | msgid "Secure and manage your secure information" 227 | msgstr "" 228 | 229 | #: data/com.github.skarva.lockbox.desktop.in:8 230 | msgid "com.github.skarva.lockbox" 231 | msgstr "" 232 | 233 | #: data/com.github.skarva.lockbox.desktop.in:12 234 | msgid "Password;Login;Notes;" 235 | msgstr "" 236 | -------------------------------------------------------------------------------- /po/meson.build: -------------------------------------------------------------------------------- 1 | i18n.gettext(meson.project_name(), 2 | args: ['--directory='+meson.source_root(), '--from-code=UTF-8'] 3 | ) 4 | -------------------------------------------------------------------------------- /po/nl.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.skarva.lockbox package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: com.github.skarva.lockbox\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2019-08-30 21:31-0400\n" 11 | "PO-Revision-Date: 2019-11-04 18:14+0100\n" 12 | "Language-Team: \n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "X-Generator: Poedit 2.2.4\n" 17 | "Last-Translator: Heimen Stoffels \n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | "Language: nl\n" 20 | 21 | #: src/Dialogs/LoginDialog.vala:39 src/Dialogs/LoginDialog.vala:56 22 | msgid "Add Login" 23 | msgstr "Account toevoegen" 24 | 25 | #: src/Dialogs/LoginDialog.vala:59 src/Dialogs/NoteDialog.vala:57 26 | msgid "Name:" 27 | msgstr "Naam:" 28 | 29 | #: src/Dialogs/LoginDialog.vala:67 30 | msgid "URI:" 31 | msgstr "URI:" 32 | 33 | #: src/Dialogs/LoginDialog.vala:75 34 | msgid "Username:" 35 | msgstr "Gebruikersnaam:" 36 | 37 | #: src/Dialogs/LoginDialog.vala:83 38 | msgid "Password:" 39 | msgstr "Wachtwoord:" 40 | 41 | #: src/Dialogs/LoginDialog.vala:94 src/Dialogs/NoteDialog.vala:82 42 | msgid "Cancel" 43 | msgstr "Annuleren" 44 | 45 | #: src/Dialogs/LoginDialog.vala:95 46 | msgid "Save Login" 47 | msgstr "Account opslaan" 48 | 49 | #: src/Dialogs/LoginDialog.vala:121 src/Dialogs/NoteDialog.vala:116 50 | msgid "Some fields are still empty!" 51 | msgstr "Enkele velden zijn blanco!" 52 | 53 | #: src/Dialogs/LoginDialog.vala:122 54 | msgid "You must fill in all the fields in order to save your login info." 55 | msgstr "Vul alle velden in om je inloggegevens op te slaan." 56 | 57 | #: src/Dialogs/NoteDialog.vala:37 src/Dialogs/NoteDialog.vala:54 58 | msgid "Add Note" 59 | msgstr "Aantekening toevoegen" 60 | 61 | #: src/Dialogs/NoteDialog.vala:66 62 | msgid "Note:" 63 | msgstr "Aantekening:" 64 | 65 | #: src/Dialogs/NoteDialog.vala:83 66 | msgid "Save note" 67 | msgstr "Aantekening opslaan" 68 | 69 | #: src/Dialogs/NoteDialog.vala:117 70 | msgid "You must fill in all the fields in order to save your note." 71 | msgstr "Vul alle velden in om je aantekening op te slaan." 72 | 73 | #: src/Dialogs/PreferencesDialog.vala:31 src/Widgets/HeaderBar.vala:72 74 | msgid "Preferences" 75 | msgstr "Voorkeuren" 76 | 77 | #: src/Dialogs/PreferencesDialog.vala:48 78 | msgid "Security" 79 | msgstr "Beveiliging" 80 | 81 | #: src/Dialogs/PreferencesDialog.vala:52 82 | msgid "Clear clipboard after timeout:" 83 | msgstr "Klembord wissen na time-out:" 84 | 85 | #: src/Dialogs/PreferencesDialog.vala:57 86 | msgid "Timeout (secs):" 87 | msgstr "Time-out (in sec.):" 88 | 89 | #: src/Dialogs/PreferencesDialog.vala:65 90 | msgid "Interface" 91 | msgstr "Uiterlijk" 92 | 93 | #: src/Dialogs/PreferencesDialog.vala:69 94 | msgid "Dark Mode:" 95 | msgstr "Donker thema:" 96 | 97 | #: src/Dialogs/PreferencesDialog.vala:74 98 | msgid "Close" 99 | msgstr "Sluiten" 100 | 101 | #: src/Widgets/HeaderBar.vala:37 102 | msgid "Add New Login" 103 | msgstr "Account toevoegen" 104 | 105 | #: src/Widgets/HeaderBar.vala:41 106 | msgid "Add Secure Note" 107 | msgstr "Beveiligde aantekening toevoegen" 108 | 109 | #: src/Widgets/HeaderBar.vala:58 110 | msgid "Add Login or Note" 111 | msgstr "Account of aantekening toevoegen" 112 | 113 | #: src/Widgets/HeaderBar.vala:65 114 | msgid "Search for sites and notes (Ctrl+F)..." 115 | msgstr "Websites en aantekeningen doorzoeken (Ctrl+F)..." 116 | 117 | #: src/Widgets/HeaderBar.vala:76 118 | msgid "Sort by Name" 119 | msgstr "Sorteren op naam" 120 | 121 | #: src/Widgets/HeaderBar.vala:82 122 | msgid "Sort by Created Date" 123 | msgstr "Sorteren op aanmaakdatum" 124 | 125 | #: src/Widgets/HeaderBar.vala:103 126 | msgid "Menu" 127 | msgstr "Menu" 128 | 129 | #: src/Widgets/LaunchScreen.vala:24 130 | #: data/com.github.skarva.lockbox.appdata.xml.in:7 131 | #: data/com.github.skarva.lockbox.desktop.in:3 132 | msgid "Lock Box" 133 | msgstr "Kluis" 134 | 135 | #: src/Widgets/LaunchScreen.vala:25 136 | msgid "Sit tight while your secret clearance is verified" 137 | msgstr "Even geduld; de toegang wordt geverifieerd..." 138 | 139 | #: src/Widgets/WelcomeScreen.vala:28 140 | msgid "Nothing to see here" 141 | msgstr "Er valt hier niks te zien" 142 | 143 | #: src/Widgets/WelcomeScreen.vala:29 144 | msgid "Start storing your important info securely" 145 | msgstr "Begin met veilig opslaan van je vertrouwelijke informatie" 146 | 147 | #: src/Widgets/WelcomeScreen.vala:34 148 | msgid "Configure" 149 | msgstr "Instellen" 150 | 151 | #: src/Widgets/WelcomeScreen.vala:34 152 | msgid "Customize your lock box" 153 | msgstr "Pas je kluis aan" 154 | 155 | #: src/Widgets/WelcomeScreen.vala:35 156 | msgid "Store Login" 157 | msgstr "Account opslaan" 158 | 159 | #: src/Widgets/WelcomeScreen.vala:35 160 | msgid "Add website login details to your lock box" 161 | msgstr "Voeg inloggegevens toe aan je kluis" 162 | 163 | #: src/Widgets/WelcomeScreen.vala:36 164 | msgid "Store Note" 165 | msgstr "Aantekening opslaan" 166 | 167 | #: src/Widgets/WelcomeScreen.vala:36 168 | msgid "Add a new note to yourself to your lock box" 169 | msgstr "Voeg een aantekening toe aan je kluis" 170 | 171 | #: data/com.github.skarva.lockbox.appdata.xml.in:8 172 | msgid "Lock your secrets up tight" 173 | msgstr "Sla je al je geheimen veilig op" 174 | 175 | #: data/com.github.skarva.lockbox.appdata.xml.in:11 176 | msgid "" 177 | "Keep your notes and website credentials secure in an easy-to-manage " 178 | "collection. It is ready to go when you're logged in, and securely encrypted " 179 | "when you're not." 180 | msgstr "" 181 | "Sla je aantekeningen en inloggegevens veilig op in een eenvoudig te beheren " 182 | "verzameling. Alles staat klaar als je ingelogd bent en is beveiligd als je " 183 | "niet ingelogd bent." 184 | 185 | #: data/com.github.skarva.lockbox.appdata.xml.in:12 186 | msgid "Features" 187 | msgstr "Mogelijkheden" 188 | 189 | #: data/com.github.skarva.lockbox.appdata.xml.in:14 190 | msgid "Fast search" 191 | msgstr "Snel zoeken" 192 | 193 | #: data/com.github.skarva.lockbox.appdata.xml.in:15 194 | msgid "Sort by name or date added" 195 | msgstr "Sorteer op naam of aanmaakdatum" 196 | 197 | #: data/com.github.skarva.lockbox.appdata.xml.in:16 198 | msgid "Access to passwords saved in Epiphany" 199 | msgstr "Toegang tot in GNOME Web opgeslagen wachtwoorden" 200 | 201 | #: data/com.github.skarva.lockbox.appdata.xml.in:27 202 | msgid "Dark Theme" 203 | msgstr "Donker thema" 204 | 205 | #: data/com.github.skarva.lockbox.appdata.xml.in:31 206 | msgid "Light Theme" 207 | msgstr "Licht thema" 208 | 209 | #: data/com.github.skarva.lockbox.appdata.xml.in:35 210 | msgid "Creating a new secret item" 211 | msgstr "Maak een nieuw item" 212 | 213 | #: data/com.github.skarva.lockbox.appdata.xml.in:39 214 | msgid "Quick searching" 215 | msgstr "Snel zoeken" 216 | 217 | #: data/com.github.skarva.lockbox.appdata.xml.in:44 218 | msgid "skarva llc" 219 | msgstr "skarva llc" 220 | 221 | #: data/com.github.skarva.lockbox.appdata.xml.in:53 222 | msgid "Initial release" 223 | msgstr "Initiële uitgave" 224 | 225 | #: data/com.github.skarva.lockbox.desktop.in:4 226 | msgid "Password Manager" 227 | msgstr "Wachtwoordbeheerder" 228 | 229 | #: data/com.github.skarva.lockbox.desktop.in:5 230 | msgid "Secure and manage your secure information" 231 | msgstr "Beveilig en beheer je vertrouwelijke informatie" 232 | 233 | #: data/com.github.skarva.lockbox.desktop.in:8 234 | msgid "com.github.skarva.lockbox" 235 | msgstr "com.github.skarva.lockbox" 236 | 237 | #: data/com.github.skarva.lockbox.desktop.in:12 238 | msgid "Password;Login;Notes;" 239 | msgstr "Wachtwoord;Inloggen;Aantekeningen;" 240 | -------------------------------------------------------------------------------- /po/pt.po: -------------------------------------------------------------------------------- 1 | # Portuguese (Portugal) translations for com.github.skarva.lockbox package. 2 | # Copyright (C) 2019 THE com.github.skarva.lockbox'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.skarva.lockbox package. 4 | # André Barata , 2020. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: com.github.skarva.lockbox\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2019-08-30 21:31-0400\n" 11 | "PO-Revision-Date: 2020-08-27 15:08+0100\n" 12 | "Language-Team: none\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "X-Generator: Poedit 2.4.1\n" 17 | "Last-Translator: André Barata \n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | "Language: pt\n" 20 | 21 | #: src/Dialogs/LoginDialog.vala:39 src/Dialogs/LoginDialog.vala:56 22 | msgid "Add Login" 23 | msgstr "Adicionar Login" 24 | 25 | #: src/Dialogs/LoginDialog.vala:59 src/Dialogs/NoteDialog.vala:57 26 | msgid "Name:" 27 | msgstr "Nome:" 28 | 29 | #: src/Dialogs/LoginDialog.vala:67 30 | msgid "URI:" 31 | msgstr "URI:" 32 | 33 | #: src/Dialogs/LoginDialog.vala:75 34 | msgid "Username:" 35 | msgstr "Nome de Utilizador:" 36 | 37 | #: src/Dialogs/LoginDialog.vala:83 38 | msgid "Password:" 39 | msgstr "Senha:" 40 | 41 | #: src/Dialogs/LoginDialog.vala:94 src/Dialogs/NoteDialog.vala:82 42 | msgid "Cancel" 43 | msgstr "Cancelar" 44 | 45 | #: src/Dialogs/LoginDialog.vala:95 46 | msgid "Save Login" 47 | msgstr "Guardar Login" 48 | 49 | #: src/Dialogs/LoginDialog.vala:121 src/Dialogs/NoteDialog.vala:116 50 | msgid "Some fields are still empty!" 51 | msgstr "Alguns campos ainda estão vazios!" 52 | 53 | #: src/Dialogs/LoginDialog.vala:122 54 | msgid "You must fill in all the fields in order to save your login info." 55 | msgstr "" 56 | "Tem que preencher todos os campos para poder guardar a sua informação do " 57 | "login." 58 | 59 | #: src/Dialogs/NoteDialog.vala:37 src/Dialogs/NoteDialog.vala:54 60 | msgid "Add Note" 61 | msgstr "Adicionar Nota" 62 | 63 | #: src/Dialogs/NoteDialog.vala:66 64 | msgid "Note:" 65 | msgstr "Nota:" 66 | 67 | #: src/Dialogs/NoteDialog.vala:83 68 | msgid "Save note" 69 | msgstr "Guardar nota" 70 | 71 | #: src/Dialogs/NoteDialog.vala:117 72 | msgid "You must fill in all the fields in order to save your note." 73 | msgstr "Tem que preencher todos os campos para poder guardar a sua nota." 74 | 75 | #: src/Dialogs/PreferencesDialog.vala:31 src/Widgets/HeaderBar.vala:72 76 | msgid "Preferences" 77 | msgstr "Preferências" 78 | 79 | #: src/Dialogs/PreferencesDialog.vala:48 80 | msgid "Security" 81 | msgstr "Segurança" 82 | 83 | #: src/Dialogs/PreferencesDialog.vala:52 84 | msgid "Clear clipboard after timeout:" 85 | msgstr "Apagar a área de transferência após esgotar o tempo:" 86 | 87 | #: src/Dialogs/PreferencesDialog.vala:57 88 | msgid "Timeout (secs):" 89 | msgstr "Esgotar do Tempo (segundos):" 90 | 91 | #: src/Dialogs/PreferencesDialog.vala:65 92 | msgid "Interface" 93 | msgstr "Interface" 94 | 95 | #: src/Dialogs/PreferencesDialog.vala:69 96 | msgid "Dark Mode:" 97 | msgstr "Tema Escuro:" 98 | 99 | #: src/Dialogs/PreferencesDialog.vala:74 100 | msgid "Close" 101 | msgstr "Fechar" 102 | 103 | #: src/Widgets/HeaderBar.vala:37 104 | msgid "Add New Login" 105 | msgstr "Adicionar Novo Login" 106 | 107 | #: src/Widgets/HeaderBar.vala:41 108 | msgid "Add Secure Note" 109 | msgstr "Adicionar Nota Segura" 110 | 111 | #: src/Widgets/HeaderBar.vala:58 112 | msgid "Add Login or Note" 113 | msgstr "Adicionar Login ou Nota" 114 | 115 | #: src/Widgets/HeaderBar.vala:65 116 | msgid "Search for sites and notes (Ctrl+F)..." 117 | msgstr "Procurar por web sites e notas (Ctrl+F)..." 118 | 119 | #: src/Widgets/HeaderBar.vala:76 120 | msgid "Sort by Name" 121 | msgstr "Organizar por Nome" 122 | 123 | #: src/Widgets/HeaderBar.vala:82 124 | msgid "Sort by Created Date" 125 | msgstr "Organizar por Data Criada" 126 | 127 | #: src/Widgets/HeaderBar.vala:103 128 | msgid "Menu" 129 | msgstr "Menu" 130 | 131 | #: src/Widgets/LaunchScreen.vala:24 132 | #: data/com.github.skarva.lockbox.appdata.xml.in:7 133 | #: data/com.github.skarva.lockbox.desktop.in:3 134 | msgid "Lock Box" 135 | msgstr "Lock Box" 136 | 137 | #: src/Widgets/LaunchScreen.vala:25 138 | msgid "Sit tight while your secret clearance is verified" 139 | msgstr "Espere pacientemente enquanto a sua autorização secreta é verificada" 140 | 141 | #: src/Widgets/WelcomeScreen.vala:28 142 | msgid "Nothing to see here" 143 | msgstr "Nada para ver aqui" 144 | 145 | #: src/Widgets/WelcomeScreen.vala:29 146 | msgid "Start storing your important info securely" 147 | msgstr "Começe a guardar a sua informação importante de forma segura" 148 | 149 | #: src/Widgets/WelcomeScreen.vala:34 150 | msgid "Configure" 151 | msgstr "Configurar" 152 | 153 | #: src/Widgets/WelcomeScreen.vala:34 154 | msgid "Customize your lock box" 155 | msgstr "Personalizar o seu lock box" 156 | 157 | #: src/Widgets/WelcomeScreen.vala:35 158 | msgid "Store Login" 159 | msgstr "Guardar Login" 160 | 161 | #: src/Widgets/WelcomeScreen.vala:35 162 | msgid "Add website login details to your lock box" 163 | msgstr "Adicione detalhes do login do web site ao seu lock box" 164 | 165 | #: src/Widgets/WelcomeScreen.vala:36 166 | msgid "Store Note" 167 | msgstr "Guardar Nota" 168 | 169 | #: src/Widgets/WelcomeScreen.vala:36 170 | msgid "Add a new note to yourself to your lock box" 171 | msgstr "Adicionar uma nova nota para si no seu lock box" 172 | 173 | #: data/com.github.skarva.lockbox.appdata.xml.in:8 174 | msgid "Lock your secrets up tight" 175 | msgstr "Guarde bem os seus segredos" 176 | 177 | #: data/com.github.skarva.lockbox.appdata.xml.in:11 178 | msgid "" 179 | "Keep your notes and website credentials secure in an easy-to-manage " 180 | "collection. It is ready to go when you're logged in, and securely encrypted " 181 | "when you're not." 182 | msgstr "" 183 | "Mantenha as suas notas e credenciais de web sites em segurança numa coleção " 184 | "de fácil gestão. Esta está sempre pronta ao entrar e encriptada de forma " 185 | "segura quando não está." 186 | 187 | #: data/com.github.skarva.lockbox.appdata.xml.in:12 188 | msgid "Features" 189 | msgstr "Funcionalidades" 190 | 191 | #: data/com.github.skarva.lockbox.appdata.xml.in:14 192 | msgid "Fast search" 193 | msgstr "Procura rápida" 194 | 195 | #: data/com.github.skarva.lockbox.appdata.xml.in:15 196 | msgid "Sort by name or date added" 197 | msgstr "Organizar por nome ou por data adicionada" 198 | 199 | #: data/com.github.skarva.lockbox.appdata.xml.in:16 200 | msgid "Access to passwords saved in Epiphany" 201 | msgstr "Acesso a senhas guardadas no Epiphany" 202 | 203 | #: data/com.github.skarva.lockbox.appdata.xml.in:27 204 | msgid "Dark Theme" 205 | msgstr "Tema Escuro" 206 | 207 | #: data/com.github.skarva.lockbox.appdata.xml.in:31 208 | msgid "Light Theme" 209 | msgstr "Tema Claro" 210 | 211 | #: data/com.github.skarva.lockbox.appdata.xml.in:35 212 | msgid "Creating a new secret item" 213 | msgstr "A criar um novo item secreto" 214 | 215 | #: data/com.github.skarva.lockbox.appdata.xml.in:39 216 | msgid "Quick searching" 217 | msgstr "Procura rápida" 218 | 219 | #: data/com.github.skarva.lockbox.appdata.xml.in:44 220 | msgid "skarva llc" 221 | msgstr "skarva llc" 222 | 223 | #: data/com.github.skarva.lockbox.appdata.xml.in:53 224 | msgid "Initial release" 225 | msgstr "Lançamento inicial" 226 | 227 | #: data/com.github.skarva.lockbox.desktop.in:4 228 | msgid "Password Manager" 229 | msgstr "Administrador de Senhas" 230 | 231 | #: data/com.github.skarva.lockbox.desktop.in:5 232 | msgid "Secure and manage your secure information" 233 | msgstr "Proteja e administre a sua informação segura" 234 | 235 | #: data/com.github.skarva.lockbox.desktop.in:8 236 | msgid "com.github.skarva.lockbox" 237 | msgstr "com.github.skarva.lockbox" 238 | 239 | #: data/com.github.skarva.lockbox.desktop.in:12 240 | msgid "Password;Login;Notes;" 241 | msgstr "Password;Senha;Login;Notes;Notas;" 242 | -------------------------------------------------------------------------------- /po/se.po: -------------------------------------------------------------------------------- 1 | # Northern Sami translations for com.github.skarva.lockbox package. 2 | # Copyright (C) 2019 THE com.github.skarva.lockbox'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.skarva.lockbox package. 4 | # Automatically generated, 2019. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: com.github.skarva.lockbox\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2019-08-30 21:31-0400\n" 11 | "PO-Revision-Date: 2019-08-30 21:31-0400\n" 12 | "Last-Translator: Automatically generated\n" 13 | "Language-Team: none\n" 14 | "Language: se\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=ASCII\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: src/Dialogs/LoginDialog.vala:39 src/Dialogs/LoginDialog.vala:56 20 | msgid "Add Login" 21 | msgstr "" 22 | 23 | #: src/Dialogs/LoginDialog.vala:59 src/Dialogs/NoteDialog.vala:57 24 | msgid "Name:" 25 | msgstr "" 26 | 27 | #: src/Dialogs/LoginDialog.vala:67 28 | msgid "URI:" 29 | msgstr "" 30 | 31 | #: src/Dialogs/LoginDialog.vala:75 32 | msgid "Username:" 33 | msgstr "" 34 | 35 | #: src/Dialogs/LoginDialog.vala:83 36 | msgid "Password:" 37 | msgstr "" 38 | 39 | #: src/Dialogs/LoginDialog.vala:94 src/Dialogs/NoteDialog.vala:82 40 | msgid "Cancel" 41 | msgstr "" 42 | 43 | #: src/Dialogs/LoginDialog.vala:95 44 | msgid "Save Login" 45 | msgstr "" 46 | 47 | #: src/Dialogs/LoginDialog.vala:121 src/Dialogs/NoteDialog.vala:116 48 | msgid "Some fields are still empty!" 49 | msgstr "" 50 | 51 | #: src/Dialogs/LoginDialog.vala:122 52 | msgid "You must fill in all the fields in order to save your login info." 53 | msgstr "" 54 | 55 | #: src/Dialogs/NoteDialog.vala:37 src/Dialogs/NoteDialog.vala:54 56 | msgid "Add Note" 57 | msgstr "" 58 | 59 | #: src/Dialogs/NoteDialog.vala:66 60 | msgid "Note:" 61 | msgstr "" 62 | 63 | #: src/Dialogs/NoteDialog.vala:83 64 | msgid "Save note" 65 | msgstr "" 66 | 67 | #: src/Dialogs/NoteDialog.vala:117 68 | msgid "You must fill in all the fields in order to save your note." 69 | msgstr "" 70 | 71 | #: src/Dialogs/PreferencesDialog.vala:31 src/Widgets/HeaderBar.vala:72 72 | msgid "Preferences" 73 | msgstr "" 74 | 75 | #: src/Dialogs/PreferencesDialog.vala:48 76 | msgid "Security" 77 | msgstr "" 78 | 79 | #: src/Dialogs/PreferencesDialog.vala:52 80 | msgid "Clear clipboard after timeout:" 81 | msgstr "" 82 | 83 | #: src/Dialogs/PreferencesDialog.vala:57 84 | msgid "Timeout (secs):" 85 | msgstr "" 86 | 87 | #: src/Dialogs/PreferencesDialog.vala:65 88 | msgid "Interface" 89 | msgstr "" 90 | 91 | #: src/Dialogs/PreferencesDialog.vala:69 92 | msgid "Dark Mode:" 93 | msgstr "" 94 | 95 | #: src/Dialogs/PreferencesDialog.vala:74 96 | msgid "Close" 97 | msgstr "" 98 | 99 | #: src/Widgets/HeaderBar.vala:37 100 | msgid "Add New Login" 101 | msgstr "" 102 | 103 | #: src/Widgets/HeaderBar.vala:41 104 | msgid "Add Secure Note" 105 | msgstr "" 106 | 107 | #: src/Widgets/HeaderBar.vala:58 108 | msgid "Add Login or Note" 109 | msgstr "" 110 | 111 | #: src/Widgets/HeaderBar.vala:65 112 | msgid "Search for sites and notes (Ctrl+F)..." 113 | msgstr "" 114 | 115 | #: src/Widgets/HeaderBar.vala:76 116 | msgid "Sort by Name" 117 | msgstr "" 118 | 119 | #: src/Widgets/HeaderBar.vala:82 120 | msgid "Sort by Created Date" 121 | msgstr "" 122 | 123 | #: src/Widgets/HeaderBar.vala:103 124 | msgid "Menu" 125 | msgstr "" 126 | 127 | #: src/Widgets/LaunchScreen.vala:24 128 | #: data/com.github.skarva.lockbox.appdata.xml.in:7 129 | #: data/com.github.skarva.lockbox.desktop.in:3 130 | msgid "Lock Box" 131 | msgstr "" 132 | 133 | #: src/Widgets/LaunchScreen.vala:25 134 | msgid "Sit tight while your secret clearance is verified" 135 | msgstr "" 136 | 137 | #: src/Widgets/WelcomeScreen.vala:28 138 | msgid "Nothing to see here" 139 | msgstr "" 140 | 141 | #: src/Widgets/WelcomeScreen.vala:29 142 | msgid "Start storing your important info securely" 143 | msgstr "" 144 | 145 | #: src/Widgets/WelcomeScreen.vala:34 146 | msgid "Configure" 147 | msgstr "" 148 | 149 | #: src/Widgets/WelcomeScreen.vala:34 150 | msgid "Customize your lock box" 151 | msgstr "" 152 | 153 | #: src/Widgets/WelcomeScreen.vala:35 154 | msgid "Store Login" 155 | msgstr "" 156 | 157 | #: src/Widgets/WelcomeScreen.vala:35 158 | msgid "Add website login details to your lock box" 159 | msgstr "" 160 | 161 | #: src/Widgets/WelcomeScreen.vala:36 162 | msgid "Store Note" 163 | msgstr "" 164 | 165 | #: src/Widgets/WelcomeScreen.vala:36 166 | msgid "Add a new note to yourself to your lock box" 167 | msgstr "" 168 | 169 | #: data/com.github.skarva.lockbox.appdata.xml.in:8 170 | msgid "Lock your secrets up tight" 171 | msgstr "" 172 | 173 | #: data/com.github.skarva.lockbox.appdata.xml.in:11 174 | msgid "" 175 | "Keep your notes and website credentials secure in an easy-to-manage " 176 | "collection. It is ready to go when you're logged in, and securely encrypted " 177 | "when you're not." 178 | msgstr "" 179 | 180 | #: data/com.github.skarva.lockbox.appdata.xml.in:12 181 | msgid "Features" 182 | msgstr "" 183 | 184 | #: data/com.github.skarva.lockbox.appdata.xml.in:14 185 | msgid "Fast search" 186 | msgstr "" 187 | 188 | #: data/com.github.skarva.lockbox.appdata.xml.in:15 189 | msgid "Sort by name or date added" 190 | msgstr "" 191 | 192 | #: data/com.github.skarva.lockbox.appdata.xml.in:16 193 | msgid "Access to passwords saved in Epiphany" 194 | msgstr "" 195 | 196 | #: data/com.github.skarva.lockbox.appdata.xml.in:27 197 | msgid "Dark Theme" 198 | msgstr "" 199 | 200 | #: data/com.github.skarva.lockbox.appdata.xml.in:31 201 | msgid "Light Theme" 202 | msgstr "" 203 | 204 | #: data/com.github.skarva.lockbox.appdata.xml.in:35 205 | msgid "Creating a new secret item" 206 | msgstr "" 207 | 208 | #: data/com.github.skarva.lockbox.appdata.xml.in:39 209 | msgid "Quick searching" 210 | msgstr "" 211 | 212 | #: data/com.github.skarva.lockbox.appdata.xml.in:44 213 | msgid "skarva llc" 214 | msgstr "" 215 | 216 | #: data/com.github.skarva.lockbox.appdata.xml.in:53 217 | msgid "Initial release" 218 | msgstr "" 219 | 220 | #: data/com.github.skarva.lockbox.desktop.in:4 221 | msgid "Password Manager" 222 | msgstr "" 223 | 224 | #: data/com.github.skarva.lockbox.desktop.in:5 225 | msgid "Secure and manage your secure information" 226 | msgstr "" 227 | 228 | #: data/com.github.skarva.lockbox.desktop.in:8 229 | msgid "com.github.skarva.lockbox" 230 | msgstr "" 231 | 232 | #: data/com.github.skarva.lockbox.desktop.in:12 233 | msgid "Password;Login;Notes;" 234 | msgstr "" 235 | -------------------------------------------------------------------------------- /src/Application.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox { 21 | public class Application : Gtk.Application { 22 | public static string app_cmd_name; 23 | public static GLib.Settings saved_state; 24 | public static GLib.Settings app_settings; 25 | 26 | construct { 27 | flags |= ApplicationFlags.HANDLES_OPEN; 28 | 29 | application_id = Constants.PROJECT_NAME; 30 | } 31 | 32 | static construct { 33 | saved_state = new GLib.Settings (Constants.PROJECT_NAME + ".saved-state"); 34 | app_settings = new GLib.Settings (Constants.PROJECT_NAME + ".settings"); 35 | } 36 | 37 | public Application () { 38 | Intl.setlocale (LocaleCategory.ALL, ""); 39 | string langpack_dir = Path.build_filename (Constants.INSTALL_PREFIX, "share", "locale"); 40 | Intl.bindtextdomain (Constants.GETTEXT_PACKAGE, langpack_dir); 41 | Intl.bind_textdomain_codeset (Constants.GETTEXT_PACKAGE, "UTF-8"); 42 | Intl.textdomain (Constants.GETTEXT_PACKAGE); 43 | 44 | Granite.Services.Logger.initialize ("Lock Box"); 45 | Granite.Services.Logger.DisplayLevel = Granite.Services.LogLevel.NOTIFY; 46 | } 47 | 48 | public static Application _instance = null; 49 | 50 | public static Application instance { 51 | get { 52 | if (_instance == null) { 53 | _instance = new Application (); 54 | } 55 | return _instance; 56 | } 57 | } 58 | 59 | protected override void activate () { 60 | var window = new MainWindow (this); 61 | window.show_all (); 62 | } 63 | 64 | public static int main (string[] args) { 65 | Gtk.init (ref args); 66 | 67 | var css_provider = new Gtk.CssProvider (); 68 | css_provider.load_from_resource ("com/github/skarva/lockbox/Note.css"); 69 | 70 | Gtk.StyleContext.add_provider_for_screen ( 71 | Gdk.Screen.get_default (), 72 | css_provider, 73 | Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); 74 | 75 | app_cmd_name = "Lockbox"; 76 | Application app = Application.instance; 77 | return app.run (args); 78 | } 79 | } 80 | } // Lockbox 81 | -------------------------------------------------------------------------------- /src/Dialogs/LoginDialog.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Dialogs { 21 | public class LoginDialog : Gtk.Dialog { 22 | private Gtk.Entry name_entry; 23 | private Gtk.Entry uri_entry; 24 | private Gtk.Entry username_entry; 25 | private Gtk.Entry password_entry; 26 | private Gtk.CheckButton show_password_button; 27 | 28 | private bool is_edit; 29 | private Widgets.CollectionListRow row; 30 | 31 | public signal void new_login (string name, 32 | HashTable attributes, 33 | string password); 34 | 35 | public LoginDialog (Gtk.Window? parent) { 36 | Object ( 37 | border_width: 12, 38 | deletable: false, 39 | resizable: false, 40 | title: _("Add Login"), 41 | transient_for: parent, 42 | modal: true 43 | ); 44 | 45 | is_edit = false; 46 | 47 | set_default_response (Gtk.ResponseType.OK); 48 | } 49 | 50 | construct { 51 | var grid = new Gtk.Grid (); 52 | grid.column_spacing = 12; 53 | grid.row_spacing = 6; 54 | grid.margin_bottom = 12; 55 | get_content_area ().add (grid); 56 | 57 | var header = new Granite.HeaderLabel (_("Add Login")); 58 | grid.attach (header, 0, 0, 2, 1); 59 | 60 | var name_label = new Gtk.Label (_("Name:")); 61 | name_label.halign = Gtk.Align.END; 62 | name_label.margin_start = 12; 63 | name_entry = new Gtk.Entry (); 64 | name_entry.activates_default = true; 65 | grid.attach (name_label, 0, 1, 1, 1); 66 | grid.attach (name_entry, 1, 1, 1, 1); 67 | 68 | var uri_label = new Gtk.Label (_("URI:")); 69 | uri_label.halign = Gtk.Align.END; 70 | uri_label.margin_start = 12; 71 | uri_entry = new Gtk.Entry (); 72 | uri_entry.activates_default = true; 73 | grid.attach (uri_label, 0, 2, 1, 1); 74 | grid.attach (uri_entry, 1, 2, 1, 1); 75 | 76 | var username_label = new Gtk.Label (_("Username:")); 77 | username_label.halign = Gtk.Align.END; 78 | username_label.margin_start = 12; 79 | username_entry = new Gtk.Entry (); 80 | username_entry.activates_default = true; 81 | grid.attach (username_label, 0, 3, 1, 1); 82 | grid.attach (username_entry, 1, 3, 1, 1); 83 | 84 | var password_label = new Gtk.Label (_("Password:")); 85 | password_label.halign = Gtk.Align.END; 86 | password_label.margin_start = 12; 87 | password_entry = new Gtk.Entry (); 88 | password_entry.input_purpose = Gtk.InputPurpose.PASSWORD; 89 | password_entry.invisible_char = '*'; 90 | password_entry.visibility = false; 91 | password_entry.activates_default = true; 92 | grid.attach (password_label, 0, 4, 1, 1); 93 | grid.attach (password_entry, 1, 4, 1, 1); 94 | 95 | show_password_button = new Gtk.CheckButton.with_label (_("Show Password")); 96 | show_password_button.bind_property("active", password_entry, "visibility", GLib.BindingFlags.DEFAULT); 97 | grid.attach (show_password_button, 1, 5, 1, 1); 98 | 99 | var close = add_button (_("Cancel"), Gtk.ResponseType.CLOSE); 100 | var save = add_button (_("Save Login"), Gtk.ResponseType.OK); 101 | save.get_style_context ().add_class (Gtk.STYLE_CLASS_SUGGESTED_ACTION); 102 | 103 | response.connect (on_response); 104 | } 105 | 106 | public void set_entries (Widgets.CollectionListRow row) { 107 | var item = row.item; 108 | name_entry.text = item.label; 109 | uri_entry.text = item.attributes.get ("uri"); 110 | username_entry.text = item.attributes.get ("username"); 111 | item.load_secret.begin (new Cancellable (), (obj, res) => { 112 | password_entry.text = item.get_secret ().get_text (); 113 | }); 114 | is_edit = true; 115 | this.row = row; 116 | } 117 | 118 | private void on_response (Gtk.Dialog source, int response_id) { 119 | switch (response_id) { 120 | case Gtk.ResponseType.OK: 121 | var valid_input = name_entry.text_length == 0 || 122 | username_entry.text_length == 0 || 123 | password_entry.text_length == 0; 124 | if (valid_input) { 125 | var alert = new Granite.MessageDialog.with_image_from_icon_name ( 126 | _("Some fields are still empty!"), 127 | _("You must fill in all the fields in order to save your login info."), 128 | "dialog-error", 129 | Gtk.ButtonsType.CLOSE 130 | ); 131 | alert.run (); 132 | alert.destroy (); 133 | } else if (is_edit) { 134 | var item = row.item; 135 | item.label = name_entry.text.strip (); 136 | 137 | var attributes = item.get_attributes (); 138 | attributes.replace ("uri", uri_entry.text.strip ()); 139 | attributes.replace ("username", username_entry.text.strip ()); 140 | item.set_attributes.begin (Schemas.epiphany (), attributes, new Cancellable ()); 141 | 142 | var secret = password_entry.text.strip (); 143 | var secret_value = new Secret.Value (secret, 144 | secret.length, 145 | "text/plain"); 146 | item.set_secret.begin (secret_value, new Cancellable ()); 147 | row.title.set_text(name_entry.text.strip ()); 148 | destroy (); 149 | } else { 150 | var id = "{" + Uuid.string_random () + "}"; 151 | var timestamp = get_real_time () / 1000; 152 | var attributes = new HashTable (str_hash, str_equal); 153 | attributes.insert ("id", id); 154 | attributes.insert ("uri", uri_entry.text.strip ()); 155 | attributes.insert ("target_origin", ""); 156 | attributes.insert ("form_username", ""); 157 | attributes.insert ("form_password", ""); 158 | attributes.insert ("username", username_entry.text.strip ()); 159 | attributes.insert ("server_time_modified", timestamp.to_string ()); 160 | 161 | new_login (name_entry.text.strip (), attributes, 162 | password_entry.text.strip ()); 163 | destroy (); 164 | } 165 | break; 166 | case Gtk.ResponseType.CLOSE: 167 | destroy (); 168 | break; 169 | } 170 | } 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /src/Dialogs/NoteDialog.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Dialogs { 21 | public class NoteDialog : Gtk.Dialog { 22 | private Gtk.Entry name_entry; 23 | private Gtk.TextView content_entry; 24 | 25 | private bool is_edit; 26 | private Widgets.CollectionListRow row; 27 | 28 | public signal void new_note (string name, 29 | HashTable attributes, 30 | string password); 31 | 32 | public NoteDialog (Gtk.Window? parent) { 33 | Object ( 34 | border_width: 12, 35 | deletable: false, 36 | resizable: true, 37 | title: _("Add Note"), 38 | transient_for: parent, 39 | modal: true 40 | ); 41 | 42 | is_edit = false; 43 | 44 | set_default_response (Gtk.ResponseType.OK); 45 | } 46 | 47 | construct { 48 | var grid = new Gtk.Grid (); 49 | grid.column_spacing = 12; 50 | grid.row_spacing = 6; 51 | grid.margin_bottom = 12; 52 | get_content_area ().add (grid); 53 | 54 | var header = new Granite.HeaderLabel (_("Add Note")); 55 | grid.attach (header, 0, 0, 2, 1); 56 | 57 | var name_label = new Gtk.Label (_("Name:")); 58 | name_label.halign = Gtk.Align.END; 59 | name_label.margin_start = 12; 60 | name_entry = new Gtk.Entry (); 61 | name_entry.hexpand = true; 62 | name_entry.activates_default = true; 63 | grid.attach (name_label, 0, 1, 1, 1); 64 | grid.attach (name_entry, 1, 1, 1, 1); 65 | 66 | var content_label = new Gtk.Label (_("Note:")); 67 | content_label.halign = Gtk.Align.END; 68 | content_label.margin_start = 12; 69 | var content_window = new Gtk.ScrolledWindow (null, null); 70 | content_window.height_request = 300; 71 | content_window.width_request = 500; 72 | content_window.get_style_context ().add_class ("note-content"); 73 | content_entry = new Gtk.TextView (); 74 | content_entry.expand = true; 75 | content_entry.input_purpose = Gtk.InputPurpose.FREE_FORM; 76 | content_entry.accepts_tab = true; 77 | content_entry.get_style_context ().add_class ("note-text"); 78 | content_window.add (content_entry); 79 | grid.attach (content_label, 0, 2, 1, 1); 80 | grid.attach (content_window, 1, 2, 1, 1); 81 | 82 | var close = add_button (_("Cancel"), Gtk.ResponseType.CLOSE); 83 | var save = add_button (_("Save note"), Gtk.ResponseType.OK); 84 | save.get_style_context ().add_class (Gtk.STYLE_CLASS_SUGGESTED_ACTION); 85 | 86 | response.connect (on_response); 87 | 88 | content_entry.focus_in_event.connect ((event) => { 89 | content_window.get_style_context ().add_class ("note-content-focus"); 90 | return false; 91 | }); 92 | 93 | content_entry.focus_out_event.connect ((event) => { 94 | content_window.get_style_context ().remove_class ("note-content-focus"); 95 | return false; 96 | }); 97 | } 98 | 99 | public void set_entries (Widgets.CollectionListRow row) { 100 | var item = row.item; 101 | name_entry.text = item.label; 102 | item.load_secret.begin (new Cancellable (), (obj, res) => { 103 | content_entry.buffer.text = item.get_secret ().get_text (); 104 | }); 105 | is_edit = true; 106 | this.row = row; 107 | } 108 | 109 | private void on_response (Gtk.Dialog source, int response_id) { 110 | switch (response_id) { 111 | case Gtk.ResponseType.OK: 112 | var invalid_input = name_entry.text_length == 0 || 113 | content_entry.buffer.text.length == 0; 114 | if (invalid_input) { 115 | var alert = new Granite.MessageDialog.with_image_from_icon_name ( 116 | _("Some fields are still empty!"), 117 | _("You must fill in all the fields in order to save your note."), 118 | "dialog-error", 119 | Gtk.ButtonsType.CLOSE 120 | ); 121 | alert.run (); 122 | alert.destroy (); 123 | } else if (is_edit) { 124 | var item = row.item; 125 | item.label = name_entry.text.strip (); 126 | 127 | var secret = content_entry.buffer.text.strip (); 128 | var secret_value = new Secret.Value (secret, 129 | secret.length, 130 | "text/plain"); 131 | item.set_secret.begin (secret_value, new Cancellable ()); 132 | row.title.set_text(name_entry.text.strip ()); 133 | destroy (); 134 | } else { 135 | var id = "{" + Uuid.string_random () + "}"; 136 | var attributes = new HashTable (str_hash, str_equal); 137 | attributes.insert ("id", id); 138 | 139 | new_note (name_entry.text.strip (), attributes, 140 | content_entry.buffer.text.strip ()); 141 | destroy (); 142 | } 143 | break; 144 | case Gtk.ResponseType.CLOSE: 145 | destroy (); 146 | break; 147 | } 148 | } 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /src/Dialogs/PreferencesDialog.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Dialogs { 21 | public class PreferencesDialog : Gtk.Dialog { 22 | private Gtk.Switch clear_clipboard; 23 | private Gtk.Entry clear_clipboard_timeout; 24 | private Gtk.Switch dark_theme; 25 | 26 | public PreferencesDialog (Gtk.Window? parent) { 27 | Object ( 28 | border_width: 12, 29 | deletable: false, 30 | resizable: false, 31 | title: _("Preferences"), 32 | transient_for: parent, 33 | modal: false 34 | ); 35 | 36 | set_default_response (Gtk.ResponseType.CLOSE); 37 | } 38 | 39 | construct { 40 | var grid = new Gtk.Grid (); 41 | grid.column_spacing = 12; 42 | grid.row_spacing = 6; 43 | grid.margin_bottom = 12; 44 | get_content_area ().add (grid); 45 | 46 | var security_header = new Granite.HeaderLabel (_("Security")); 47 | grid.attach (security_header, 0, 0, 2, 1); 48 | 49 | /* Clipboard clearing settings */ 50 | var clear_clipboard_label = new SettingsLabel (_("Clear clipboard after timeout:")); 51 | clear_clipboard = new SettingsSwitch ("clear-clipboard"); 52 | grid.attach (clear_clipboard_label, 0, 1, 1, 1); 53 | grid.attach (clear_clipboard, 1, 1, 1, 1); 54 | 55 | var clear_clipboard_timeout_label = new SettingsLabel (_("Timeout (secs):")); 56 | clear_clipboard_timeout = new Gtk.Entry (); 57 | clear_clipboard_timeout.input_purpose = Gtk.InputPurpose.DIGITS; 58 | clear_clipboard_timeout.text = Application.app_settings.get_int ("clear-clipboard-timeout").to_string (); 59 | clear_clipboard_timeout.activates_default = true; 60 | grid.attach (clear_clipboard_timeout_label, 0, 2, 1, 1); 61 | grid.attach (clear_clipboard_timeout, 1, 2, 1, 1); 62 | 63 | var interface_header = new Granite.HeaderLabel(_("Interface")); 64 | grid.attach (interface_header, 0, 3, 2, 1); 65 | 66 | /* Dark Mode setting */ 67 | var dark_theme_label = new SettingsLabel (_("Dark Mode:")); 68 | dark_theme = new SettingsSwitch ("dark-theme"); 69 | grid.attach (dark_theme_label, 0, 4, 1, 1); 70 | grid.attach (dark_theme, 1, 4, 1, 1); 71 | 72 | var close_button = add_button (_("Close"), Gtk.ResponseType.CLOSE); 73 | 74 | response.connect (()=> { 75 | destroy (); 76 | }); 77 | 78 | dark_theme.state_set.connect ((state) => { 79 | Gtk.Settings.get_default ().gtk_application_prefer_dark_theme = state; 80 | }); 81 | } 82 | 83 | private class SettingsLabel : Gtk.Label { 84 | public SettingsLabel (string text) { 85 | label = text; 86 | halign = Gtk.Align.END; 87 | margin_start = 12; 88 | } 89 | } 90 | 91 | private class SettingsSwitch : Gtk.Switch { 92 | public SettingsSwitch (string setting) { 93 | halign = Gtk.Align.START; 94 | valign = Gtk.Align.CENTER; 95 | Application.app_settings.bind (setting, this, "active", SettingsBindFlags.DEFAULT); 96 | } 97 | } 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /src/MainWindow.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox { 21 | public class MainWindow : Gtk.ApplicationWindow { 22 | public weak Lockbox.Application app { get; construct; } 23 | 24 | private Widgets.HeaderBar headerbar; 25 | private Gtk.ListBox collection_list; 26 | private Gtk.Stack layout_stack; 27 | 28 | private string filter_keyword = ""; 29 | 30 | private List removal_list; 31 | 32 | private Services.CollectionManager collection_manager; 33 | private Gtk.Clipboard clipboard; 34 | private uint clipboard_timer_id = 0; 35 | 36 | public SimpleActionGroup actions { get; construct; } 37 | 38 | public const string ACTION_PREFIX = "lockbox."; 39 | public const string ACTION_ADD_LOGIN = "action_add_login"; 40 | public const string ACTION_ADD_NOTE = "action_add_note"; 41 | public const string ACTION_SEARCH = "action_search"; 42 | public const string ACTION_PREFERENCES = "action_preferences"; 43 | public const string ACTION_UNDO = "action_undo"; 44 | public const string ACTION_QUIT = "action_quit"; 45 | 46 | public static Gee.MultiMap action_accelerators = new Gee.HashMultiMap (); 47 | 48 | public const ActionEntry[] action_entries = { 49 | { ACTION_ADD_LOGIN, action_add_login }, 50 | { ACTION_ADD_NOTE, action_add_note }, 51 | { ACTION_SEARCH, action_search }, 52 | { ACTION_PREFERENCES, action_preferences }, 53 | { ACTION_UNDO, action_undo }, 54 | { ACTION_QUIT, action_quit } 55 | }; 56 | 57 | public MainWindow (Lockbox.Application app) { 58 | Object ( 59 | application: app, 60 | app: app, 61 | icon_name: Constants.PROJECT_NAME 62 | ); 63 | } 64 | 65 | static construct { 66 | action_accelerators.set (ACTION_ADD_LOGIN, "a"); 67 | action_accelerators.set (ACTION_ADD_NOTE, "n"); 68 | action_accelerators.set (ACTION_SEARCH, "f"); 69 | action_accelerators.set (ACTION_UNDO, "z"); 70 | action_accelerators.set (ACTION_QUIT, "q"); 71 | } 72 | 73 | construct { 74 | /* Load up Secret Service and Collections */ 75 | collection_manager = new Services.CollectionManager (); 76 | 77 | /* Set up actions and hotkeys */ 78 | actions = new SimpleActionGroup (); 79 | actions.add_action_entries (action_entries, this); 80 | insert_action_group ("lockbox", actions); 81 | 82 | foreach (var action in action_accelerators.get_keys ()) { 83 | app.set_accels_for_action (ACTION_PREFIX + action, action_accelerators[action].to_array ()); 84 | } 85 | 86 | set_default_size (Application.saved_state.get_int ("window-width"), Application.saved_state.get_int ("window-height")); 87 | 88 | var window_x = Application.saved_state.get_int ("window-x"); 89 | var window_y = Application.saved_state.get_int ("window-y"); 90 | if (window_x == -1 || window_y == -1) { 91 | window_position = Gtk.WindowPosition.CENTER; 92 | } else { 93 | move (window_x, window_y); 94 | } 95 | 96 | if (Application.saved_state.get_boolean ("maximized")) { 97 | this.maximize (); 98 | } 99 | 100 | Gtk.Settings.get_default ().gtk_application_prefer_dark_theme = Application.app_settings.get_boolean ("dark-theme"); 101 | 102 | /* Init Clipboard */ 103 | clipboard = Gtk.Clipboard.get_for_display (get_display (), Gdk.SELECTION_CLIPBOARD); 104 | 105 | /* Init Layout */ 106 | headerbar = new Widgets.HeaderBar (); 107 | set_titlebar (headerbar); 108 | 109 | layout_stack = new Gtk.Stack (); 110 | add (layout_stack); 111 | 112 | var launch = new Widgets.LaunchScreen (); 113 | layout_stack.add_named (launch, "launch"); 114 | 115 | var welcome = new Widgets.WelcomeScreen (); 116 | welcome.show_preferences.connect (action_preferences); 117 | welcome.create_login.connect (action_add_login); 118 | welcome.create_note.connect (action_add_note); 119 | layout_stack.add_named (welcome, "welcome"); 120 | 121 | var scroll_window = new Gtk.ScrolledWindow (null, null); 122 | 123 | collection_list = new Gtk.ListBox (); 124 | collection_list.selection_mode = Gtk.SelectionMode.NONE; 125 | collection_list.set_filter_func (CollectionFilterFunc); 126 | collection_list.activate_on_single_click = false; 127 | set_sort_func ((Services.Sort) Application.app_settings.get_enum ("sort-by")); 128 | scroll_window.add (collection_list); 129 | layout_stack.add_named (scroll_window, "collection"); 130 | 131 | layout_stack.visible_child_name = "launch"; 132 | 133 | /* Connect Signals */ 134 | collection_manager.loaded.connect (() => { 135 | var items = collection_manager.get_items (); 136 | populate_list (items); 137 | if (items.length () > 0) { 138 | layout_stack.visible_child_name = "collection"; 139 | } else { 140 | layout_stack.visible_child_name = "welcome"; 141 | } 142 | }); 143 | 144 | collection_manager.added.connect (add_item); 145 | 146 | headerbar.filter.connect((keyword) => { 147 | filter_keyword = keyword; 148 | collection_list.invalidate_filter (); 149 | }); 150 | 151 | headerbar.sort.connect((sort_by) => { 152 | if (sort_by != Application.app_settings.get_enum ("sort-by")) { 153 | Application.app_settings.set_enum ("sort-by", sort_by); 154 | Application.app_settings.set_boolean ("sort-desc", true); 155 | } else { 156 | Application.app_settings.set_boolean ("sort-desc", !Application.app_settings.get_boolean ("sort-desc")); 157 | } 158 | set_sort_func (sort_by); 159 | }); 160 | 161 | collection_list.row_activated.connect (open_url); 162 | 163 | action_search (); 164 | 165 | show_all (); 166 | } 167 | 168 | public override bool key_press_event (Gdk.EventKey event) { 169 | var focus_widget = get_focus (); 170 | if (focus_widget != null && focus_widget is Gtk.Editable) { 171 | return base.key_press_event(event); 172 | } 173 | 174 | var modifiers = Gtk.accelerator_get_default_mod_mask (); 175 | bool modifiers_active = (event.state & modifiers) != 0; 176 | 177 | if (!modifiers_active) { 178 | var typed_unichar = event.str.get_char (); 179 | 180 | if (typed_unichar.isalnum ()) { 181 | action_search (); 182 | } 183 | } 184 | 185 | return base.key_press_event (event); 186 | } 187 | 188 | protected override bool delete_event (Gdk.EventAny event) { 189 | action_quit (); 190 | 191 | return false; 192 | } 193 | 194 | private void action_add_login () { 195 | var login_dialog = new Dialogs.LoginDialog (this); 196 | login_dialog.new_login.connect ((name, attributes, password) => { 197 | collection_manager.add_item(name, attributes, password, 198 | CollectionType.LOGIN); 199 | layout_stack.visible_child_name = "collection"; 200 | }); 201 | login_dialog.show_all (); 202 | 203 | login_dialog.present (); 204 | } 205 | 206 | private void action_add_note () { 207 | var note_dialog = new Dialogs.NoteDialog (this); 208 | note_dialog.new_note.connect ((name, attributes, content) => { 209 | collection_manager.add_item(name, attributes, content, 210 | CollectionType.NOTE); 211 | layout_stack.visible_child_name = "collection"; 212 | }); 213 | note_dialog.show_all (); 214 | 215 | note_dialog.present (); 216 | } 217 | 218 | private void action_search () { 219 | headerbar.search_entry.grab_focus (); 220 | } 221 | 222 | private void action_preferences () { 223 | var preferences_dialog = new Dialogs.PreferencesDialog (this); 224 | preferences_dialog.show_all (); 225 | 226 | preferences_dialog.present (); 227 | } 228 | 229 | private void action_undo () { 230 | if (removal_list.length () > 0) { 231 | var restored_item = removal_list.last ().data; 232 | removal_list.remove (restored_item); 233 | add_item (restored_item); 234 | } 235 | } 236 | 237 | private void action_quit () { 238 | collection_manager.remove_items (removal_list); 239 | collection_manager.close (); 240 | update_saved_state (); 241 | if (clipboard_timer_id > 0) { 242 | GLib.Source.remove (clipboard_timer_id); 243 | clipboard_timer_id = 0; 244 | clipboard.clear (); 245 | } 246 | destroy (); 247 | } 248 | 249 | private void update_saved_state () { 250 | int window_width; 251 | int window_height; 252 | int window_x; 253 | int window_y; 254 | get_size (out window_width, out window_height); 255 | get_position (out window_x, out window_y); 256 | Application.saved_state.set_int ("window-width", window_width); 257 | Application.saved_state.set_int ("window-height", window_height); 258 | Application.saved_state.set_int ("window-x", window_x); 259 | Application.saved_state.set_int ("window-y", window_y); 260 | Application.saved_state.set_boolean ("maximized", is_maximized); 261 | } 262 | 263 | private void populate_list (List items) { 264 | foreach (var item in items) { 265 | if (Schemas.is_login (item) || Schemas.is_note (item)) { 266 | add_item (item); 267 | } else { 268 | critical ("Unknown Item type"); 269 | } 270 | } 271 | } 272 | 273 | private void add_item (Secret.Item item) { 274 | var row = new Widgets.CollectionListRow (item); 275 | if (Schemas.is_login (item)) { 276 | row.copy_username.connect (copy_username); 277 | row.copy_password.connect (copy_password); 278 | } 279 | row.edit_entry.connect (edit_item); 280 | row.delete_entry.connect (remove_item); 281 | collection_list.add (row); 282 | collection_list.show_all (); 283 | } 284 | 285 | private void edit_item (Widgets.CollectionListRow row) { 286 | if (Schemas.is_login (row.item)) { 287 | var login_dialog = new Dialogs.LoginDialog (this); 288 | login_dialog.set_entries (row); 289 | login_dialog.show_all (); 290 | 291 | login_dialog.present (); 292 | } else if (Schemas.is_note (row.item)) { 293 | var note_dialog = new Dialogs.NoteDialog (this); 294 | note_dialog.set_entries (row); 295 | note_dialog.show_all (); 296 | 297 | note_dialog.present (); 298 | } 299 | } 300 | 301 | private void remove_item (Widgets.CollectionListRow row) { 302 | removal_list.append (row.item); 303 | collection_list.remove (row); 304 | } 305 | 306 | private void copy_username (Secret.Item item) { 307 | var username = item.attributes.get ("username"); 308 | clipboard.set_text (username, -1); 309 | if (Application.app_settings.get_boolean ("clear-clipboard")) { 310 | reset_clipboard_timer (); 311 | } 312 | } 313 | 314 | private void copy_password (Secret.Item item) { 315 | item.load_secret.begin (new Cancellable (), (obj, res) => { 316 | var password = item.get_secret ().get_text (); 317 | clipboard.set_text (password, -1); 318 | if (Application.app_settings.get_boolean ("clear-clipboard")) { 319 | reset_clipboard_timer (); 320 | } 321 | }); 322 | } 323 | 324 | private void open_url (Gtk.ListBoxRow row) { 325 | var crow = row as Widgets.CollectionListRow; 326 | 327 | if (Schemas.is_login (crow.item)) { 328 | var item = crow.item; 329 | var uri = item.attributes.get ("uri"); 330 | if (uri != null && uri.length > 0) { 331 | try { 332 | AppInfo.launch_default_for_uri (uri, null); 333 | } catch (Error e) { 334 | warning (e.message); 335 | } 336 | } 337 | } 338 | } 339 | 340 | private bool clear_clipboard_timed_out () { 341 | if (Application.app_settings.get_boolean ("clear-clipboard")) { 342 | GLib.Source.remove (clipboard_timer_id); 343 | clipboard_timer_id = 0; 344 | clipboard.clear (); 345 | } 346 | return true; 347 | } 348 | 349 | private void reset_clipboard_timer () { 350 | if (clipboard_timer_id > 0) { 351 | GLib.Source.remove (clipboard_timer_id); 352 | clipboard_timer_id = 0; 353 | } 354 | clipboard_timer_id = GLib.Timeout.add_seconds (Application.app_settings.get_int ("clear-clipboard-timeout"), 355 | clear_clipboard_timed_out); 356 | } 357 | 358 | private void set_sort_func (Services.Sort sort_by) { 359 | if (sort_by == Services.Sort.NAME) { 360 | collection_list.set_sort_func (CollectionSortNameFunc); 361 | } else if (sort_by == Services.Sort.CREATED) { 362 | collection_list.set_sort_func (CollectionSortDateFunc); 363 | } 364 | collection_list.invalidate_sort (); 365 | } 366 | 367 | private bool CollectionFilterFunc (Gtk.ListBoxRow row) { 368 | if (filter_keyword.length == 0) { 369 | return true; 370 | } 371 | 372 | var collection_row = row as Widgets.CollectionListRow; 373 | var label = collection_row.item.label; 374 | 375 | // Search using exact match (case-sensitive) 376 | if (label.contains (filter_keyword)) { 377 | return true; 378 | } 379 | 380 | // Search using case insensitivity 381 | if (label.ascii_down ().contains (filter_keyword.ascii_down ())) 382 | { 383 | return true; 384 | } 385 | 386 | return false; 387 | } 388 | 389 | private int CollectionSortNameFunc (Gtk.ListBoxRow row1, Gtk.ListBoxRow row2) { 390 | var collection_row1 = row1 as Widgets.CollectionListRow; 391 | var collection_row2 = row2 as Widgets.CollectionListRow; 392 | var desc = Application.app_settings.get_boolean ("sort-desc") ? 1 : -1; 393 | 394 | return collection_row1.item.label.ascii_casecmp (collection_row2.item.label) * desc; 395 | } 396 | 397 | private int CollectionSortDateFunc (Gtk.ListBoxRow row1, Gtk.ListBoxRow row2) { 398 | var collection_row1 = row1 as Widgets.CollectionListRow; 399 | var collection_row2 = row2 as Widgets.CollectionListRow; 400 | var desc = Application.app_settings.get_boolean ("sort-desc") ? 1 : -1; 401 | 402 | if (collection_row1.item.created < collection_row2.item.created) { 403 | return -1 * desc; 404 | } else if (collection_row1.item.created > collection_row2.item.created) { 405 | return 1 * desc; 406 | } 407 | 408 | return 0; 409 | } 410 | } 411 | } // Lockbox 412 | -------------------------------------------------------------------------------- /src/Schemas/Login.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Schemas { 21 | public static bool is_login(Secret.Item item) { 22 | string name = item.get_schema_name (); 23 | if (name == epiphany ().name) { 24 | return true; 25 | } else { 26 | return false; 27 | } 28 | } 29 | 30 | public static Secret.Schema epiphany () { 31 | var schema = new Secret.Schema ("org.epiphany.FormPassword", Secret.SchemaFlags.NONE, 32 | "id", Secret.SchemaAttributeType.STRING, 33 | "uri", Secret.SchemaAttributeType.STRING, 34 | "target_origin", Secret.SchemaAttributeType.STRING, 35 | "form_username", Secret.SchemaAttributeType.STRING, 36 | "form_password", Secret.SchemaAttributeType.STRING, 37 | "username", Secret.SchemaAttributeType.STRING, 38 | "server_time_modified", Secret.SchemaAttributeType.STRING); 39 | return schema; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Schemas/Note.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Schemas { 21 | public static bool is_note (Secret.Item item) { 22 | string name = item.get_schema_name (); 23 | if (name == null || name.length == 0) { 24 | return false; 25 | } else if (name == note ().name) { 26 | return true; 27 | } else { 28 | return false; 29 | } 30 | } 31 | 32 | public static Secret.Schema note () { 33 | var schema = new Secret.Schema ("com.github.skarva.lockbox.notes", Secret.SchemaFlags.NONE, 34 | "id", Secret.SchemaAttributeType.STRING, 35 | "name", Secret.SchemaAttributeType.STRING); 36 | return schema; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Services/Collection.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox { 21 | public enum CollectionType { LOGIN, NOTE } 22 | } 23 | 24 | namespace Lockbox.Services { 25 | public class CollectionManager { 26 | private Secret.Service service; 27 | private Secret.Collection default_collection; 28 | 29 | public signal void loaded (); 30 | public signal void opened (); 31 | public signal void added (Secret.Item item); 32 | 33 | // This should open the Login collection and, if it exists, the secure Note collection 34 | public CollectionManager () { 35 | Secret.Service.get.begin (Secret.ServiceFlags.LOAD_COLLECTIONS, new Cancellable (), (obj, res) => { 36 | try { 37 | service = Secret.Service.get.end (res); 38 | var collections = service.get_collections (); 39 | var found_collection = false; 40 | 41 | foreach (var collection in collections) { 42 | if (collection.label == "Login") { 43 | default_collection = collection; 44 | found_collection = true; 45 | } 46 | } 47 | 48 | if (found_collection) { 49 | loaded (); 50 | } else { 51 | // No collections present so create one 52 | create_collection (); 53 | } 54 | } catch (Error e) { 55 | critical (e.message); 56 | } 57 | }); 58 | } 59 | 60 | public void close () { 61 | Secret.Service.disconnect (); 62 | } 63 | 64 | public void create_collection () { 65 | Secret.Collection.create.begin (service, "Login", "default", 0, 66 | new Cancellable (), (obj, res) => { 67 | try { 68 | var collection = Secret.Collection.create.end (res); 69 | default_collection = collection; 70 | loaded (); 71 | } catch (Error e) { 72 | critical (e.message); 73 | } 74 | }); 75 | } 76 | 77 | public void add_item (string name, HashTable attributes, 78 | string secret, CollectionType type) { 79 | if (type == LOGIN) { 80 | var secret_value = new Secret.Value (secret, 81 | secret.length, 82 | "text/plain"); 83 | 84 | Secret.Item.create.begin (default_collection, 85 | Schemas.epiphany (), attributes, name, 86 | secret_value, Secret.ItemCreateFlags.NONE, 87 | new Cancellable (), (obj, res) => { 88 | try { 89 | var item = Secret.Item.create.end (res); 90 | added (item); 91 | } catch (Error e) { 92 | critical (e.message); 93 | } 94 | }); 95 | } else if (type == NOTE) { 96 | var secret_value = new Secret.Value (secret, 97 | secret.length, 98 | "text/plain"); 99 | 100 | Secret.Item.create.begin (default_collection, 101 | Schemas.note (), attributes, name, secret_value, 102 | Secret.ItemCreateFlags.NONE, 103 | new Cancellable (), (obj, res) => { 104 | try { 105 | var item = Secret.Item.create.end (res); 106 | added (item); 107 | } catch (Error e) { 108 | critical (e.message); 109 | } 110 | }); 111 | } 112 | } 113 | 114 | public void remove_items (List items) { 115 | foreach (var item in items) { 116 | item.delete.begin (new Cancellable ()); 117 | } 118 | } 119 | 120 | public List get_items () { 121 | var collection_items = default_collection.get_items (); 122 | var relevant_items = new List (); 123 | var login_schema = Schemas.epiphany ().name; 124 | var note_schema = Schemas.note ().name; 125 | 126 | foreach (var item in collection_items) { 127 | if (item.get_schema_name () == login_schema || item.get_schema_name () == note_schema) { 128 | relevant_items.append (item); 129 | } 130 | } 131 | 132 | return relevant_items; 133 | } 134 | } 135 | } // Lockbox.Services 136 | -------------------------------------------------------------------------------- /src/Services/Settings.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Services { 21 | public enum Sort { 22 | NAME, 23 | CREATED 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Widgets/CollectionListRow.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Widgets { 21 | public class CollectionListRow : Gtk.ListBoxRow { 22 | public Secret.Item item { get; set; } 23 | public Gtk.Label title { get; set; } 24 | 25 | public signal void copy_username (Secret.Item item); 26 | public signal void copy_password (Secret.Item item); 27 | public signal void edit_entry(CollectionListRow row); 28 | public signal void delete_entry (CollectionListRow row); 29 | 30 | public CollectionListRow (Secret.Item item) { 31 | this.activatable = true; 32 | this.item = item; 33 | 34 | var container = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0); 35 | container.height_request = 50; 36 | 37 | title = new Gtk.Label (item.label); 38 | 39 | var copy_username_button = new Gtk.Button.with_label ("Copy Username"); 40 | var copy_password_button = new Gtk.Button.with_label ("Copy Password"); 41 | var edit_item = new Gtk.Button.from_icon_name ("accessories-text-editor-symbolic", Gtk.IconSize.BUTTON); 42 | edit_item.relief = Gtk.ReliefStyle.NONE; 43 | var delete_item = new Gtk.Button.from_icon_name ("edit-delete-symbolic", Gtk.IconSize.BUTTON); 44 | delete_item.relief = Gtk.ReliefStyle.NONE; 45 | 46 | container.pack_start (title); 47 | container.pack_start (copy_username_button, false, false, 5); 48 | container.pack_start (copy_password_button, false, false, 5); 49 | container.pack_start (edit_item, false, false ,5); 50 | container.pack_start (delete_item, false, false, 5); 51 | 52 | add (container); 53 | 54 | copy_username_button.clicked.connect ( () => { 55 | copy_username (item); 56 | }); 57 | 58 | copy_password_button.clicked.connect ( () => { 59 | copy_password (item); 60 | }); 61 | 62 | edit_item.clicked.connect (() => { 63 | edit_entry(this); 64 | }); 65 | 66 | delete_item.clicked.connect ( () => { 67 | delete_entry (this); 68 | }); 69 | 70 | if (Schemas.is_note (item)) { 71 | copy_username_button.no_show_all = true; 72 | copy_password_button.no_show_all = true; 73 | } 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/Widgets/HeaderBar.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Widgets { 21 | public class HeaderBar : Gtk.HeaderBar { 22 | public Gtk.SearchEntry search_entry { get; private set; } 23 | 24 | public signal void filter(string keyword); 25 | public signal void sort(Services.Sort sort_by); 26 | 27 | public HeaderBar () { 28 | Object ( 29 | has_subtitle: false, 30 | show_close_button: true 31 | ); 32 | } 33 | 34 | construct { 35 | /* Add menu and options */ 36 | var add_login_menuitem = new Gtk.ModelButton (); 37 | add_login_menuitem.text = _("Add New Login"); 38 | add_login_menuitem.action_name = MainWindow.ACTION_PREFIX + MainWindow.ACTION_ADD_LOGIN; 39 | 40 | var add_note_menuitem = new Gtk.ModelButton (); 41 | add_note_menuitem.text = _("Add Secure Note"); 42 | add_note_menuitem.action_name = MainWindow.ACTION_PREFIX + MainWindow.ACTION_ADD_NOTE; 43 | 44 | var add_menu_grid = new Gtk.Grid (); 45 | add_menu_grid.row_spacing = 6; 46 | add_menu_grid.margin_top = 3; 47 | add_menu_grid.margin_bottom = 3; 48 | add_menu_grid.orientation = Gtk.Orientation.VERTICAL; 49 | add_menu_grid.attach (add_login_menuitem, 0, 0, 1, 1); 50 | add_menu_grid.attach (add_note_menuitem, 0, 1, 1, 1); 51 | add_menu_grid.show_all (); 52 | 53 | var add_menu = new Gtk.PopoverMenu (); 54 | add_menu.add (add_menu_grid); 55 | 56 | var add_button = new Gtk.MenuButton (); 57 | add_button.image = new Gtk.Button.from_icon_name ("insert-object", Gtk.IconSize.LARGE_TOOLBAR); 58 | add_button.tooltip_text = _("Add Login or Note"); 59 | add_button.popover = add_menu; 60 | 61 | /* Search entry */ 62 | search_entry = new Gtk.SearchEntry (); 63 | search_entry.hexpand = true; 64 | search_entry.valign = Gtk.Align.CENTER; 65 | search_entry.placeholder_text = _("Search for sites and notes (Ctrl+F)..."); 66 | search_entry.search_changed.connect (() => { 67 | filter(search_entry.text.strip ()); 68 | }); 69 | 70 | /* App menu and options */ 71 | var preferences_menuitem = new Gtk.ModelButton (); 72 | preferences_menuitem.text = _("Preferences"); 73 | preferences_menuitem.action_name = MainWindow.ACTION_PREFIX + MainWindow.ACTION_PREFERENCES; 74 | 75 | var sort_by_name_menuitem = new Gtk.ModelButton (); 76 | sort_by_name_menuitem.text = _("Sort by Name"); 77 | sort_by_name_menuitem.clicked.connect (() => { 78 | sort(Services.Sort.NAME); 79 | }); 80 | 81 | var sort_by_created_menuitem = new Gtk.ModelButton (); 82 | sort_by_created_menuitem.text = _("Sort by Created Date"); 83 | sort_by_created_menuitem.clicked.connect (() => { 84 | sort(Services.Sort.CREATED); 85 | }); 86 | 87 | var menu_grid = new Gtk.Grid (); 88 | menu_grid.row_spacing = 6; 89 | menu_grid.margin_top = 3; 90 | menu_grid.margin_bottom = 3; 91 | menu_grid.orientation = Gtk.Orientation.VERTICAL; 92 | menu_grid.attach (preferences_menuitem, 0, 0, 1, 1); 93 | menu_grid.attach (new Gtk.Separator (Gtk.Orientation.HORIZONTAL), 0, 1, 1, 1); 94 | menu_grid.attach (sort_by_name_menuitem, 0, 2, 1, 1); 95 | menu_grid.attach (sort_by_created_menuitem, 0, 3, 1, 1); 96 | menu_grid.show_all (); 97 | 98 | var menu = new Gtk.PopoverMenu (); 99 | menu.add (menu_grid); 100 | 101 | var app_menu = new Gtk.MenuButton (); 102 | app_menu.image = new Gtk.Image.from_icon_name ("open-menu", Gtk.IconSize.LARGE_TOOLBAR); 103 | app_menu.tooltip_text = _("Menu"); 104 | app_menu.valign = Gtk.Align.CENTER; 105 | app_menu.popover = menu; 106 | 107 | set_custom_title (search_entry); 108 | 109 | pack_start (add_button); 110 | pack_start (new Gtk.Separator (Gtk.Orientation.VERTICAL)); 111 | pack_end (app_menu); 112 | pack_end (new Gtk.Separator (Gtk.Orientation.VERTICAL)); 113 | } 114 | } 115 | } // Lockbox.Widgets 116 | -------------------------------------------------------------------------------- /src/Widgets/LaunchScreen.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Widgets { 21 | public class LaunchScreen : Granite.Widgets.Welcome { 22 | public LaunchScreen () { 23 | Object( 24 | title: _("Lock Box"), 25 | subtitle: _("Sit tight while your secret clearance is verified") 26 | ); 27 | } 28 | 29 | construct { 30 | valign = Gtk.Align.FILL; 31 | halign = Gtk.Align.FILL; 32 | vexpand = true; 33 | } 34 | } 35 | } // Lockbox.Widgets 36 | -------------------------------------------------------------------------------- /src/Widgets/WelcomeScreen.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 skarva LLC. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 3 of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public 15 | * License along with this program; if not, write to the 16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 | * Boston, MA 02110-1301 USA 18 | */ 19 | 20 | namespace Lockbox.Widgets { 21 | public class WelcomeScreen : Granite.Widgets.Welcome { 22 | public signal void show_preferences (); 23 | public signal void create_login (); 24 | public signal void create_note (); 25 | 26 | public WelcomeScreen () { 27 | Object( 28 | title: _("Nothing to see here"), 29 | subtitle: _("Start storing your important info securely") 30 | ); 31 | } 32 | 33 | construct { 34 | append ("preferences-desktop", _("Configure"), _("Customize your lock box")); 35 | append ("contact-new", _("Store Login"), _("Add website login details to your lock box")); 36 | append ("document-new", _("Store Note"), _("Add a new note to yourself to your lock box")); 37 | 38 | valign = Gtk.Align.FILL; 39 | halign = Gtk.Align.FILL; 40 | vexpand = true; 41 | 42 | activated.connect ((index) => { 43 | switch (index) { 44 | case 0: 45 | show_preferences (); 46 | break; 47 | case 1: 48 | create_login (); 49 | break; 50 | case 2: 51 | create_note (); 52 | break; 53 | } 54 | }); 55 | } 56 | } 57 | } // Lockbox.Widgets 58 | -------------------------------------------------------------------------------- /src/config.vala.in: -------------------------------------------------------------------------------- 1 | namespace Constants { 2 | public const string GETTEXT_PACKAGE = @GETTEXT_PACKAGE@; 3 | public const string PROJECT_NAME = @PROJECT_NAME@; 4 | public const string VERSION = @VERSION@; 5 | public const string INSTALL_PREFIX = @PREFIX@; 6 | public const string DATADIR = @DATADIR@; 7 | } 8 | -------------------------------------------------------------------------------- /src/meson.build: -------------------------------------------------------------------------------- 1 | conf_data = configuration_data() 2 | conf_data.set_quoted('PROJECT_NAME', meson.project_name()) 3 | conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name()) 4 | conf_data.set_quoted('VERSION', meson.project_version()) 5 | conf_data.set_quoted('PREFIX', get_option('prefix')) 6 | conf_data.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir'))) 7 | config_header = configure_file( 8 | input : 'config.vala.in', 9 | output : 'config.vala', 10 | configuration : conf_data 11 | ) 12 | 13 | executable(meson.project_name(), 14 | 'Application.vala', 15 | 'MainWindow.vala', 16 | 'Dialogs/LoginDialog.vala', 17 | 'Dialogs/NoteDialog.vala', 18 | 'Dialogs/PreferencesDialog.vala', 19 | 'Schemas/Login.vala', 20 | 'Schemas/Note.vala', 21 | 'Services/Collection.vala', 22 | 'Services/Settings.vala', 23 | 'Widgets/CollectionListRow.vala', 24 | 'Widgets/HeaderBar.vala', 25 | 'Widgets/LaunchScreen.vala', 26 | 'Widgets/WelcomeScreen.vala', 27 | config_header, 28 | resources, 29 | dependencies: dependencies, 30 | install: true 31 | ) 32 | --------------------------------------------------------------------------------