├── .gitignore ├── LICENSE ├── PrefPane ├── Application.png ├── English.lproj │ ├── InfoPlist.strings │ └── SecretsPref.xib ├── Info.plist ├── Informer │ ├── Informer.m │ └── dyld-interposing.h ├── Media.xcassets │ ├── Contents.json │ └── Secrets_Logo.imageset │ │ ├── Contents.json │ │ └── Secrets_Logo.pdf ├── NSGeometry_BLTRExtensions.h ├── NSGeometry_BLTRExtensions.m ├── NSImage_BLTRExtensions.h ├── NSImage_BLTRExtensions.m ├── NSSortDescriptor+BLTRExtensions.h ├── NSSortDescriptor+BLTRExtensions.m ├── Secrets.icns ├── Secrets.plist ├── Secrets.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── SecretsPref.h ├── SecretsPref.m ├── SecretsPref.tiff ├── Secrets_Prefix.pch └── TODO.txt ├── README.md └── Server ├── Secrets_Logo.png ├── app.yaml ├── form.html ├── index.html ├── index.yaml ├── loader.py ├── plist.xml ├── plistentry.xml ├── rss.xml ├── secrets.py └── static ├── favicon.ico ├── images ├── Secrets.png └── bundleicons │ ├── Chax.bundle.png │ ├── GlobalPreferences.png │ ├── InCrease.png │ ├── TiVoDesktop.prefPane.png │ ├── ch.sudo.cyberduck.png │ ├── com.1passwd.png │ ├── com.DanSchimpf.MacJournal.png │ ├── com.abyssoft.teleport.png │ ├── com.adiumx.Adiumx.png │ ├── com.apple.AddressBook.png │ ├── com.apple.Backup.png │ ├── com.apple.CrashReporterPrefs.png │ ├── com.apple.DiskUtility.png │ ├── com.apple.Grab.png │ ├── com.apple.NetworkUtility.png │ ├── com.apple.PhotoBooth.png │ ├── com.apple.QuartzComposer.editor.png │ ├── com.apple.QuickTimePlayerX.png │ ├── com.apple.RemoteDesktop.png │ ├── com.apple.Safari.png │ ├── com.apple.ScreenSharing.png │ ├── com.apple.Terminal.png │ ├── com.apple.Xcode.png │ ├── com.apple.backup.launcher.png │ ├── com.apple.dashboardlauncher.png │ ├── com.apple.dock.png │ ├── com.apple.dvdplayer.png │ ├── com.apple.finder.png │ ├── com.apple.frontrowlauncher.png │ ├── com.apple.helpviewer.png │ ├── com.apple.iCal.png │ ├── com.apple.iChat.png │ ├── com.apple.iPhoto.png │ ├── com.apple.iTunes.png │ ├── com.apple.iWork.Keynote.png │ ├── com.apple.iWork.Numbers.png │ ├── com.apple.iWork.Pages.png │ ├── com.apple.keychainaccess.png │ ├── com.apple.mail.png │ ├── com.apple.spaceslauncher.png │ ├── com.apple.spotlight.png │ ├── com.barebones.bbedit.png │ ├── com.blacktree.Nocturne.png │ ├── com.bruji.DVDpedia.png │ ├── com.echoone.FileJuicer.png │ ├── com.echoone.doubletake.png │ ├── com.flyingmeat.Acorn.png │ ├── com.flyingmeat.VoodooPad_Pro.png │ ├── com.google.Desktop.QSB.png │ ├── com.google.GmailNotifier.png │ ├── com.google.Updater.png │ ├── com.houdah.HoudahSpot.png │ ├── com.iconfactory.Twitterrific.png │ ├── com.karelia.Sandvox.png │ ├── com.kjams.kJams.png │ ├── com.ksuther.chax.png │ ├── com.macromates.textmate.png │ ├── com.mactelnet.MacTelnet.png │ ├── com.malcolmhardie.sqleditor.cocoa.png │ ├── com.microsoft.Entourage.png │ ├── com.omnigroup.OmniFocus.png │ ├── com.omnigroup.OmniWeb5.png │ ├── com.potionfactory.Tangerine.png │ ├── com.ranchero.NetNewsWire.png │ ├── com.red-sweater.FastScripts.png │ ├── com.rogueamoeba.AudioHijackPro2.png │ ├── com.rogueamoeba.fission.png │ ├── com.roxio.toast.png │ ├── com.stuntsoftware.Overflow.png │ ├── com.thecocoabots.Hyperspaces.png │ ├── iTerm.png │ ├── info.colloquy.png │ ├── org.aegidian.oolite.png │ ├── org.bergstrand.iScrobbler.png │ ├── org.m0k.transmission.png │ ├── org.mozilla.camino.png │ ├── org.smultron.Smultron.png │ ├── org.tynsoe.buddypop.png │ ├── org.x.X11.png │ ├── uk.co.markallan.clamxav.ClamXavSentry.png │ └── uk.co.opencommunity.vienna2.png ├── javascript └── jquery.js ├── robots.txt └── stylesheets └── secrets.css /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /PrefPane/Application.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/PrefPane/Application.png -------------------------------------------------------------------------------- /PrefPane/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/PrefPane/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /PrefPane/English.lproj/SecretsPref.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | search 61 | title contains[c] $value 62 | 63 | 64 | 65 | 66 | 67 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 139 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 181 | 194 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | NSNegateBoolean 227 | 228 | 229 | 230 | 231 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 353 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | name 419 | title 420 | self 421 | text 422 | image 423 | bold 424 | modified 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | name 433 | image 434 | text 435 | title 436 | textColor 437 | group 438 | bundle.text 439 | container.text 440 | container.modified 441 | container.running 442 | container.dirty 443 | container.image 444 | description 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 499 | 500 | 501 | 502 | 503 | 504 | 512 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | image 535 | title 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | YnBsaXN0MDDUAQIDBAUGISJYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoKYHCBES 555 | GB5VJG51bGzUCQoLDA0ODxBWTlNTaXplViRjbGFzc1xOU0ltYWdlRmxhZ3NXTlNDb2xvcoACgAUSIMAA 556 | AIADWHsxNiwgMTZ90xMUChUWF1dOU1doaXRlXE5TQ29sb3JTcGFjZUQwIDAAEAOABNIZGhscWiRjbGFz 557 | c25hbWVYJGNsYXNzZXNXTlNDb2xvcqIbHVhOU09iamVjdNIZGh8gV05TSW1hZ2WiHx1fEA9OU0tleWVk 558 | QXJjaGl2ZXLRIyRUcm9vdIABAAgAEQAaACMALQAyADcAPgBEAE0AVABbAGgAcAByAHQAeQB7AIQAiwCT 559 | AKAApQCnAKkArgC5AMIAygDNANYA2wDjAOYA+AD7AQAAAAAAAAACAQAAAAAAAAAlAAAAAAAAAAAAAAAA 560 | AAABAg 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | -------------------------------------------------------------------------------- /PrefPane/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | Secrets.icns 11 | CFBundleIdentifier 12 | com.blacktree.Secrets 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleSignature 20 | BLTs 21 | CFBundleVersion 22 | 1.0.6 23 | NSMainNibFile 24 | SecretsPref 25 | NSPrefPaneIconFile 26 | Secrets.icns 27 | NSPrefPaneIconLabel 28 | Secrets 29 | NSPrincipalClass 30 | SecretsPref 31 | 32 | 33 | -------------------------------------------------------------------------------- /PrefPane/Informer/Informer.m: -------------------------------------------------------------------------------- 1 | // 2 | // Informer.m 3 | // Informer 4 | // 5 | // Created by Nicholas Jitkoff on 3/4/08. 6 | 7 | #import 8 | #import "dyld-interposing.h" 9 | #import "/usr/include/objc/runtime.h" 10 | 11 | void NoteCFPreferencesInfo(NSString * key, NSString * infoKey, CFPropertyListRef value, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName) { 12 | NSAutoreleasePool *pool = [NSAutoreleasePool new]; 13 | 14 | 15 | if ([key rangeOfString:@"/"].location != NSNotFound) 16 | key = [key stringByReplacingOccurrencesOfString:@"/" withString:@":"]; 17 | 18 | BOOL isNS = [key hasPrefix:@"NS"] || [key hasPrefix:@"WebKit"] || [key hasPrefix:@"_NS"] || [key hasPrefix:@"__NS"] || [key hasPrefix:@"Apple"] || [key hasPrefix:@"CF"] || [key hasPrefix:@"com.apple"] || [key hasPrefix:@"AB"] || [key hasPrefix:@"_CF"];; 19 | 20 | NSString *identifier = [[NSBundle mainBundle] bundleIdentifier]; 21 | 22 | NSString *basepath = [@"~/Library/Caches/Informer" stringByStandardizingPath]; 23 | if (isNS) key = [@"Apple/" stringByAppendingString:key]; 24 | 25 | // Accessing own domain 26 | if (CFEqual(applicationID, kCFPreferencesCurrentApplication)) { 27 | applicationID = (CFStringRef)[basepath stringByAppendingFormat:@"/%@./%@",identifier, key]; 28 | 29 | // Accessing global domain 30 | } else if (CFEqual(applicationID, kCFPreferencesAnyApplication)) { 31 | applicationID = (CFStringRef)[basepath stringByAppendingFormat:@"/%@./%@/%@", applicationID, key, identifier]; 32 | 33 | // Accessing another domain 34 | } else { 35 | applicationID = (CFStringRef)[basepath stringByAppendingFormat:@"/%@./%@./%@/%@",identifier, applicationID, key, identifier]; 36 | } 37 | 38 | CFPreferencesSetValue((CFStringRef)infoKey, value, (CFStringRef)applicationID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 39 | CFPreferencesAppSynchronize((CFStringRef)applicationID); 40 | [pool release]; 41 | } 42 | 43 | @implementation NSUserDefaults (Informer) 44 | 45 | - (id)secretObjectForKey:(NSString *)defaultName{ 46 | id value = [self secretObjectForKey:defaultName]; 47 | NoteCFPreferencesInfo(defaultName, @"ndvalue", value, kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 48 | return value; 49 | } 50 | 51 | - (NSArray *)secretArrayForKey:(NSString *)defaultName { 52 | NoteCFPreferencesInfo(defaultName, @"type", @"array", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 53 | return [self secretArrayForKey:defaultName]; 54 | } 55 | 56 | - (NSDictionary *)secretDictionaryForKey:(NSString *)defaultName { 57 | NoteCFPreferencesInfo(defaultName, @"type", @"dictionary", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 58 | return [self secretDictionaryForKey:defaultName]; 59 | } 60 | 61 | - (NSData *)secretDataForKey:(NSString *)defaultName { 62 | NoteCFPreferencesInfo(defaultName, @"type", @"data", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 63 | return [self secretDataForKey:defaultName]; 64 | } 65 | 66 | - (NSArray *)secretStringArrayForKey:(NSString *)defaultName { 67 | NoteCFPreferencesInfo(defaultName, @"type", @"stringArray", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 68 | return [self secretStringArrayForKey:defaultName]; 69 | } 70 | 71 | - (NSInteger)secretIntegerForKey:(NSString *)defaultName { 72 | NoteCFPreferencesInfo(defaultName, @"type", @"integer", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 73 | return [self secretIntegerForKey:defaultName]; 74 | } 75 | 76 | - (float)secretFloatForKey:(NSString *)defaultName { 77 | NoteCFPreferencesInfo(defaultName, @"type", @"float", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 78 | return [self secretFloatForKey:defaultName]; 79 | } 80 | 81 | - (double)secretDoubleForKey:(NSString *)defaultName { 82 | NoteCFPreferencesInfo(defaultName, @"type", @"double", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 83 | return [self secretDoubleForKey:defaultName]; 84 | } 85 | 86 | - (NSString *)secretStringForKey:(NSString *)defaultName { 87 | NoteCFPreferencesInfo(defaultName, @"type", @"string", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 88 | return [self secretStringForKey:defaultName]; 89 | } 90 | 91 | - (BOOL)secretBoolForKey:(NSString*)defaultName { 92 | NoteCFPreferencesInfo(defaultName, @"type", @"bool", kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 93 | return [self secretBoolForKey:defaultName]; 94 | } 95 | 96 | - (void)secretRegisterDefaults:(NSDictionary *)registrationDictionary { 97 | for (NSString *key in registrationDictionary) { 98 | id value = [registrationDictionary objectForKey:key]; 99 | NoteCFPreferencesInfo(key, @"registered", value, kCFPreferencesCurrentApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 100 | } 101 | [self secretRegisterDefaults:registrationDictionary]; 102 | } 103 | @end 104 | 105 | CFDictionaryRef MyCFPreferencesCopyMultiple(CFArrayRef keysToFetch, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName){ 106 | printf("multiple"); 107 | return CFPreferencesCopyMultiple( keysToFetch, applicationID, userName, hostName); 108 | } 109 | 110 | void MyCFPreferencesAddSuitePreferencesToApp(CFStringRef applicationID, CFStringRef suiteID) { 111 | NSLog(@"addsuite %@", applicationID); 112 | } 113 | 114 | Boolean MyCFPreferencesGetAppBooleanValue(CFStringRef key, CFStringRef applicationID, Boolean *keyExistsAndHasValidFormat) { 115 | NoteCFPreferencesInfo((NSString *)key, @"type", @"bool", applicationID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 116 | return CFPreferencesGetAppBooleanValue( key, applicationID, keyExistsAndHasValidFormat); 117 | } 118 | 119 | CFIndex MyCFPreferencesGetAppIntegerValue(CFStringRef key, CFStringRef applicationID, Boolean *keyExistsAndHasValidFormat) { 120 | NoteCFPreferencesInfo((NSString *)key, @"type", @"integer", applicationID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); 121 | return CFPreferencesGetAppIntegerValue( key, applicationID, keyExistsAndHasValidFormat); 122 | } 123 | 124 | DYLD_INTERPOSE(MyCFPreferencesGetAppIntegerValue, CFPreferencesGetAppIntegerValue) 125 | 126 | 127 | CFPropertyListRef MyCFPreferencesCopyValue (CFStringRef key, 128 | CFStringRef applicationID, 129 | CFStringRef userName, 130 | CFStringRef hostName) { 131 | 132 | CFPropertyListRef value = CFPreferencesCopyValue(key, applicationID, userName, hostName); 133 | NoteCFPreferencesInfo((NSString *)key, @"value", value ? value : @"(null)", applicationID, userName, hostName); 134 | NoteCFPreferencesInfo((NSString *)key, @"key", key, applicationID, userName, hostName); 135 | return value; 136 | } 137 | 138 | DYLD_INTERPOSE(MyCFPreferencesCopyValue, CFPreferencesCopyValue) 139 | 140 | 141 | __attribute__ ((constructor)) 142 | void MyConstructor(void) { 143 | NSAutoreleasePool *pool = [NSAutoreleasePool new]; 144 | 145 | NSLog(@"Informer loaded"); 146 | if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.blacktree.Quicksilver"]) return; 147 | 148 | Class D = [NSUserDefaults class]; 149 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretRegisterDefaults:)), 150 | class_getInstanceMethod(D, @selector(registerDefaults:))); 151 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretObjectForKey:)), 152 | class_getInstanceMethod(D, @selector(objectForKey:))); 153 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretStringForKey:)), 154 | class_getInstanceMethod(D, @selector(stringForKey:))); 155 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretBoolForKey:)), 156 | class_getInstanceMethod(D, @selector(boolForKey:))); 157 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretArrayForKey:)), 158 | class_getInstanceMethod(D, @selector(arrayForKey:))); 159 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretDictionaryForKey:)), 160 | class_getInstanceMethod(D, @selector(dictionaryForKey:))); 161 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretIntegerForKey:)), 162 | class_getInstanceMethod(D, @selector(integerForKey:))); 163 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretDataForKey:)), 164 | class_getInstanceMethod(D, @selector(dataForKey:))); 165 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretFloatForKey:)), 166 | class_getInstanceMethod(D, @selector(floatForKey:))); 167 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretDoubleForKey:)), 168 | class_getInstanceMethod(D, @selector(doubleForKey:))); 169 | method_exchangeImplementations(class_getInstanceMethod(D, @selector(secretStringArrayForKey:)), 170 | class_getInstanceMethod(D, @selector(stringArrayForKey:))); 171 | 172 | [pool release]; 173 | } 174 | 175 | 176 | -------------------------------------------------------------------------------- /PrefPane/Informer/dyld-interposing.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://www.opensource.apple.com/apsl/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPLE_LICENSE_HEADER_END@ 22 | */ 23 | 24 | #if !defined(_DYLD_INTERPOSING_H_) 25 | #define _DYLD_INTERPOSING_H_ 26 | 27 | /* 28 | * Example: 29 | * 30 | * static 31 | * int 32 | * my_open(const char* path, int flags, mode_t mode) 33 | * { 34 | * int value; 35 | * // do stuff before open (including changing the arguments) 36 | * value = open(path, flags, mode); 37 | * // do stuff after open (including changing the return value(s)) 38 | * return value; 39 | * } 40 | * DYLD_INTERPOSE(my_open, open) 41 | */ 42 | 43 | typedef void (*void_function_t)(void); 44 | 45 | #define DYLD_INTERPOSE(_replacment,_replacee) \ 46 | __attribute__((used)) static struct{ const void* replacment; const void* replacee; } _interpose_##_replacee \ 47 | __attribute__ ((section ("__DATA,__interpose"))) = { (const void*)(unsigned long)&_replacment, (const void*)(unsigned long)&_replacee }; 48 | #endif 49 | -------------------------------------------------------------------------------- /PrefPane/Media.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /PrefPane/Media.xcassets/Secrets_Logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Secrets_Logo.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /PrefPane/Media.xcassets/Secrets_Logo.imageset/Secrets_Logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/PrefPane/Media.xcassets/Secrets_Logo.imageset/Secrets_Logo.pdf -------------------------------------------------------------------------------- /PrefPane/NSGeometry_BLTRExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSGeometry_Extensions.h 3 | // 4 | // 5 | // Created by Alcor on Thu Nov 28 2002. 6 | 7 | // 8 | 9 | #import 10 | 11 | 12 | typedef struct _BTFloatRange { 13 | float value; 14 | float location; 15 | float length; 16 | } BTFloatRange; 17 | 18 | 19 | BTFloatRange BTMakeFloatRange(float value,float location,float length); 20 | float BTFloatRangeMod(BTFloatRange range); 21 | float BTFloatRangeUnit(BTFloatRange range); 22 | NSPoint rectOffset(NSRect innerRect,NSRect outerRect,int quadrant); 23 | 24 | 25 | NSRect rectZoom(NSRect rect,float zoom,int quadrant); 26 | 27 | NSRect sizeRectInRect(NSRect innerRect,NSRect outerRect,bool expand); 28 | NSPoint offsetPoint(NSPoint fromPoint, NSPoint toPoint); 29 | NSRect fitRectInRect(NSRect innerRect,NSRect outerRect,bool expand); 30 | NSRect centerRectInRect(NSRect rect, NSRect mainRect); 31 | NSRect rectFromSize(NSSize size); 32 | NSRect rectWithProportion(NSRect innerRect,float proportion,bool expand); 33 | 34 | NSRect constrainRectToRect(NSRect innerRect, NSRect outerRect); 35 | NSRect alignRectInRect(NSRect innerRect,NSRect outerRect,int quadrant); 36 | NSRect expelRectFromRect(NSRect innerRect, NSRect outerRect,float peek); 37 | NSRect expelRectFromRectOnEdge(NSRect innerRect, NSRect outerRect,NSRectEdge edge,float peek); 38 | 39 | NSRectEdge touchingEdgeForRectInRect(NSRect innerRect, NSRect outerRect); 40 | int closestCorner(NSRect innerRect,NSRect outerRect); 41 | int oppositeQuadrant(int quadrant); 42 | 43 | NSRect blendRects(NSRect start, NSRect end,float b); 44 | void logRect(NSRect rect); -------------------------------------------------------------------------------- /PrefPane/NSGeometry_BLTRExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSGeometry_Extensions.m 3 | // 1.0 4 | // 5 | // Created by Alcor on Thu Nov 28 2002. 6 | 7 | // 8 | 9 | #import "NSGeometry_BLTRExtensions.h" 10 | #import "math.h" 11 | 12 | BTFloatRange BTMakeFloatRange(float value,float location,float length){ 13 | BTFloatRange fRange; 14 | fRange.value=value; 15 | fRange.location=location; 16 | fRange.length=length; 17 | return fRange; 18 | } 19 | float BTFloatRangeMod(BTFloatRange range){ 20 | return fmod(range.value-range.location,range.length)+range.location; 21 | } 22 | 23 | float BTFloatRangeUnit(BTFloatRange range){ 24 | return (range.value-range.location)/range.length; 25 | } 26 | 27 | NSPoint offsetPoint(NSPoint fromPoint, NSPoint toPoint){ 28 | return NSMakePoint(toPoint.x-fromPoint.x,toPoint.y-fromPoint.y); 29 | } 30 | 31 | int oppositeQuadrant(int quadrant){ 32 | quadrant=quadrant+2; 33 | quadrant%=4; 34 | if (!quadrant)quadrant=4; 35 | return quadrant; 36 | } 37 | 38 | NSPoint rectOffset(NSRect innerRect,NSRect outerRect,int quadrant){ 39 | if (quadrant) 40 | return NSMakePoint((quadrant == 3 || quadrant == 2) ? NSMaxX(outerRect)-NSMaxX(innerRect) : NSMinX(outerRect)-NSMinX(innerRect), 41 | (quadrant == 4 || quadrant == 3) ? NSMaxY(outerRect)-NSMaxY(innerRect) : NSMinY(outerRect)-NSMinY(innerRect)); 42 | return NSMakePoint(NSMidX(outerRect)-NSMidX(innerRect),NSMidY(outerRect)-NSMidY(innerRect)); //Center Rects 43 | } 44 | 45 | NSRect alignRectInRect(NSRect innerRect,NSRect outerRect,int quadrant){ 46 | NSPoint offset=rectOffset(innerRect,outerRect,quadrant); 47 | return NSOffsetRect(innerRect,offset.x,offset.y); 48 | } 49 | 50 | 51 | 52 | 53 | NSRect rectZoom(NSRect rect,float zoom,int quadrant){ 54 | NSSize newSize=NSMakeSize(NSWidth(rect)*zoom,NSHeight(rect)*zoom); 55 | NSRect newRect=rect; 56 | newRect.size=newSize; 57 | return newRect; 58 | } 59 | 60 | 61 | NSRect sizeRectInRect(NSRect innerRect,NSRect outerRect,bool expand){ 62 | float proportion=NSWidth(innerRect)/NSHeight(innerRect); 63 | NSRect xRect=NSMakeRect(0,0,outerRect.size.width,outerRect.size.width/proportion); 64 | NSRect yRect=NSMakeRect(0,0,outerRect.size.height*proportion,outerRect.size.height); 65 | NSRect newRect; 66 | if (expand) newRect = NSUnionRect(xRect,yRect); 67 | else newRect = NSIntersectionRect(xRect,yRect); 68 | return newRect; 69 | } 70 | 71 | NSRect fitRectInRect(NSRect innerRect,NSRect outerRect,bool expand){ 72 | return centerRectInRect(sizeRectInRect(innerRect,outerRect,expand),outerRect); 73 | } 74 | 75 | NSRect rectWithProportion(NSRect innerRect,float proportion,bool expand){ 76 | NSRect xRect=NSMakeRect(0,0,innerRect.size.width,innerRect.size.width/proportion); 77 | NSRect yRect=NSMakeRect(0,0,innerRect.size.height*proportion,innerRect.size.height); 78 | NSRect newRect; 79 | if (expand) newRect = NSUnionRect(xRect,yRect); 80 | else newRect = NSIntersectionRect(xRect,yRect); 81 | return newRect; 82 | } 83 | 84 | NSRect centerRectInRect(NSRect rect, NSRect mainRect){ 85 | return NSOffsetRect(rect,NSMidX(mainRect)-NSMidX(rect),NSMidY(mainRect)-NSMidY(rect)); 86 | } 87 | 88 | NSRect constrainRectToRect(NSRect innerRect, NSRect outerRect){ 89 | NSPoint offset=NSZeroPoint; 90 | if (NSMaxX(innerRect) > NSMaxX(outerRect)) 91 | offset.x+= NSMaxX(outerRect) - NSMaxX(innerRect); 92 | if (NSMaxY(innerRect) > NSMaxY(outerRect)) 93 | offset.y+= NSMaxY(outerRect) - NSMaxY(innerRect); 94 | if (NSMinX(innerRect) < NSMinX(outerRect)) 95 | offset.x+= NSMinX(outerRect) - NSMinX(innerRect); 96 | if (NSMinY(innerRect) < NSMinY(outerRect)) 97 | offset.y+= NSMinY(outerRect) - NSMinY(innerRect); 98 | return NSOffsetRect(innerRect,offset.x,offset.y); 99 | } 100 | 101 | NSRect expelRectFromRect(NSRect innerRect, NSRect outerRect,float peek){ 102 | NSPoint offset=NSZeroPoint; 103 | 104 | float leftDistance=NSMaxX(innerRect) - NSMinX(outerRect); 105 | float rightDistance=NSMaxX(outerRect)-NSMinX(innerRect); 106 | float topDistance=NSMaxY(outerRect)-NSMinY(innerRect); 107 | float bottomDistance=NSMaxY(innerRect) - NSMinY(outerRect); 108 | float minDistance=MIN(MIN(MIN(leftDistance,rightDistance),topDistance),bottomDistance); 109 | 110 | if (minDistance==leftDistance) 111 | offset.x-=leftDistance-peek; 112 | else if (minDistance==rightDistance) 113 | offset.x+=rightDistance-peek; 114 | else if (minDistance==topDistance) 115 | offset.y+=topDistance-peek; 116 | else if (minDistance==bottomDistance) 117 | offset.y-=bottomDistance-peek; 118 | 119 | return NSOffsetRect(innerRect,offset.x,offset.y); 120 | } 121 | 122 | NSRect expelRectFromRectOnEdge(NSRect innerRect, NSRect outerRect,NSRectEdge edge,float peek){ 123 | NSPoint offset=NSZeroPoint; 124 | 125 | switch(edge){ 126 | case NSMaxXEdge: 127 | 128 | offset.x+=NSMaxX(outerRect)-NSMinX(innerRect)-peek; 129 | break; 130 | case NSMinXEdge: 131 | offset.x-=NSMaxX(innerRect) - NSMinX(outerRect) - peek; 132 | break; 133 | case NSMaxYEdge: 134 | offset.y+=NSMaxY(outerRect)-NSMinY(innerRect)-peek; 135 | break; 136 | case NSMinYEdge: 137 | offset.y-=NSMaxY(innerRect) - NSMinY(outerRect)-peek; 138 | break; 139 | } 140 | 141 | return NSOffsetRect(innerRect,offset.x,offset.y); 142 | } 143 | NSRectEdge touchingEdgeForRectInRect(NSRect innerRect, NSRect outerRect){ 144 | 145 | if (NSMaxX(innerRect)>=NSMaxX(outerRect)) return NSMaxXEdge; 146 | else if (NSMinX(innerRect)<=NSMinX(outerRect)) return NSMinXEdge; 147 | else if (NSMaxY(innerRect)>=NSMaxY(outerRect)) return NSMaxYEdge; 148 | else if (NSMinY(innerRect)<=NSMinY(outerRect)) return NSMinYEdge; 149 | return -1; 150 | } 151 | 152 | 153 | 154 | NSRect rectFromSize(NSSize size){ 155 | return NSMakeRect(0,0,size.width,size.height); 156 | } 157 | 158 | float distanceFromOrigin(NSPoint point){ 159 | return hypot(point.x, point.y); 160 | } 161 | int closestCorner(NSRect innerRect,NSRect outerRect){ 162 | float bestDistance=-1; 163 | int closestCorner=0; 164 | int i; 165 | for(i=0;i<5;i++){ 166 | float distance = distanceFromOrigin(rectOffset(innerRect,outerRect,i)); 167 | if (distance < bestDistance || bestDistance<0){ 168 | bestDistance=distance; 169 | closestCorner=i; 170 | } 171 | } 172 | return closestCorner; 173 | } 174 | 175 | 176 | 177 | 178 | 179 | NSRect blendRects(NSRect start, NSRect end,float b){ 180 | 181 | return NSMakeRect( round(NSMinX(start)*(1-b) + NSMinX(end)*b), 182 | round(NSMinY(start)*(1-b) + NSMinY(end)*b), 183 | round(NSWidth(start)*(1-b) + NSWidth(end)*b), 184 | round(NSHeight(start)*(1-b) + NSHeight(end)*b)); 185 | } 186 | 187 | void logRect(NSRect rect){ 188 | //QSLog(@"(%f,%f) (%fx%f)",rect.origin.x,rect.origin.y,rect.size.width,rect.size.height); 189 | } 190 | -------------------------------------------------------------------------------- /PrefPane/NSImage_BLTRExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSImage_BLTRExtensions.h 3 | // Quicksilver 4 | // 5 | // Created by Alcor on Thu Apr 24 2003. 6 | 7 | // 8 | 9 | #import 10 | 11 | 12 | #define QSSize16 NSMakeSize(16,16) 13 | #define QSSize32 NSMakeSize(32,32) 14 | #define QSSize48 NSMakeSize(48,48) 15 | #define QSSize128 NSMakeSize(128,128) 16 | #define QSSize256 NSMakeSize(256,256) 17 | 18 | 19 | @interface NSImage (Dragging) 20 | 21 | - (NSImage *)imageWithAlphaComponent:(float)alpha; 22 | 23 | @end 24 | 25 | @interface NSImage (Scaling) 26 | 27 | 28 | - (NSImage *)imageByAdjustingHue:(float)hue; 29 | - (NSImage *)imageByAdjustingHue:(float)hue saturation:(float)saturation; 30 | - (NSImageRep *)representationOfSize:(NSSize)theSize; 31 | - (NSImageRep *)bestRepresentationForSize:(NSSize)theSize; 32 | - (BOOL)createRepresentationOfSize:(NSSize)newSize; 33 | - (BOOL)shrinkToSize:(NSSize)newSize; 34 | - (BOOL)createIconRepresentations; 35 | - (void)removeRepresentationsLargerThanSize:(NSSize)size; 36 | - (BOOL)shrinkToSize:(NSSize)newSize; 37 | - (NSImage *)duplicateOfSize:(NSSize)newSize; 38 | @end 39 | 40 | @interface NSImage (Trim) 41 | -(NSRect)usedRect; 42 | - (NSImage *)scaleImageToSize:(NSSize)newSize trim:(BOOL)trim expand:(BOOL)expand scaleUp:(BOOL)scaleUp; 43 | @end 44 | 45 | @interface NSImage (Average) 46 | -(NSColor *)averageColor; 47 | @end 48 | -------------------------------------------------------------------------------- /PrefPane/NSImage_BLTRExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSImage_BLTRExtensions.m 3 | // Quicksilver 4 | // 5 | // Created by Alcor on Thu Apr 24 2003. 6 | 7 | // 8 | 9 | #import "NSImage_BLTRExtensions.h" 10 | #import "NSGeometry_BLTRExtensions.h" 11 | 12 | static inline int get_bit(unsigned char *arr, unsigned long bit_num) 13 | { 14 | return ( arr[(bit_num/8)] & (1 << (bit_num%8)) ); 15 | } 16 | 17 | 18 | 19 | @implementation NSBitmapImageRep (Stego) 20 | /* 21 | - (void)embedMessage:(NSString *)message inChannel:(int)channel { 22 | unsigned char *pixels = [self bitmapData]; 23 | 24 | // In the following loop, i is the horizontal coordinate of the pixel, and 25 | // j is the vertical component. 26 | // i loops over columns, j loops over rows 27 | int i; 28 | int j; 29 | for(j = 0; j < imageHeightInPixels; j++) 30 | { 31 | for (i = 0; i < imageWidthInPixels; i++) 32 | { 33 | 34 | pixels[(j*imageWidthInPixels+i) *bitsPerPixel+channel] 35 | 36 | 37 | 38 | *pixels++ = fractColor.red; 39 | *pixels++ = fractColor.blue; 40 | *pixels++ = fractColor.green; 41 | *pixels++ = fractColor.alpha; 42 | 43 | } 44 | } 45 | 46 | } 47 | */ 48 | @end 49 | 50 | @implementation NSImage (Dragging) 51 | 52 | 53 | 54 | // ***warning * this needs to fade all representations 55 | - (NSImage *)imageWithAlphaComponent:(float)alpha { 56 | // BOOL wasFlipped = [self isFlipped]; 57 | 58 | NSImage *fadedImage = [[NSImage alloc] initWithData:[self TIFFRepresentation]]; 59 | [fadedImage setCacheMode:NSImageCacheNever]; 60 | 61 | NSEnumerator *repEnum = [[fadedImage representations] objectEnumerator]; 62 | NSImageRep *rep = nil; 63 | while((rep = [repEnum nextObject]) ) { 64 | [fadedImage lockFocusOnRepresentation:rep]; 65 | 66 | [[NSColor colorWithDeviceWhite:0.0 alpha:0.5] set]; 67 | NSRectFillUsingOperation(rectFromSize([rep size]), NSCompositeDestinationIn); 68 | 69 | [fadedImage unlockFocus]; 70 | } 71 | // [self setFlipped:NO]; w 72 | // [fadedImage lockFocus]; 73 | // [self drawInRect:rectFromSize([self size]) fromRect:rectFromSize([self size]) operation:NSCompositeSourceOver fraction:alpha]; 74 | // [fadedImage unlockFocus]; 75 | return fadedImage; 76 | 77 | } 78 | 79 | @end 80 | 81 | @implementation NSImage (Scaling) 82 | 83 | //FIXME 84 | - (NSImage *)imageByAdjustingHue:(float)hue { 85 | return self; 86 | } 87 | - (NSImage *)imageByAdjustingHue:(float)hue saturation:(float)saturation { 88 | return self; 89 | } 90 | - (NSSize) adjustSizeToDrawAtSize:(NSSize)theSize { 91 | NSImageRep *bestRep = [self bestRepresentationForSize:theSize]; 92 | [self setSize:[bestRep size]]; 93 | return [bestRep size]; 94 | } 95 | - (NSImageRep *)bestRepresentationForSize:(NSSize)theSize { 96 | NSImageRep *bestRep = [self representationOfSize:theSize]; 97 | //[self setCacheMode:NSImageCacheNever]; 98 | if (bestRep) { 99 | 100 | // QSLog(@"getRep? %f", theSize.width); 101 | return bestRep; 102 | 103 | } else { 104 | // QSLog(@"getRex? %f", theSize.width); 105 | } 106 | NSArray *reps = [self representations]; 107 | // if (theSize.width == theSize.height) { 108 | // ***warning * handle other sizes 109 | float repDistance = 65536.0; 110 | // ***warning * this is totally not the highest, but hey... 111 | NSImageRep *thisRep; 112 | float thisDistance; 113 | int i; 114 | for (i = 0; i<(int) [reps count]; i++) { 115 | thisRep = [reps objectAtIndex:i]; 116 | thisDistance = MIN(theSize.width-[thisRep size] .width, theSize.height-[thisRep size] .height); 117 | 118 | if (repDistance<0 && thisDistance>0) continue; 119 | if (ABS(thisDistance) 0)) { 120 | repDistance = thisDistance; 121 | bestRep = thisRep; 122 | } 123 | } 124 | ///QSLog(@" Rex? %@", bestRep); 125 | 126 | if (bestRep) return bestRep; 127 | bestRep = [self bestRepresentationForDevice:nil]; 128 | // QSLog(@"unable to find reps %@", reps); 129 | 130 | return bestRep; 131 | return nil; 132 | } 133 | 134 | - (NSImageRep *)representationOfSize:(NSSize)theSize { 135 | NSArray *reps = [self representations]; 136 | int i; 137 | for (i = 0; i<(int) [reps count]; i++) 138 | if (NSEqualSizes([[reps objectAtIndex:i] size] , theSize) ) 139 | return [reps objectAtIndex:i]; 140 | return nil; 141 | } 142 | 143 | - (BOOL)createIconRepresentations { 144 | [self setFlipped:NO]; 145 | 146 | //[self createRepresentationOfSize:NSMakeSize(128, 128)]; 147 | [self createRepresentationOfSize:NSMakeSize(32, 32)]; 148 | [self createRepresentationOfSize:NSMakeSize(16, 16)]; 149 | [self setScalesWhenResized:NO]; 150 | return YES; 151 | } 152 | 153 | 154 | - (BOOL)createRepresentationOfSize:(NSSize)newSize { 155 | // ***warning * !? should this be done on the main thread? 156 | // 157 | 158 | if ([self representationOfSize:newSize]) return NO; 159 | 160 | 161 | 162 | NSBitmapImageRep *bestRep = (NSBitmapImageRep *)[self bestRepresentationForSize:newSize]; 163 | if ([bestRep respondsToSelector:@selector(CGImage)]) { 164 | CGImageRef imageRef = [bestRep CGImage]; 165 | 166 | CGColorSpaceRef cspace = CGColorSpaceCreateDeviceRGB(); 167 | CGContextRef smallContext = CGBitmapContextCreate(NULL, 168 | newSize.width, 169 | newSize.height, 170 | 8, // bits per component 171 | newSize.width * 4, // bytes per pixel 172 | cspace, 173 | kCGBitmapByteOrder32Host | kCGImageAlphaPremultipliedLast); 174 | CFRelease(cspace); 175 | 176 | if (!smallContext) return NO; 177 | 178 | NSRect drawRect = fitRectInRect(rectFromSize([bestRep size]), rectFromSize(newSize), NO); 179 | 180 | CGContextDrawImage(smallContext, NSRectToCGRect(drawRect), imageRef); 181 | 182 | CGImageRef smallImage = CGBitmapContextCreateImage(smallContext); 183 | if (smallImage) { 184 | NSBitmapImageRep *cgRep = [[NSBitmapImageRep alloc] initWithCGImage:smallImage]; 185 | [self addRepresentation:cgRep]; 186 | } 187 | CGImageRelease(smallImage); 188 | CGContextRelease(smallContext); 189 | 190 | return YES; 191 | } 192 | 193 | 194 | 195 | // 196 | // { 197 | // NSDate *date = [NSDate date]; 198 | // NSData *data = [(NSBitmapImageRep *)bestRep TIFFRepresentation]; 199 | // 200 | // CGDataProviderRef provider = CGDataProviderCreateWithCFData((CFDataRef)data); 201 | // CGImageSourceRef isrc = CGImageSourceCreateWithDataProvider (provider, NULL); 202 | // CGDataProviderRelease( provider ); 203 | // 204 | // NSDictionary* thumbOpts = [NSDictionary dictionaryWithObjectsAndKeys: 205 | // (id)kCFBooleanTrue, (id)kCGImageSourceCreateThumbnailWithTransform, 206 | // (id)kCFBooleanTrue, (id)kCGImageSourceCreateThumbnailFromImageIfAbsent, 207 | // [NSNumber numberWithInt:newSize.width], (id)kCGImageSourceThumbnailMaxPixelSize, 208 | // nil]; 209 | // CGImageRef thumbnail = CGImageSourceCreateThumbnailAtIndex (isrc, 0, (CFDictionaryRef)thumbOpts); 210 | // if (isrc) CFRelease(isrc); 211 | // 212 | // NSBitmapImageRep *cgRep = [[[NSBitmapImageRep alloc] initWithCGImage:thumbnail] autorelease]; 213 | // CGImageRelease(thumbnail); 214 | // NSLog(@"time1 %f", -[date timeIntervalSinceNow]); 215 | // } 216 | // 217 | // 218 | // 219 | // 220 | // { 221 | // NSDate *date = [NSDate date]; 222 | // NSImage* scaledImage = [[[NSImage alloc] initWithSize:newSize] autorelease]; 223 | // [scaledImage lockFocus]; 224 | // NSGraphicsContext *graphicsContext = [NSGraphicsContext currentContext]; 225 | // [graphicsContext setImageInterpolation:NSImageInterpolationHigh]; 226 | // [graphicsContext setShouldAntialias:YES]; 227 | // NSRect drawRect = fitRectInRect(rectFromSize([bestRep size]), rectFromSize(newSize), NO); 228 | // [bestRep drawInRect:drawRect]; 229 | // NSBitmapImageRep* nsRep = [[[NSBitmapImageRep alloc] initWithFocusedViewRect:NSMakeRect(0, 0, newSize.width, newSize.height)] autorelease]; 230 | // [scaledImage unlockFocus]; 231 | // 232 | // NSLog(@"time3 %f", -[date timeIntervalSinceNow]); 233 | // } 234 | // [self addRepresentation:rep]; 235 | 236 | return YES; 237 | 238 | 239 | 240 | // 241 | // 242 | // [self addRepresentation:iconRep]; 243 | // return YES; 244 | } 245 | 246 | - (void)removeRepresentationsLargerThanSize:(NSSize)size { 247 | NSEnumerator *e = [[self representations] reverseObjectEnumerator]; 248 | NSImageRep *thisRep; 249 | while((thisRep = [e nextObject]) ) { 250 | if ([thisRep size] .width>size.width && [thisRep size] .height>size.height) 251 | [self removeRepresentation:thisRep]; 252 | } 253 | } 254 | 255 | - (NSImage *)duplicateOfSize:(NSSize)newSize { 256 | NSImage *dup = [self copy]; 257 | [dup shrinkToSize:newSize]; 258 | [dup setFlipped:NO]; 259 | return dup; 260 | } 261 | 262 | - (BOOL)shrinkToSize:(NSSize)newSize { 263 | [self createRepresentationOfSize:newSize]; 264 | [self setSize:newSize]; 265 | [self removeRepresentationsLargerThanSize:newSize]; 266 | return YES; 267 | } 268 | 269 | 270 | 271 | @end 272 | 273 | @implementation NSImage (Trim) 274 | - (NSRect) usedRect { 275 | 276 | 277 | NSData* tiffData = [self TIFFRepresentation]; 278 | NSBitmapImageRep *bitmap = [[NSBitmapImageRep alloc] initWithData:tiffData]; 279 | 280 | 281 | if (![bitmap hasAlpha]) return NSMakeRect(0, 0, [bitmap size] .height, [bitmap size] .width); 282 | 283 | int minX = [bitmap pixelsWide]; 284 | int minY = [bitmap pixelsHigh]; 285 | int maxX = 0; 286 | int maxY = 0; 287 | 288 | 289 | int i, j; 290 | unsigned char* pixels = [bitmap bitmapData]; 291 | 292 | //int alpha; 293 | for(i = 0; i<[bitmap pixelsWide]; i++) { 294 | for (j = 0; j<[bitmap pixelsHigh]; j++) { 295 | //alpha = *(pixels + i*[bitmap pixelsWide] *[bitmap samplesPerPixel] + j*[bitmapsamplesPerPixel] + 3); 296 | if (*(pixels + j*[bitmap pixelsWide] *[bitmap samplesPerPixel] + i*[bitmap samplesPerPixel] + 3) ) { //This pixel is not transparent! Readjust bounds. 297 | //QSLog(@"Pixel Occupied: (%d, %d) ", i, j); 298 | minX = MIN(minX, i); 299 | maxX = MAX(maxX, i); 300 | minY = MIN(minY, j); 301 | maxY = MAX(maxY, j); 302 | } 303 | 304 | } 305 | } 306 | //flip y!! 307 | //QSLog(@"%d, %d, %d, %d", minX, minY, maxX, maxY); 308 | return NSMakeRect(minX, [bitmap pixelsHigh] -maxY-1, maxX-minX+1, maxY-minY+1); 309 | } 310 | 311 | - (NSImage *)scaleImageToSize:(NSSize)newSize trim:(BOOL)trim expand:(BOOL)expand scaleUp:(BOOL)scaleUp { 312 | NSRect sourceRect = (trim?[self usedRect] :rectFromSize([self size]) ); 313 | NSRect drawRect = (scaleUp || NSHeight(sourceRect) >newSize.height || NSWidth(sourceRect)>newSize.width ? sizeRectInRect(sourceRect, rectFromSize(newSize), expand) : NSMakeRect(0, 0, NSWidth(sourceRect), NSHeight(sourceRect))); 314 | NSImage *tempImage = [[NSImage alloc] initWithSize:NSMakeSize(NSWidth(drawRect), NSHeight(drawRect) )]; 315 | [tempImage lockFocus]; 316 | { 317 | [[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh]; 318 | [self drawInRect:drawRect fromRect:sourceRect operation:NSCompositeSourceOver fraction:1]; 319 | } 320 | [tempImage unlockFocus]; 321 | //QSLog(@"%@", tempImage); 322 | return [[NSImage alloc] initWithData:[tempImage TIFFRepresentation]]; //*** UGH! why do I have to do this to commit the changes?; 323 | } 324 | @end 325 | 326 | @implementation NSImage (Average) 327 | - (NSColor *)averageColor { 328 | NSBitmapImageRep *rep = (NSBitmapImageRep *)[self bestRepresentationForDevice:nil]; 329 | if (![rep isKindOfClass:[NSBitmapImageRep class]]) return nil; 330 | unsigned char *pixels = [rep bitmapData]; 331 | 332 | int red = 0, blue = 0, green = 0; //, alpha = 0; 333 | int n = [rep size] .width*[rep size] .height; 334 | int i = 0; 335 | for (i = 0; i < n; i++) { 336 | // pixels[(j*imageWidthInPixels+i) *bitsPerPixel+channel] 337 | //QSLog(@"%d %d %d %d", pixels[0] , pixels[1] , pixels[2] , pixels[3]); 338 | red += *pixels++; 339 | green += *pixels++; 340 | blue += *pixels++; 341 | //alpha += *pixels++; 342 | } 343 | 344 | //QSLog(@"%d %f %d", blue, (float) blue/n/256, n); 345 | NSColor *color = [NSColor colorWithDeviceRed:(float) red/n/256 green:(float)green/n/256 blue:(float)blue/n/256 alpha:1.0]; 346 | // QSLog(@"color %@", color); 347 | return color; 348 | } 349 | 350 | @end 351 | -------------------------------------------------------------------------------- /PrefPane/NSSortDescriptor+BLTRExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSSortDescriptor+BLTRExtensions.h 3 | // Quicksilver 4 | // 5 | // Created by Alcor on 3/27/05. 6 | 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSSortDescriptor (QSConvenience) 13 | + (id)descriptorWithKey:(NSString *)key ascending:(BOOL)ascending; 14 | + (id)descriptorWithKey:(NSString *)key ascending:(BOOL)ascending selector:(SEL)selector; 15 | + (NSArray *)descriptorArrayWithKey:(NSString *)key ascending:(BOOL)ascending; 16 | + (NSArray *)descriptorArrayWithKey:(NSString *)key ascending:(BOOL)ascending selector:(SEL)selector; 17 | @end 18 | -------------------------------------------------------------------------------- /PrefPane/NSSortDescriptor+BLTRExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSSortDescriptor+BLTRExtensions.m 3 | // Quicksilver 4 | // 5 | // Created by Alcor on 3/27/05. 6 | 7 | // 8 | 9 | #import "NSSortDescriptor+BLTRExtensions.h" 10 | 11 | 12 | @implementation NSSortDescriptor (QSConvenience) 13 | + (id)descriptorWithKey:(NSString *)key ascending:(BOOL)ascending{ 14 | return[[NSSortDescriptor alloc] initWithKey:key ascending:ascending]; 15 | } 16 | + (id)descriptorWithKey:(NSString *)key ascending:(BOOL)ascending selector:(SEL)selector{ 17 | return[[NSSortDescriptor alloc] initWithKey:key ascending:ascending selector:(SEL)selector]; 18 | } 19 | + (NSArray *)descriptorArrayWithKey:(NSString *)key ascending:(BOOL)ascending{ 20 | id descriptor=[[NSSortDescriptor alloc] initWithKey:key ascending:ascending]; 21 | return [NSArray arrayWithObject:descriptor]; 22 | } 23 | 24 | + (NSArray *)descriptorArrayWithKey:(NSString *)key ascending:(BOOL)ascending selector:(SEL)selector{ 25 | id descriptor=[[NSSortDescriptor alloc] initWithKey:key ascending:ascending selector:(SEL)selector]; 26 | return [NSArray arrayWithObject:descriptor]; 27 | } 28 | @end 29 | -------------------------------------------------------------------------------- /PrefPane/Secrets.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/PrefPane/Secrets.icns -------------------------------------------------------------------------------- /PrefPane/Secrets.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 44; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3CC3D38C1C5EA0760098BB5D /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3CC3D38B1C5EA0760098BB5D /* Media.xcassets */; }; 11 | 7F1972B40D74201D00F580DC /* NSGeometry_BLTRExtensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 7F1972AC0D74201D00F580DC /* NSGeometry_BLTRExtensions.h */; }; 12 | 7F1972B50D74201D00F580DC /* NSGeometry_BLTRExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F1972AD0D74201D00F580DC /* NSGeometry_BLTRExtensions.m */; }; 13 | 7F1972B60D74201D00F580DC /* NSImage_BLTRExtensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 7F1972AE0D74201D00F580DC /* NSImage_BLTRExtensions.h */; }; 14 | 7F1972B70D74201D00F580DC /* NSImage_BLTRExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F1972AF0D74201D00F580DC /* NSImage_BLTRExtensions.m */; }; 15 | 7F1972B80D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 7F1972B00D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.h */; }; 16 | 7F1972B90D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F1972B10D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.m */; }; 17 | 7F1C40B50E1C6F4800AA2052 /* Secrets.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7F1C40B40E1C6F4800AA2052 /* Secrets.plist */; }; 18 | 7F704BA30D6EAD5C00879138 /* SecretsPref.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7F704BA10D6EAD5C00879138 /* SecretsPref.xib */; }; 19 | 7FA39DFD106745A8001ED884 /* libobjc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 7FA39DFC106745A8001ED884 /* libobjc.dylib */; }; 20 | 7FD490F20D7A865000DD7588 /* Application.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FD490F10D7A865000DD7588 /* Application.png */; }; 21 | 7FEB02540D7D22D700F4D367 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7FEB02530D7D22D700F4D367 /* Carbon.framework */; }; 22 | 7FFC7F650D7E512B00499B8E /* Informer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FFC7F450D7E50BA00499B8E /* Informer.m */; }; 23 | 7FFC7F670D7E514000499B8E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 089C1672FE841209C02AAC07 /* Foundation.framework */; }; 24 | 8D202CEA0486D31800D8A456 /* Secrets_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 32DBCFA20370C41700C91783 /* Secrets_Prefix.pch */; }; 25 | 8D202CEB0486D31800D8A456 /* SecretsPref.h in Headers */ = {isa = PBXBuildFile; fileRef = F506C03C013D9D7901CA16C8 /* SecretsPref.h */; }; 26 | 8D202CF10486D31800D8A456 /* SecretsPref.m in Sources */ = {isa = PBXBuildFile; fileRef = F506C03D013D9D7901CA16C8 /* SecretsPref.m */; }; 27 | 8D202CF30486D31800D8A456 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; }; 28 | 8D202CF40486D31800D8A456 /* PreferencePanes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F506C035013D953901CA16C8 /* PreferencePanes.framework */; }; 29 | 9946DA98108BA9A2007D41CD /* Secrets.icns in Resources */ = {isa = PBXBuildFile; fileRef = 7FD4919A0D7A948B00DD7588 /* Secrets.icns */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 089C1672FE841209C02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; 34 | 089C167FFE841241C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 35 | 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; 36 | 32DBCFA20370C41700C91783 /* Secrets_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Secrets_Prefix.pch; sourceTree = ""; }; 37 | 3CC3D38B1C5EA0760098BB5D /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = ""; }; 38 | 7F1972AC0D74201D00F580DC /* NSGeometry_BLTRExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSGeometry_BLTRExtensions.h; sourceTree = ""; }; 39 | 7F1972AD0D74201D00F580DC /* NSGeometry_BLTRExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSGeometry_BLTRExtensions.m; sourceTree = ""; }; 40 | 7F1972AE0D74201D00F580DC /* NSImage_BLTRExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSImage_BLTRExtensions.h; sourceTree = ""; }; 41 | 7F1972AF0D74201D00F580DC /* NSImage_BLTRExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSImage_BLTRExtensions.m; sourceTree = ""; }; 42 | 7F1972B00D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSSortDescriptor+BLTRExtensions.h"; sourceTree = ""; }; 43 | 7F1972B10D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSSortDescriptor+BLTRExtensions.m"; sourceTree = ""; }; 44 | 7F1C40B40E1C6F4800AA2052 /* Secrets.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Secrets.plist; sourceTree = ""; }; 45 | 7F704BA20D6EAD5C00879138 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/SecretsPref.xib; sourceTree = ""; }; 46 | 7FA39DFC106745A8001ED884 /* libobjc.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libobjc.dylib; path = usr/lib/libobjc.dylib; sourceTree = SDKROOT; }; 47 | 7FD490F10D7A865000DD7588 /* Application.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Application.png; sourceTree = ""; }; 48 | 7FD4919A0D7A948B00DD7588 /* Secrets.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Secrets.icns; sourceTree = ""; }; 49 | 7FEB02530D7D22D700F4D367 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = ""; }; 50 | 7FFC7F3C0D7E4FEF00499B8E /* Informer.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = Informer.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 7FFC7F440D7E50BA00499B8E /* dyld-interposing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "dyld-interposing.h"; sourceTree = ""; }; 52 | 7FFC7F450D7E50BA00499B8E /* Informer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Informer.m; sourceTree = ""; }; 53 | 8D202CF70486D31800D8A456 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; 54 | 8D202CF80486D31800D8A456 /* Secrets.prefPane */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Secrets.prefPane; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 99D3C498106719F7001D475D /* TODO.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TODO.txt; sourceTree = ""; }; 56 | F506C035013D953901CA16C8 /* PreferencePanes.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PreferencePanes.framework; path = /System/Library/Frameworks/PreferencePanes.framework; sourceTree = ""; }; 57 | F506C03C013D9D7901CA16C8 /* SecretsPref.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecretsPref.h; sourceTree = ""; }; 58 | F506C03D013D9D7901CA16C8 /* SecretsPref.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecretsPref.m; sourceTree = ""; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | 7FFC7F3A0D7E4FEF00499B8E /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 7FFC7F670D7E514000499B8E /* Foundation.framework in Frameworks */, 67 | 7FA39DFD106745A8001ED884 /* libobjc.dylib in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 8D202CF20486D31800D8A456 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 8D202CF30486D31800D8A456 /* Cocoa.framework in Frameworks */, 76 | 8D202CF40486D31800D8A456 /* PreferencePanes.framework in Frameworks */, 77 | 7FEB02540D7D22D700F4D367 /* Carbon.framework in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | /* End PBXFrameworksBuildPhase section */ 82 | 83 | /* Begin PBXGroup section */ 84 | 089C166AFE841209C02AAC07 /* Secrets */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | F506C03C013D9D7901CA16C8 /* SecretsPref.h */, 88 | F506C03D013D9D7901CA16C8 /* SecretsPref.m */, 89 | 08FB77AFFE84173DC02AAC07 /* Classes */, 90 | 7FFC7F430D7E50BA00499B8E /* Informer */, 91 | 32DBCFA10370C40200C91783 /* Other Sources */, 92 | 089C167CFE841241C02AAC07 /* Resources */, 93 | 089C1671FE841209C02AAC07 /* Frameworks and Libraries */, 94 | 19C28FB8FE9D52D311CA2CBB /* Products */, 95 | 7FA39DFC106745A8001ED884 /* libobjc.dylib */, 96 | ); 97 | name = Secrets; 98 | sourceTree = ""; 99 | }; 100 | 089C1671FE841209C02AAC07 /* Frameworks and Libraries */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */, 104 | 1058C7AEFEA557BF11CA2CBB /* Other Frameworks */, 105 | ); 106 | name = "Frameworks and Libraries"; 107 | sourceTree = ""; 108 | }; 109 | 089C167CFE841241C02AAC07 /* Resources */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 7F1C40B40E1C6F4800AA2052 /* Secrets.plist */, 113 | 7FD490F10D7A865000DD7588 /* Application.png */, 114 | 8D202CF70486D31800D8A456 /* Info.plist */, 115 | 99D3C498106719F7001D475D /* TODO.txt */, 116 | 7FD4919A0D7A948B00DD7588 /* Secrets.icns */, 117 | 7F704BA10D6EAD5C00879138 /* SecretsPref.xib */, 118 | 3CC3D38B1C5EA0760098BB5D /* Media.xcassets */, 119 | ); 120 | name = Resources; 121 | sourceTree = ""; 122 | }; 123 | 08FB77AFFE84173DC02AAC07 /* Classes */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 7F1972AC0D74201D00F580DC /* NSGeometry_BLTRExtensions.h */, 127 | 7F1972AD0D74201D00F580DC /* NSGeometry_BLTRExtensions.m */, 128 | 7F1972AE0D74201D00F580DC /* NSImage_BLTRExtensions.h */, 129 | 7F1972AF0D74201D00F580DC /* NSImage_BLTRExtensions.m */, 130 | 7F1972B00D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.h */, 131 | 7F1972B10D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.m */, 132 | ); 133 | name = Classes; 134 | sourceTree = ""; 135 | }; 136 | 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 7FEB02530D7D22D700F4D367 /* Carbon.framework */, 140 | 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */, 141 | F506C035013D953901CA16C8 /* PreferencePanes.framework */, 142 | ); 143 | name = "Linked Frameworks"; 144 | sourceTree = ""; 145 | }; 146 | 1058C7AEFEA557BF11CA2CBB /* Other Frameworks */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 089C1672FE841209C02AAC07 /* Foundation.framework */, 150 | 089C167FFE841241C02AAC07 /* AppKit.framework */, 151 | ); 152 | name = "Other Frameworks"; 153 | sourceTree = ""; 154 | }; 155 | 19C28FB8FE9D52D311CA2CBB /* Products */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 8D202CF80486D31800D8A456 /* Secrets.prefPane */, 159 | 7FFC7F3C0D7E4FEF00499B8E /* Informer.dylib */, 160 | ); 161 | name = Products; 162 | sourceTree = ""; 163 | }; 164 | 32DBCFA10370C40200C91783 /* Other Sources */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | 32DBCFA20370C41700C91783 /* Secrets_Prefix.pch */, 168 | ); 169 | name = "Other Sources"; 170 | sourceTree = ""; 171 | }; 172 | 7FFC7F430D7E50BA00499B8E /* Informer */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 7FFC7F440D7E50BA00499B8E /* dyld-interposing.h */, 176 | 7FFC7F450D7E50BA00499B8E /* Informer.m */, 177 | ); 178 | path = Informer; 179 | sourceTree = ""; 180 | }; 181 | /* End PBXGroup section */ 182 | 183 | /* Begin PBXHeadersBuildPhase section */ 184 | 7FFC7F380D7E4FEF00499B8E /* Headers */ = { 185 | isa = PBXHeadersBuildPhase; 186 | buildActionMask = 2147483647; 187 | files = ( 188 | ); 189 | runOnlyForDeploymentPostprocessing = 0; 190 | }; 191 | 8D202CE90486D31800D8A456 /* Headers */ = { 192 | isa = PBXHeadersBuildPhase; 193 | buildActionMask = 2147483647; 194 | files = ( 195 | 8D202CEA0486D31800D8A456 /* Secrets_Prefix.pch in Headers */, 196 | 8D202CEB0486D31800D8A456 /* SecretsPref.h in Headers */, 197 | 7F1972B40D74201D00F580DC /* NSGeometry_BLTRExtensions.h in Headers */, 198 | 7F1972B60D74201D00F580DC /* NSImage_BLTRExtensions.h in Headers */, 199 | 7F1972B80D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.h in Headers */, 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | }; 203 | /* End PBXHeadersBuildPhase section */ 204 | 205 | /* Begin PBXNativeTarget section */ 206 | 7FFC7F3B0D7E4FEF00499B8E /* Informer */ = { 207 | isa = PBXNativeTarget; 208 | buildConfigurationList = 7FFC7F400D7E503600499B8E /* Build configuration list for PBXNativeTarget "Informer" */; 209 | buildPhases = ( 210 | 7FFC7F380D7E4FEF00499B8E /* Headers */, 211 | 7FFC7F390D7E4FEF00499B8E /* Sources */, 212 | 7FFC7F3A0D7E4FEF00499B8E /* Frameworks */, 213 | ); 214 | buildRules = ( 215 | ); 216 | dependencies = ( 217 | ); 218 | name = Informer; 219 | productName = Informer; 220 | productReference = 7FFC7F3C0D7E4FEF00499B8E /* Informer.dylib */; 221 | productType = "com.apple.product-type.library.dynamic"; 222 | }; 223 | 8D202CE80486D31800D8A456 /* Secrets */ = { 224 | isa = PBXNativeTarget; 225 | buildConfigurationList = 1DBD214808BA80EA00186707 /* Build configuration list for PBXNativeTarget "Secrets" */; 226 | buildPhases = ( 227 | 8D202CE90486D31800D8A456 /* Headers */, 228 | 8D202CEC0486D31800D8A456 /* Resources */, 229 | 8D202CF00486D31800D8A456 /* Sources */, 230 | 8D202CF20486D31800D8A456 /* Frameworks */, 231 | 8D202CF50486D31800D8A456 /* Rez */, 232 | 7FD491FD0D7A951600DD7588 /* ShellScript */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | ); 238 | name = Secrets; 239 | productInstallPath = "$(HOME)/Library/PreferencePanes"; 240 | productName = Secrets; 241 | productReference = 8D202CF80486D31800D8A456 /* Secrets.prefPane */; 242 | productType = "com.apple.product-type.bundle"; 243 | }; 244 | /* End PBXNativeTarget section */ 245 | 246 | /* Begin PBXProject section */ 247 | 089C1669FE841209C02AAC07 /* Project object */ = { 248 | isa = PBXProject; 249 | attributes = { 250 | LastUpgradeCheck = 0730; 251 | }; 252 | buildConfigurationList = 1DBD214C08BA80EA00186707 /* Build configuration list for PBXProject "Secrets" */; 253 | compatibilityVersion = "Xcode 3.0"; 254 | developmentRegion = English; 255 | hasScannedForEncodings = 1; 256 | knownRegions = ( 257 | en, 258 | ); 259 | mainGroup = 089C166AFE841209C02AAC07 /* Secrets */; 260 | projectDirPath = ""; 261 | projectRoot = ""; 262 | targets = ( 263 | 8D202CE80486D31800D8A456 /* Secrets */, 264 | 7FFC7F3B0D7E4FEF00499B8E /* Informer */, 265 | ); 266 | }; 267 | /* End PBXProject section */ 268 | 269 | /* Begin PBXResourcesBuildPhase section */ 270 | 8D202CEC0486D31800D8A456 /* Resources */ = { 271 | isa = PBXResourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | 7F704BA30D6EAD5C00879138 /* SecretsPref.xib in Resources */, 275 | 7FD490F20D7A865000DD7588 /* Application.png in Resources */, 276 | 7F1C40B50E1C6F4800AA2052 /* Secrets.plist in Resources */, 277 | 9946DA98108BA9A2007D41CD /* Secrets.icns in Resources */, 278 | 3CC3D38C1C5EA0760098BB5D /* Media.xcassets in Resources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | /* End PBXResourcesBuildPhase section */ 283 | 284 | /* Begin PBXRezBuildPhase section */ 285 | 8D202CF50486D31800D8A456 /* Rez */ = { 286 | isa = PBXRezBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | }; 292 | /* End PBXRezBuildPhase section */ 293 | 294 | /* Begin PBXShellScriptBuildPhase section */ 295 | 7FD491FD0D7A951600DD7588 /* ShellScript */ = { 296 | isa = PBXShellScriptBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | inputPaths = ( 301 | ); 302 | outputPaths = ( 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | shellPath = /bin/sh; 306 | shellScript = "ln -sf $CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME ~/Library/PreferencePanes/$FULL_PRODUCT_NAME\nexit 0;\ncodesign -f -s Blacktree,\\ Inc. $CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME\ncodesign -v $CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME;\nexit 0"; 307 | }; 308 | /* End PBXShellScriptBuildPhase section */ 309 | 310 | /* Begin PBXSourcesBuildPhase section */ 311 | 7FFC7F390D7E4FEF00499B8E /* Sources */ = { 312 | isa = PBXSourcesBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | 7FFC7F650D7E512B00499B8E /* Informer.m in Sources */, 316 | ); 317 | runOnlyForDeploymentPostprocessing = 0; 318 | }; 319 | 8D202CF00486D31800D8A456 /* Sources */ = { 320 | isa = PBXSourcesBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | 8D202CF10486D31800D8A456 /* SecretsPref.m in Sources */, 324 | 7F1972B50D74201D00F580DC /* NSGeometry_BLTRExtensions.m in Sources */, 325 | 7F1972B70D74201D00F580DC /* NSImage_BLTRExtensions.m in Sources */, 326 | 7F1972B90D74201D00F580DC /* NSSortDescriptor+BLTRExtensions.m in Sources */, 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | }; 330 | /* End PBXSourcesBuildPhase section */ 331 | 332 | /* Begin PBXVariantGroup section */ 333 | 7F704BA10D6EAD5C00879138 /* SecretsPref.xib */ = { 334 | isa = PBXVariantGroup; 335 | children = ( 336 | 7F704BA20D6EAD5C00879138 /* English */, 337 | ); 338 | name = SecretsPref.xib; 339 | sourceTree = ""; 340 | }; 341 | /* End PBXVariantGroup section */ 342 | 343 | /* Begin XCBuildConfiguration section */ 344 | 1DBD214908BA80EA00186707 /* Debug */ = { 345 | isa = XCBuildConfiguration; 346 | buildSettings = { 347 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 348 | CLANG_ENABLE_OBJC_ARC = YES; 349 | COPY_PHASE_STRIP = NO; 350 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 351 | GCC_DYNAMIC_NO_PIC = NO; 352 | GCC_ENABLE_FIX_AND_CONTINUE = YES; 353 | GCC_MODEL_TUNING = G5; 354 | GCC_OPTIMIZATION_LEVEL = 0; 355 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 356 | GCC_PREFIX_HEADER = Secrets_Prefix.pch; 357 | INFOPLIST_FILE = Info.plist; 358 | INSTALL_PATH = "$(HOME)/Library/PreferencePanes"; 359 | PRODUCT_NAME = Secrets; 360 | SDKROOT = macosx; 361 | WRAPPER_EXTENSION = prefPane; 362 | ZERO_LINK = YES; 363 | }; 364 | name = Debug; 365 | }; 366 | 1DBD214A08BA80EA00186707 /* Release */ = { 367 | isa = XCBuildConfiguration; 368 | buildSettings = { 369 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 370 | CLANG_ENABLE_OBJC_ARC = YES; 371 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 372 | GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 373 | GCC_MODEL_TUNING = G5; 374 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 375 | GCC_PREFIX_HEADER = Secrets_Prefix.pch; 376 | INFOPLIST_FILE = Info.plist; 377 | INSTALL_PATH = "$(HOME)/Library/PreferencePanes"; 378 | PRODUCT_NAME = Secrets; 379 | SDKROOT = macosx; 380 | WRAPPER_EXTENSION = prefPane; 381 | }; 382 | name = Release; 383 | }; 384 | 1DBD214D08BA80EA00186707 /* Debug */ = { 385 | isa = XCBuildConfiguration; 386 | buildSettings = { 387 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 388 | GCC_C_LANGUAGE_STANDARD = gnu99; 389 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 390 | GCC_WARN_UNUSED_VARIABLE = YES; 391 | ONLY_ACTIVE_ARCH = YES; 392 | PREBINDING = NO; 393 | SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk"; 394 | VALID_ARCHS = "i386 ppc x86_64"; 395 | }; 396 | name = Debug; 397 | }; 398 | 1DBD214E08BA80EA00186707 /* Release */ = { 399 | isa = XCBuildConfiguration; 400 | buildSettings = { 401 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 402 | GCC_C_LANGUAGE_STANDARD = gnu99; 403 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 404 | GCC_WARN_UNUSED_VARIABLE = YES; 405 | PREBINDING = NO; 406 | SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk"; 407 | }; 408 | name = Release; 409 | }; 410 | 7FFC7F3D0D7E4FF100499B8E /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | buildSettings = { 413 | COPY_PHASE_STRIP = NO; 414 | DYLIB_COMPATIBILITY_VERSION = 1; 415 | DYLIB_CURRENT_VERSION = 1; 416 | GCC_DYNAMIC_NO_PIC = NO; 417 | GCC_ENABLE_FIX_AND_CONTINUE = YES; 418 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 419 | GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; 420 | INSTALL_PATH = /usr/local/lib; 421 | OTHER_LDFLAGS = ( 422 | "-framework", 423 | Foundation, 424 | "-framework", 425 | AppKit, 426 | ); 427 | PREBINDING = NO; 428 | PRODUCT_NAME = Informer; 429 | SDKROOT = macosx; 430 | }; 431 | name = Debug; 432 | }; 433 | 7FFC7F3E0D7E4FF100499B8E /* Release */ = { 434 | isa = XCBuildConfiguration; 435 | buildSettings = { 436 | COPY_PHASE_STRIP = YES; 437 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 438 | DYLIB_COMPATIBILITY_VERSION = 1; 439 | DYLIB_CURRENT_VERSION = 1; 440 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 441 | GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; 442 | INSTALL_PATH = /usr/local/lib; 443 | OTHER_LDFLAGS = ( 444 | "-framework", 445 | Foundation, 446 | "-framework", 447 | AppKit, 448 | ); 449 | PREBINDING = NO; 450 | PRODUCT_NAME = Informer; 451 | SDKROOT = macosx; 452 | }; 453 | name = Release; 454 | }; 455 | /* End XCBuildConfiguration section */ 456 | 457 | /* Begin XCConfigurationList section */ 458 | 1DBD214808BA80EA00186707 /* Build configuration list for PBXNativeTarget "Secrets" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 1DBD214908BA80EA00186707 /* Debug */, 462 | 1DBD214A08BA80EA00186707 /* Release */, 463 | ); 464 | defaultConfigurationIsVisible = 0; 465 | defaultConfigurationName = Release; 466 | }; 467 | 1DBD214C08BA80EA00186707 /* Build configuration list for PBXProject "Secrets" */ = { 468 | isa = XCConfigurationList; 469 | buildConfigurations = ( 470 | 1DBD214D08BA80EA00186707 /* Debug */, 471 | 1DBD214E08BA80EA00186707 /* Release */, 472 | ); 473 | defaultConfigurationIsVisible = 0; 474 | defaultConfigurationName = Release; 475 | }; 476 | 7FFC7F400D7E503600499B8E /* Build configuration list for PBXNativeTarget "Informer" */ = { 477 | isa = XCConfigurationList; 478 | buildConfigurations = ( 479 | 7FFC7F3D0D7E4FF100499B8E /* Debug */, 480 | 7FFC7F3E0D7E4FF100499B8E /* Release */, 481 | ); 482 | defaultConfigurationIsVisible = 0; 483 | defaultConfigurationName = Release; 484 | }; 485 | /* End XCConfigurationList section */ 486 | }; 487 | rootObject = 089C1669FE841209C02AAC07 /* Project object */; 488 | } 489 | -------------------------------------------------------------------------------- /PrefPane/Secrets.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PrefPane/SecretsPref.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecretsPref.h 3 | // Secrets 4 | // 5 | // Created by Nicholas Jitkoff on 9/9/06. 6 | 7 | 8 | #import 9 | 10 | 11 | @interface SecretsPref : NSPreferencePane 12 | { 13 | IBOutlet NSView *sidebarView; 14 | 15 | NSArray *categories; 16 | NSMutableDictionary *bundles; 17 | NSArray *entries; 18 | 19 | IBOutlet NSDictionary *sourcesDictionary; 20 | 21 | IBOutlet NSArrayController *categoriesController; 22 | IBOutlet NSTableView *categoriesTable; 23 | IBOutlet NSArrayController *entriesController; 24 | IBOutlet NSTableView *entriesTable; 25 | 26 | IBOutlet NSPanel *sourcesPanel; 27 | 28 | NSDictionary *currentEntry; 29 | IBOutlet NSProgressIndicator *progressIndicator; 30 | IBOutlet NSTextField *progressField; 31 | IBOutlet NSTextField *searchField; 32 | BOOL downloading; 33 | BOOL showInfo; 34 | NSDate *previousLaunchDate; 35 | NSURLConnection *fetchConnection; 36 | NSMutableData *fetchData; 37 | NSPredicate *searchPredicate; 38 | } 39 | 40 | @property(strong) NSURLConnection *fetchConnection; 41 | @property(strong) NSMutableData *fetchData; 42 | @property(strong) NSArray *entries; 43 | @property(strong) NSArray *categories; 44 | @property(strong) NSMutableDictionary *bundles; 45 | @property(strong) NSDictionary *currentEntry; 46 | @property(strong) NSPredicate *searchPredicate; 47 | @property(assign) BOOL showInfo; 48 | 49 | - (IBAction)reloadInfo:(id)sender; 50 | - (IBAction)showSite:(id)sender; 51 | - (IBAction)showHelp:(id)sender; 52 | - (IBAction)loadInfo:(id)sender; 53 | - (IBAction)resetValue:(id)sender; 54 | - (IBAction)openEntry:(id)sender; 55 | 56 | - (IBAction)quitEntry:(id)sender; 57 | 58 | - (BOOL) showInfo; 59 | - (void) setShowInfo: (BOOL) flag; 60 | 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /PrefPane/SecretsPref.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/PrefPane/SecretsPref.tiff -------------------------------------------------------------------------------- /PrefPane/Secrets_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Secrets' target in the 'Secrets' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | 10 | #define QSLog NSLog 11 | -------------------------------------------------------------------------------- /PrefPane/TODO.txt: -------------------------------------------------------------------------------- 1 | Secrets TODO List 2 | 3 | Pref Pane: 4 | * Enable max/min OS version and max/min App version 5 | 6 | Website: 7 | * Better Entry Form 8 | 9 | * Ability to download termCommands 10 | 11 | * Add App table, Normalize DB somewhat -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Secrets logo 2 | 3 | # Secrets 4 | Preference pane to access hidden user defaults 5 | 6 | ## About 7 | 8 | Secrets, formerly [blacktree-secrets](https://code.google.com/archive/p/blacktree-secrets/) is a preference pane for OS X that allows you to discover, edit, and share hidden settings for various OS X applications! -------------------------------------------------------------------------------- /Server/Secrets_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/Secrets_Logo.png -------------------------------------------------------------------------------- /Server/app.yaml: -------------------------------------------------------------------------------- 1 | application: blacktree-secrets 2 | version: 1 3 | runtime: python 4 | api_version: 1 5 | 6 | handlers: 7 | 8 | - url: /stylesheets 9 | static_dir: static/stylesheets 10 | 11 | - url: /javascript 12 | static_dir: static/javascript 13 | 14 | - url: /favicon.ico 15 | static_files: static/favicon.ico 16 | upload: static/favicon.ico 17 | 18 | - url: /robots.txt 19 | static_files: static/robots.txt 20 | upload: static/robots.txt 21 | 22 | - url: /images 23 | static_dir: static/images 24 | 25 | - url: /remote_api 26 | script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py 27 | login: admin 28 | 29 | - url: /load 30 | script: myloader.py 31 | 32 | - url: /.* 33 | script: secrets.py -------------------------------------------------------------------------------- /Server/form.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Secrets - Blacktree 4 | 5 | 6 | 7 | 8 | 12 | 17 | 18 | 19 |


20 | 21 | 22 | 23 | 24 | {% if id %} 25 | Secret #{{id}} 26 | {% else %} 27 | 28 | {% if loggedin %}Tell us a Secret...{% else %}Sign in to add a secret{% endif %} 29 | 30 |
31 | This secret will be editable by anyone for 3 days.
32 | {% endif %} 33 | 34 |
Learn how to fill out these fields 35 | 36 | - {% if loggedin %}Sign out{% else %}Sign in{% endif %} 37 |

38 |

39 | 48 | {% if dups %} 49 |
50 |
51 | This secret is a duplicate of:
52 | {% for secret in dups %} 53 | {{ secret.display_app|escape }} 54 | {% if secret.minversion %}({{ secret.minversion }}){% endif %} 55 | 56 | {{secret.title}} - {{ secret.bundle }} - {{ secret.keypath }}
57 | 58 | {% endfor %} 59 |
60 |
61 | {% endif %} 62 | 63 | 64 |
65 |
66 | 67 | {{form}} 68 |
69 |

70 |
71 | {% if iseditable %} 72 | 73 | 74 | {% else %} 75 | 80 | {% endif %} 81 |

82 | 83 | 84 | {% if isadmin %} 85 |
86 | 87 | 88 |
89 | {% endif %} 90 |
91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /Server/index.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Secrets{% if title %}: {{title}}{% endif %} 11 | 12 | 16 | 21 | 22 | 23 | 24 |
25 |


26 | A database of hidden settings for Mac OS X

27 | Add a secret - 28 | Help - 29 | Source Code - 30 | Discussion Group - 31 | Issue Tracker - 32 | PrefPane 1.0.6 (10.5+) 33 |
34 | Recent - 35 | Deleted 36 |
37 | 38 | 39 | 40 | {% if warning %} 41 |

{{ warning }}
42 | {% endif %} 43 | 44 |

45 |
46 | 47 |
48 | 49 | {% if message %} 50 |
{{ message }}
51 | {% endif %} 52 | 53 | {% for secret in secrets %} 54 | 55 | 61 | 64 | 69 | 70 | {% endfor %} 71 |
56 | 57 | {{ secret.display_app|escape }} 58 | {% if secret.minversion %}({{ secret.minversion }}){% endif %} 59 | 60 | 62 | 63 | 65 | {{secret.title}} 66 |
67 | {{ secret.default_string }} 68 |
72 | 73 | {% if not showall %} 74 |
75 |
76 |
77 | Show full list 78 |
79 | {% else %} 80 | 81 |
82 |
83 | 84 | {% if prev_page %}Back - {% endif %} 85 | {% if next_page %}More{% endif %} 86 |
87 | {% endif %} 88 | 89 | 90 | -------------------------------------------------------------------------------- /Server/index.yaml: -------------------------------------------------------------------------------- 1 | indexes: 2 | 3 | # AUTOGENERATED 4 | 5 | # This index.yaml is automatically updated whenever the dev_appserver 6 | # detects that a new type of query is run. If you want to manage the 7 | # index.yaml file manually, remove the above marker line (the line 8 | # saying "# AUTOGENERATED"). If you want to manage some indexes 9 | # manually, move them above the marker line. The index.yaml file is 10 | # automatically uploaded to the admin console when you next deploy 11 | # your application using appcfg.py. 12 | 13 | - kind: Secret 14 | properties: 15 | - name: __searchable_text_index 16 | - name: __searchable_text_index 17 | - name: created_at 18 | direction: desc 19 | 20 | - kind: Secret 21 | properties: 22 | - name: __searchable_text_index 23 | - name: created_at 24 | direction: desc 25 | 26 | - kind: Secret 27 | properties: 28 | - name: created_at 29 | direction: desc 30 | 31 | - kind: Secret 32 | properties: 33 | - name: created_at 34 | direction: desc 35 | - name: updated_at 36 | direction: desc 37 | 38 | - kind: Secret 39 | properties: 40 | - name: deleted 41 | - name: created_at 42 | direction: desc 43 | 44 | - kind: Secret 45 | properties: 46 | - name: deleted 47 | - name: top_secret 48 | - name: bundle 49 | 50 | - kind: Secret 51 | properties: 52 | - name: deleted 53 | direction: desc 54 | 55 | - kind: Secret 56 | properties: 57 | - name: deleted 58 | direction: desc 59 | - name: created_at 60 | direction: desc 61 | 62 | - kind: Secret 63 | properties: 64 | - name: top_secret 65 | - name: created_at 66 | direction: desc 67 | 68 | - kind: Secret 69 | properties: 70 | - name: updated_at 71 | direction: desc 72 | -------------------------------------------------------------------------------- /Server/loader.py: -------------------------------------------------------------------------------- 1 | from google.appengine.tools import bulkloader 2 | from google.appengine.ext import db 3 | import datetime 4 | import logging 5 | import sys 6 | 7 | 8 | class Secret(db.Model): 9 | bundle = db.StringProperty() 10 | keypath = db.StringProperty() 11 | icon = db.LinkProperty() 12 | 13 | 14 | class SecretExporter(bulkloader.Exporter): 15 | def __init__(self): 16 | bulkloader.Exporter.__init__(self, 'Secret', 17 | [('bundle', str, None), 18 | ('keypath', str, None) 19 | ]) 20 | 21 | exporters = [SecretExporter] 22 | 23 | # 24 | # class SecretLoader(bulkload.Loader): 25 | # def __init__(self): 26 | # # Our 'Person' entity contains a name string and an email 27 | # bulkloader.Loader.__init__(self, 'Secret', 28 | # [ ('old_id', int), 29 | # ('bundle', str), 30 | # ('display_bundle', str), 31 | # ('keypath', str), 32 | # ('datatype', str), 33 | # ('title', str), 34 | # ('defaultvalue', str), 35 | # ('units', str), 36 | # ('values', str), 37 | # ('hidden', lambda x: (x == '1')), 38 | # ('description', datastore_types.Text), 39 | # ('notes', datastore_types.Text), 40 | # ('widget', str), 41 | # ('username', str), 42 | # ('hostname', str), 43 | # ('minversion', str), 44 | # ('maxversion', str), 45 | # ('minosversion', str), 46 | # ('maxosversion', str), 47 | # ('verified', lambda x: (x == '1')), 48 | # ('current_host_only', lambda x: (x == '1')), 49 | # ('set_for_all_users', lambda x: (x == '1')), 50 | # ('has_ui', lambda x: (x == '1')), 51 | # ('for_developers', lambda x: (x == '1')), 52 | # ('top_secret', lambda x: (x == '1')), 53 | # ('is_keypath', lambda x: (x == '1')), 54 | # ('created_at', str), 55 | # ('updated_at', str), 56 | # ('group', str), 57 | # ('placeholder', str), 58 | # ('deleted', lambda x: (x == '1')), 59 | # ('is_broken', lambda x: (x == '1')), 60 | # ('dangerous', lambda x: (x == '1')) 61 | # ]) 62 | # 63 | # 64 | # 65 | # def HandleEntity(self, entity): 66 | # ent = search.SearchableEntity(entity) 67 | # entity['updated_at'] = datetime.datetime.today() 68 | # entity['created_at'] = datetime.datetime.today() 69 | # return entity 70 | # 71 | # if __name__ == '__main__': 72 | # bulkload.main(SecretLoader()) -------------------------------------------------------------------------------- /Server/plist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {% spaceless %} 4 | 5 | {{ plist_content }} 6 | 7 | {% endspaceless %} -------------------------------------------------------------------------------- /Server/plistentry.xml: -------------------------------------------------------------------------------- 1 | {% for secret in secrets %} 2 | 3 | id 4 | {{secret.key.id}} 5 | bundle 6 | {{secret.bundle|escape}} 7 | {% if secret.display_bundle %}display_bundle{{secret.display_bundle|escape}}{% endif %} 8 | {% if secret.keypath %}keypath{{secret.keypath|escape}}{% endif %} 9 | {% if secret.description %}description{{secret.description|escape}}{% endif %} 10 | {% if secret.datatype %}datatype{{secret.datatype|escape}}{% endif %} 11 | {% if secret.widget %}widget{{secret.widget|escape}}{% endif %} 12 | {% if secret.title %}title{{secret.title|escape}}{% endif %} 13 | {% if secret.values %}values{{secret.values|escape}}{% endif %} 14 | {% if secret.defaultvalue %}defaultvalue{{secret.defaultvalue|escape}}{% endif %} 15 | {% if secret.minversion %}minversion{{secret.minversion|escape}}{% endif %} 16 | {% if secret.maxversion %}maxversion{{secret.maxversion|escape}}{% endif %} 17 | {% if secret.minosversion %}minosversion{{secret.minosversion|escape}}{% endif %} 18 | {% if secret.maxosversion %}maxosversion{{secret.maxosversion|escape}}{% endif %} 19 | {% if secret.units %}units{{secret.units|escape}}{% endif %} 20 | {% if secret.group %}group{{secret.group|escape}}{% endif %} 21 | {% if secret.placeholder %}placeholder{{secret.placeholder|escape}}{% endif %} 22 | {% if secret.created_at %}created{{secret.created_at|date:"Y-m-d\TH:i:s\Z" }}{% endif %} 23 | {% if secret.updated_at %}updated{{secret.updated_at|date:"Y-m-d\TH:i:s\Z"}}{% endif %} 24 | {% if secret.hidden %}hidden{% endif %} 25 | {% if secret.is_keypath %}is_keypath{% endif %} 26 | {% if secret.verified %}verified{% endif %} 27 | {% if secret.top_secret %}top_secret{% endif %} 28 | {% if secret.dangerous %}dangerous{% endif %} 29 | {% if secret.current_host_only %}current_host_only{% endif %} 30 | {% if secret.set_for_all_users %}set_for_all_users{% endif %} 31 | 32 | {% endfor %} -------------------------------------------------------------------------------- /Server/rss.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Secrets - {{title}} 4 | http://secrets.blacktree.com/preferences/list 5 | Secrets - {{title}} 6 | en 7 | 8 | 2008-06-17T13:58:51Z 9 | 10 | {% for secret in secrets %} 11 | 12 | {% endfor %} 13 | 14 | 15 | {% for secret in secrets %} 16 | 17 | {{secret.display_app|escape}}: {{secret.title}} 18 | http://secrets.blacktree.com/edit?id={{secret.key.id}} 19 | 21 | {{secret.title}}{% if secret.description %}
{{secret.description}}{% endif %}
22 | {{ secret.default_string|escape}} 23 | ]]>
24 | subject 25 | {{secret.updated_at|date:"Y-m-d\TH:i:s\Z"}} 26 |
27 | {% endfor %} 28 |
29 | -------------------------------------------------------------------------------- /Server/secrets.py: -------------------------------------------------------------------------------- 1 | import cgi 2 | import wsgiref.handlers 3 | import os 4 | import datetime 5 | 6 | from google.appengine.api import users 7 | from google.appengine.ext import webapp 8 | from google.appengine.ext import db 9 | from google.appengine.ext.webapp import template 10 | from google.appengine.api import memcache 11 | from google.appengine.ext.db import djangoforms 12 | from google.appengine.ext import search 13 | 14 | import xml.etree.cElementTree as ET 15 | 16 | class Bundle(db.Model): 17 | bundle_id = db.StringProperty() 18 | name = db.StringProperty() 19 | icon = db.LinkProperty() 20 | 21 | DATA_TYPES = ( 22 | ("Boolean", "boolean"), 23 | ("Boolean (Negate)", "boolean-neg"), 24 | ("Integer", "integer"), 25 | ("Float", "float"), 26 | ("String", "string"), 27 | ("Bundle Identifier", "bundleid"), 28 | ("Font Name", "font"), 29 | ("File Path", "path"), 30 | ("Rect", "rect"), 31 | ("Array", "array"), 32 | ("Array (Add)", "array-add"), 33 | ("Array (Multi Add)", "array-add-multiple"), 34 | ("Dictionary", "dict"), 35 | ("Dictionary (Add)", "dict-add"), 36 | ("Date", "date"), 37 | ("Color", "color"), 38 | ("URL", "url") 39 | ) 40 | 41 | class Secret(search.SearchableModel): 42 | author = db.UserProperty() 43 | editor = db.UserProperty() 44 | old_id = db.IntegerProperty() 45 | 46 | bundle = db.StringProperty(verbose_name="Bundle ID") 47 | display_bundle = db.StringProperty() 48 | app_reference = db.ReferenceProperty(Bundle) 49 | keypath = db.StringProperty(verbose_name="Key") 50 | datatype = db.StringProperty() 51 | title = db.StringProperty() 52 | defaultvalue = db.StringProperty(verbose_name="Default Value") 53 | units = db.StringProperty() 54 | widget = db.StringProperty() 55 | username = db.StringProperty() 56 | hostname = db.StringProperty() 57 | minversion = db.StringProperty(verbose_name="Min Version") 58 | maxversion = db.StringProperty(verbose_name="Max Version") 59 | minosversion = db.StringProperty(verbose_name="Min OS Version") 60 | maxosversion = db.StringProperty(verbose_name="Max OS Version") 61 | group = db.StringProperty() 62 | placeholder = db.StringProperty() 63 | source_url = db.StringProperty() 64 | values = db.StringProperty(multiline=True) 65 | description = db.StringProperty(multiline=True) 66 | notes = db.StringProperty(multiline=True) 67 | 68 | hidden = db.BooleanProperty() 69 | verified = db.BooleanProperty() 70 | current_host_only = db.BooleanProperty() 71 | set_for_all_users = db.BooleanProperty() 72 | has_ui = db.BooleanProperty() 73 | for_developers = db.BooleanProperty() 74 | top_secret = db.BooleanProperty() 75 | is_keypath = db.BooleanProperty() 76 | deleted = db.BooleanProperty(default=False) 77 | is_broken = db.BooleanProperty() 78 | dangerous = db.BooleanProperty() 79 | 80 | created_at = db.DateTimeProperty(auto_now_add=True) 81 | updated_at = db.DateTimeProperty(auto_now=True) 82 | 83 | def is_editable(self): 84 | return (datetime.datetime.today() - self.created_at) < datetime.timedelta(minutes=3) 85 | 86 | def default_string(self): 87 | valid = True 88 | 89 | if self.is_keypath: 90 | valid = False 91 | 92 | termbundle = self.bundle 93 | if self.set_for_all_users: 94 | termbundle = "/Library/Preferences/" + termbundle; 95 | 96 | if termbundle == ".GlobalPreferences" or (termbundle == "NSGlobalDomain"): 97 | termbundle = "-g" 98 | 99 | if valid: 100 | default_string = "defaults " 101 | 102 | if (self.current_host_only): 103 | default_string += "-currentHost " 104 | 105 | default_string += "write " + termbundle + " " + self.keypath + " -" + self.datatype + " " 106 | return default_string; 107 | else: 108 | return termbundle + " " + self.keypath + " -" + self.datatype + " " 109 | 110 | def remove_string(self): 111 | return "defaults delete " + bundle + " " + keypath 112 | 113 | def display_title(self): 114 | title = self.title 115 | 116 | if title.length == 0: 117 | title = "(untitled)" 118 | 119 | return title 120 | 121 | def display_icon(self): 122 | if self.display_bundle: 123 | bundle = self.display_bundle 124 | else: 125 | bundle = self.bundle 126 | 127 | if bundle == ".GlobalPreferences" or bundle == "NSGlobalDomain": 128 | bundle = "GlobalPreferences" 129 | bundle = "/images/bundleicons/" + bundle + ".png" 130 | 131 | #if not os.path.isfile(bundle): 132 | # bundle = "test.png" 133 | return bundle 134 | 135 | def display_app(self): 136 | bundle = self.bundle 137 | if bundle: 138 | bundle = bundle.split('.')[-1] 139 | 140 | display_bundle = self.display_bundle 141 | # if display_bundle: 142 | # if (len(display_bundle) > 0): 143 | # icon = self.display_bundle 144 | # icon = icon.split('/').last 145 | # if (display_bundle == "prefPane" | display_bundle == "editor" | display_bundle == "bundle" | display_bundle == "launcher"): 146 | # # display_bundle = self.display_bundle.split('.')[-2] 147 | # display_bundle = self.display_bundle.split('/')[-1] 148 | # 149 | 150 | if bundle == "GlobalPreferences": 151 | bundle = "Every App" 152 | 153 | if bundle == "kCFPreferencesCurrentApplication": 154 | bundle = "Any App" 155 | 156 | if self.display_bundle: 157 | bundle = display_bundle.split('.')[-1] 158 | return bundle 159 | 160 | # def put_value (key, type, xml) 161 | # 162 | # value = eval "self." + key 163 | # if (value) 164 | # xml.key(key) 165 | # xml.string(value) 166 | # end 167 | # end 168 | 169 | class SecretForm(djangoforms.ModelForm): 170 | class Meta: 171 | model = Secret 172 | exclude = ['hostname', 'username', 'author', 'editor', 'app_reference', 'old_id'] 173 | 174 | class PlistSecret(webapp.RequestHandler): 175 | def get(self): 176 | self.response.headers['Secrets-Version'] = "1.0.6" 177 | self.response.headers['Content-Type'] = 'text/xml; charset=utf-8' 178 | output = memcache.get("plist") 179 | if output is None: 180 | plist_content = '' 181 | secrets = Secret.all() 182 | secrets.filter('deleted ==', False) 183 | count = 0; 184 | for i in range (0, 4): 185 | some_secrets = secrets.fetch(200, 200*i) 186 | this_count = len(some_secrets) 187 | count += this_count 188 | if this_count == 0: 189 | break 190 | plist_content += template.render('plistentry.xml', {'secrets': some_secrets}) 191 | output = template.render('plist.xml', {'plist_content':plist_content}) 192 | memcache.add("plist", output) 193 | self.response.headers['Cached'] = 'yes' 194 | self.response.out.write(output) 195 | class TextSecret(webapp.RequestHandler): 196 | def get(self): 197 | output = memcache.get("txt") 198 | self.response.headers['Content-Type'] = 'text; charset=utf-8' 199 | if output is None: 200 | plist_content = '' 201 | secrets = Secret.all() 202 | secrets.filter('deleted ==', False) 203 | count = 0; 204 | for i in range (0, 4): 205 | some_secrets = secrets.fetch(200, 200*i) 206 | this_count = len(some_secrets) 207 | count += this_count 208 | for secret in some_secrets: 209 | self.response.out.write('%s\t%s\r' % (secret.bundle, secret.keypath)) 210 | if this_count == 0: 211 | break 212 | 213 | class MainPage(webapp.RequestHandler): 214 | def get(self): 215 | 216 | version = os.environ["CURRENT_VERSION_ID"]; 217 | if (memcache.get("CURRENT_VERSION_ID") != version): 218 | memcache.flush_all() 219 | memcache.add("CURRENT_VERSION_ID", version) 220 | self.response.out.write("") 221 | 222 | query = Secret.all() 223 | 224 | showall = self.request.get('show') == 'all' 225 | showrecent = self.request.get('show') == 'recent' 226 | showdeleted = self.request.get('show') == 'deleted' 227 | showapp = self.request.get('showapp') 228 | search_string = self.request.get('search') 229 | 230 | warning = None 231 | message = None 232 | title = None 233 | 234 | page = self.request.get('page') 235 | next_page = None; 236 | prev_page = None; 237 | cachename = "index-" + self.request.get('show') + "-" + page 238 | 239 | if showapp: 240 | cachename = None 241 | if (len(showapp) <=3): 242 | showapp = None 243 | warning = "invalid app or bundle identifier" 244 | 245 | if search_string: 246 | cachename = None 247 | if (len(search_string) <= 3): 248 | search_string = None 249 | warning = "searches must be longer than 3 characters" 250 | 251 | if page != None and page != '': 252 | page = int(page) 253 | if page > 0: 254 | prev_page = str(page - 1); 255 | else: 256 | page = 0 257 | next_page = str(page + 1); 258 | 259 | output = None 260 | if not self.request.get('ignorecache') and cachename: 261 | output = memcache.get(cachename) 262 | if output is not None: 263 | self.response.out.write("") 264 | self.response.out.write(output) 265 | #self.response.out.write(memcache.get_stats()) 266 | else: 267 | query.filter('deleted ==', False) 268 | if showrecent == True: 269 | title = "Recent Secrets" 270 | query = db.GqlQuery("SELECT * FROM Secret WHERE deleted = False " 271 | "ORDER BY created_at DESC") 272 | secrets = query.fetch(30) 273 | elif showall == True: 274 | title = "All Secrets: page %d" % (page + 1) 275 | query = db.GqlQuery("SELECT * FROM Secret WHERE deleted = False " 276 | "ORDER BY created_at DESC") 277 | secrets = query.fetch(100, 100 * page) 278 | elif showdeleted == True: 279 | title = "All Secrets: page %d" % (page + 1) 280 | query = db.GqlQuery("SELECT * FROM Secret WHERE deleted = True " 281 | "ORDER BY created_at DESC") 282 | secrets = query.fetch(100, 100 * page) 283 | 284 | elif showapp is not None and len(showapp) > 5: 285 | title = "\"%s\"" % (showapp) 286 | query = db.GqlQuery("SELECT * FROM Secret WHERE bundle = '%s'" % showapp) 287 | secrets = query.fetch(100) 288 | count = len(secrets) 289 | if (count is None): 290 | warning = "no matches" 291 | 292 | elif search_string is not None and len(search_string) > 3: 293 | title = "\"%s\"" % (search_string) 294 | query = Secret.all().search(search_string) 295 | # query = db.GqlQuery("SELECT * FROM Secret WHERE deleted = False" 296 | # "AND bundle = :1" 297 | # "ORDER BY created_at DESC", 298 | # ) 299 | secrets = query.fetch(100) 300 | count = len(secrets) 301 | if (count): 302 | message = '%(number)d secret(s) found for %(search_string)s' % {'search_string': search_string, "number": count } 303 | else: 304 | message = "no matches" 305 | else: 306 | query.filter('top_secret =', True) 307 | #query.order('bundle') 308 | secrets = query.fetch(100, 100 * page) 309 | 310 | template_values = {'secrets': secrets, 311 | 'warning': warning, 312 | 'search_string' : search_string, 313 | 'message': message, 314 | 'title': title, 315 | 'showall': showall, 316 | 'next_page': next_page, 317 | 'prev_page': prev_page} 318 | 319 | path = os.path.join(os.path.dirname(__file__), 'index.html') 320 | output = template.render('index.html', template_values) 321 | if cachename is not None: 322 | memcache.add(cachename, output) 323 | self.response.out.write(output) 324 | 325 | class DeleteSecret(webapp.RequestHandler): 326 | def post(self): 327 | if (users.is_current_user_admin()): 328 | id = self.request.get('_id') 329 | item = Secret.get(db.Key.from_path('Secret', int(id))) 330 | item.deleted = True 331 | item.put() 332 | memcache.flush_all() 333 | self.redirect('/') 334 | 335 | class EditSecret(webapp.RequestHandler): 336 | def get(self): 337 | if users.get_current_user(): 338 | url = users.create_logout_url(self.request.uri) 339 | loggedin = 1 340 | else: 341 | url = users.create_login_url(self.request.uri) 342 | loggedin = 0 343 | isadmin = users.is_current_user_admin() 344 | id = self.request.get('id') 345 | template_values = { 346 | 'id':id, 347 | 'isadmin':isadmin, 348 | 'loggedin':loggedin, 349 | 'url': url 350 | } 351 | 352 | item = None 353 | if id: 354 | item = Secret.get(db.Key.from_path('Secret', int(id))) 355 | if item == None: 356 | 357 | self.response.out.write("Unknown secret. Show all.") 358 | return; 359 | isowned = (item.author != None) and (item.author == users.get_current_user()); 360 | template_values['isowned'] = isowned 361 | template_values['iseditable'] = isadmin | isowned | (item.is_editable() & loggedin) 362 | template_values['form'] = SecretForm(instance=item) 363 | template_values['secret'] = item 364 | if item.author: 365 | template_values['author'] = item.author.nickname().split('@')[0] 366 | if item.editor: 367 | template_values['editor'] = item.editor.nickname().split('@')[0] 368 | else: 369 | template_values['form'] = SecretForm() 370 | template_values['iseditable'] = loggedin 371 | 372 | self.response.out.write(template.render('form.html', template_values)) 373 | 374 | def post(self): 375 | id = self.request.get('_id') 376 | dups = None 377 | if id: 378 | item = Secret.get(db.Key.from_path('Secret', int(id))) 379 | data = SecretForm(data=self.request.POST, instance=item) 380 | else: 381 | dups = db.GqlQuery("SELECT * FROM Secret WHERE bundle = :1 " 382 | "AND keypath = :2 ", 383 | self.request.get('bundle'), self.request.get('keypath')) 384 | data = SecretForm(data = self.request.POST) 385 | self.response.out.write(dups.count()) 386 | 387 | 388 | if data.is_valid() and (dups == None or dups.count() == 0): 389 | # Save the data, and redirect to the view page 390 | entity = data.save(commit=False) 391 | if not id: 392 | entity.author = users.get_current_user() 393 | entity.editor = users.get_current_user() 394 | entity.put() 395 | self.redirect('/') 396 | memcache.flush_all() 397 | else: 398 | # Reprint the form 399 | if id: 400 | self.response.out.write(template.render('form.html', {'form':data, 'id':id})) 401 | else: 402 | self.response.out.write(template.render('form.html', {'form':data, 'dups':dups})) 403 | 404 | class FlushSecrets(webapp.RequestHandler): 405 | def get(self): 406 | if (users.is_current_user_admin()): 407 | secrets = Secret.all().filter("deleted = ", True).fetch(1000) 408 | self.response.out.write("Flushed %(page)d" % {'page': len(secrets)}) 409 | memcache.flush_all() 410 | 411 | class DeleteSecrets(webapp.RequestHandler): 412 | def get(self): 413 | if (users.is_current_user_admin()): 414 | secrets = Secret.all().filter("deleted = ", True).fetch(1000) 415 | self.response.out.write("Deleted %(page)d" % {'page': len(secrets)}) 416 | db.delete(secrets) 417 | memcache.flush_all() 418 | 419 | class PrintEnvironmentHandler(webapp.RequestHandler): 420 | def get(self): 421 | if (users.is_current_user_admin()): 422 | for name in os.environ.keys(): 423 | self.response.out.write("%s = %s
\n" % (name, os.environ[name])) 424 | 425 | class RSSNewSecret(webapp.RequestHandler): 426 | def get(self): 427 | output = memcache.get("rss-new") 428 | if output is None: 429 | secrets = Secret.all().order('-created_at').fetch(20) 430 | output = template.render("rss.xml", {'secrets':secrets, 'title': 'Recently Added'}) 431 | memcache.add("rss-new", output) 432 | 433 | # self.response.headers['Content-Type'] = 'text/rss+xml; charset=utf-8' 434 | self.response.out.write(output) 435 | 436 | class RSSUpdatedSecret(webapp.RequestHandler): 437 | def get(self): 438 | output = memcache.get("rss-updated") 439 | if output is None: 440 | secrets = Secret.all().order('-updated_at').fetch(20) 441 | output = template.render("rss.xml", {'secrets':secrets, 'title': 'Recently Updated'}) 442 | memcache.add("rss-updated", output) 443 | 444 | self.response.headers['Content-Type'] = 'text/rss+xml; charset=utf-8' 445 | self.response.out.write(output) 446 | 447 | class Backup(webapp.RequestHandler): 448 | def get(self): 449 | secrets = Secret.all() 450 | page = self.request.get('page') 451 | if page is not None and len(page): 452 | page = int(page) 453 | else: 454 | page = 0 455 | some_secrets = secrets.fetch(30, 30*page) 456 | this_count = len(some_secrets) 457 | for secret in some_secrets: 458 | secret.put() 459 | if (this_count > 0): 460 | url = "" % {'page': int(page)+1} 461 | self.response.out.write(url) 462 | self.response.out.write("Next...") 463 | else: 464 | self.response.out.write("Done") 465 | 466 | class Backup(webapp.RequestHandler): 467 | def get(self): 468 | secrets = Secret.all() 469 | page = self.request.get('page') 470 | if page is not None and len(page): 471 | page = int(page) 472 | else: 473 | page = 0 474 | some_secrets = secrets.fetch(30, 30*page) 475 | this_count = len(some_secrets) 476 | for secret in some_secrets: 477 | secret.put() 478 | if (this_count > 0): 479 | url = "" % {'page': int(page)+1} 480 | self.response.out.write(url) 481 | self.response.out.write("Next...") 482 | else: 483 | self.response.out.write("Done") 484 | 485 | def main(): 486 | application = webapp.WSGIApplication( 487 | [('/rss/updated', RSSUpdatedSecret), 488 | ('/rss/new', RSSNewSecret), 489 | ('/delete',DeleteSecret), 490 | ('/edit', EditSecret), 491 | ('/txt', TextSecret), 492 | ('/plist', PlistSecret), 493 | ('/env', PrintEnvironmentHandler), 494 | # ('/backup', Backup), 495 | ('/flush', FlushSecrets), 496 | ('/', MainPage)], 497 | debug=True) 498 | wsgiref.handlers.CGIHandler().run(application) 499 | 500 | if __name__ == "__main__": 501 | main() -------------------------------------------------------------------------------- /Server/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/favicon.ico -------------------------------------------------------------------------------- /Server/static/images/Secrets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/Secrets.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/Chax.bundle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/Chax.bundle.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/GlobalPreferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/GlobalPreferences.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/InCrease.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/InCrease.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/TiVoDesktop.prefPane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/TiVoDesktop.prefPane.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/ch.sudo.cyberduck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/ch.sudo.cyberduck.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.1passwd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.1passwd.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.DanSchimpf.MacJournal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.DanSchimpf.MacJournal.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.abyssoft.teleport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.abyssoft.teleport.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.adiumx.Adiumx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.adiumx.Adiumx.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.AddressBook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.AddressBook.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.Backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.Backup.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.CrashReporterPrefs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.CrashReporterPrefs.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.DiskUtility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.DiskUtility.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.Grab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.Grab.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.NetworkUtility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.NetworkUtility.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.PhotoBooth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.PhotoBooth.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.QuartzComposer.editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.QuartzComposer.editor.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.QuickTimePlayerX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.QuickTimePlayerX.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.RemoteDesktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.RemoteDesktop.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.Safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.Safari.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.ScreenSharing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.ScreenSharing.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.Terminal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.Terminal.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.Xcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.Xcode.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.backup.launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.backup.launcher.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.dashboardlauncher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.dashboardlauncher.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.dock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.dock.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.dvdplayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.dvdplayer.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.finder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.finder.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.frontrowlauncher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.frontrowlauncher.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.helpviewer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.helpviewer.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.iCal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.iCal.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.iChat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.iChat.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.iPhoto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.iPhoto.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.iTunes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.iTunes.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.iWork.Keynote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.iWork.Keynote.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.iWork.Numbers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.iWork.Numbers.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.iWork.Pages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.iWork.Pages.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.keychainaccess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.keychainaccess.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.mail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.mail.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.spaceslauncher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.spaceslauncher.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.apple.spotlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.apple.spotlight.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.barebones.bbedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.barebones.bbedit.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.blacktree.Nocturne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.blacktree.Nocturne.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.bruji.DVDpedia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.bruji.DVDpedia.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.echoone.FileJuicer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.echoone.FileJuicer.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.echoone.doubletake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.echoone.doubletake.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.flyingmeat.Acorn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.flyingmeat.Acorn.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.flyingmeat.VoodooPad_Pro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.flyingmeat.VoodooPad_Pro.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.google.Desktop.QSB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.google.Desktop.QSB.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.google.GmailNotifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.google.GmailNotifier.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.google.Updater.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.google.Updater.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.houdah.HoudahSpot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.houdah.HoudahSpot.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.iconfactory.Twitterrific.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.iconfactory.Twitterrific.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.karelia.Sandvox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.karelia.Sandvox.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.kjams.kJams.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.kjams.kJams.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.ksuther.chax.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.ksuther.chax.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.macromates.textmate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.macromates.textmate.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.mactelnet.MacTelnet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.mactelnet.MacTelnet.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.malcolmhardie.sqleditor.cocoa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.malcolmhardie.sqleditor.cocoa.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.microsoft.Entourage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.microsoft.Entourage.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.omnigroup.OmniFocus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.omnigroup.OmniFocus.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.omnigroup.OmniWeb5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.omnigroup.OmniWeb5.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.potionfactory.Tangerine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.potionfactory.Tangerine.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.ranchero.NetNewsWire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.ranchero.NetNewsWire.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.red-sweater.FastScripts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.red-sweater.FastScripts.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.rogueamoeba.AudioHijackPro2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.rogueamoeba.AudioHijackPro2.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.rogueamoeba.fission.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.rogueamoeba.fission.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.roxio.toast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.roxio.toast.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.stuntsoftware.Overflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.stuntsoftware.Overflow.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/com.thecocoabots.Hyperspaces.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/com.thecocoabots.Hyperspaces.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/iTerm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/iTerm.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/info.colloquy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/info.colloquy.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/org.aegidian.oolite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/org.aegidian.oolite.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/org.bergstrand.iScrobbler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/org.bergstrand.iScrobbler.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/org.m0k.transmission.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/org.m0k.transmission.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/org.mozilla.camino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/org.mozilla.camino.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/org.smultron.Smultron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/org.smultron.Smultron.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/org.tynsoe.buddypop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/org.tynsoe.buddypop.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/org.x.X11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/org.x.X11.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/uk.co.markallan.clamxav.ClamXavSentry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/uk.co.markallan.clamxav.ClamXavSentry.png -------------------------------------------------------------------------------- /Server/static/images/bundleicons/uk.co.opencommunity.vienna2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/images/bundleicons/uk.co.opencommunity.vienna2.png -------------------------------------------------------------------------------- /Server/static/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecnepsnai/Secrets/5e4aa787131f97212ff63d2a167b5cc4b0bbe2b6/Server/static/robots.txt -------------------------------------------------------------------------------- /Server/static/stylesheets/secrets.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Verdana, Helvetica, sans-serif; 3 | background-color: #DDDDDD; 4 | } 5 | 6 | body { background-color: #fff; color: #333; } 7 | 8 | body, p, ol, ul, td { 9 | font-family: verdana, arial, helvetica, sans-serif; 10 | font-size: 12px; 11 | } 12 | 13 | pre { 14 | background-color: #eee; 15 | padding: 10px; 16 | font-size: 11px; 17 | } 18 | span.detail { 19 | color:gray; 20 | font-size: 11px; 21 | } 22 | a { color: #00C; text-decoration: none} 23 | a:visited { color: #008; } 24 | a:hover {text-decoration: underline } 25 | 26 | .fieldWithErrors { 27 | padding: 2px; 28 | background-color: red; 29 | display: table; 30 | } 31 | 32 | .byline { 33 | text-align:center; 34 | text-size:smaller; 35 | color:gray; 36 | } 37 | #errorExplanation { 38 | width: 300px; 39 | border: 1px solid red; 40 | padding: 7px; 41 | padding-bottom: 12px; 42 | margin:auto; 43 | margin-bottom: 20px; 44 | background-color: #fff0f0; 45 | -webkit-border-radius: 3px; 46 | 47 | } 48 | 49 | #errorExplanation h2 { 50 | text-align: left; 51 | font-weight: bold; 52 | padding: 5px 5px 5px 15px; 53 | font-size: 12px; 54 | margin: -7px; 55 | background-color: #c00; 56 | color: #fff; 57 | } 58 | 59 | #errorExplanation p { 60 | color: #333; 61 | margin-bottom: 0; 62 | padding: 5px; 63 | } 64 | 65 | #errorExplanation ul li { 66 | font-size: 12px; 67 | list-style: square; 68 | } 69 | 70 | div.uploadStatus { 71 | margin: 5px; 72 | } 73 | 74 | div.progressBar { 75 | margin: 5px; 76 | } 77 | 78 | div.progressBar div.border { 79 | background-color: #fff; 80 | border: 1px solid grey; 81 | width: 100%; 82 | } 83 | 84 | div.progressBar div.background { 85 | background-color: #333; 86 | height: 18px; 87 | width: 0%; 88 | } 89 | 90 | .dimmed { 91 | background-color: #f4f4f4; 92 | } 93 | 94 | input, textarea{ 95 | border:1px solid #ccc; 96 | } 97 | 98 | img.icon { 99 | width:32px; 100 | height:32px; 101 | 102 | } 103 | 104 | th { 105 | text-align:right; 106 | } 107 | label { 108 | font-weight:normal; 109 | font-family: verdana, arial, helvetica, sans-serif; 110 | font-size: 12px; 111 | } 112 | input#submit{ 113 | border:1px solid #ccc; 114 | 115 | background-color: white; 116 | -webkit-border-radius:5px; 117 | } 118 | 119 | input#submit:hover{ 120 | background-color: #EEF; 121 | } 122 | --------------------------------------------------------------------------------