Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
8bd78b8
Add template changes for inline registration
irdan Mar 2, 2015
aa4f646
Add js listeners and functions for registration
irdan Mar 2, 2015
e6584c8
Add style changes for input form
irdan Mar 2, 2015
7b6f1a3
Improve first-run registration
hitesh96db Mar 11, 2015
a69b925
extract common template to a base template
breezewish Apr 9, 2015
f810047
remove extra whitespace
breezewish Apr 19, 2015
6db89a6
Merge pull request #4 from hitesh96db/register
irdan Apr 22, 2015
867305a
removed html2js hack from Help tests
smcgregor Apr 23, 2015
793287e
remove unused code
breezewish May 5, 2015
43cca62
basePath depends on current working directory. Tests can be run on di…
sambuddhabasu May 6, 2015
9f43080
privlyLinkKey should be url encoded
breezewish May 15, 2015
31d4ae6
Integrated Safari with TravisCI tests
smcgregor May 17, 2015
9a11c2d
added new testing options to README
smcgregor May 17, 2015
933315d
Merge pull request #246 from smcgregor/sammyshj-updatetest
smcgregor May 17, 2015
f7e75b3
Merge branch 'SummerWish-fix-procesurl-bug' into develop
smcgregor May 18, 2015
f06603e
removed html2js from all tests
smcgregor May 22, 2015
c637af1
removed html2js preprocessor from Karma
smcgregor May 22, 2015
05e948f
fixed callback invocation in shared functions
smcgregor May 22, 2015
ffefbf1
Merge branch 'karma-test-cleanup' into develop
smcgregor May 22, 2015
b8d3a1e
fixed test in Help
smcgregor May 22, 2015
3aeb030
updated test scripts to support multiple run_each files
smcgregor May 22, 2015
ef6ae3e
Merge pull request #248 from smcgregor/update-chrome-testing
smcgregor May 23, 2015
490ced0
Switched coverage reporter to coveralls
smcgregor May 24, 2015
97ee365
fixed .travis.yml file for pull requests
smcgregor May 24, 2015
01002a1
Merge pull request #249 from smcgregor/switch-to-coveralls
smcgregor May 24, 2015
f9c93a9
refactor options and glyph icons
breezewish May 25, 2015
8445a2e
fix unit test
breezewish May 25, 2015
abec69f
improved Privly.Options
breezewish May 25, 2015
c67531e
improve executing env detection: unit test in Chrome should works
breezewish May 25, 2015
454708c
rendered HTML for web
smcgregor May 26, 2015
dbae932
Merge pull request #251 from smcgregor/build-html-for-web
smcgregor May 26, 2015
8ed9f69
added test coverage for Login application
smcgregor May 26, 2015
838a5d2
commented out failing test for Safari and Chrome
smcgregor May 26, 2015
a4cedc8
Merge pull request #252 from smcgregor/adding-test-coverage
smcgregor May 26, 2015
9052c0b
fixed updating content for Message
smcgregor May 26, 2015
946ff03
forced selenium to use FF 37
smcgregor May 26, 2015
bd901e4
updated History selenium test
smcgregor May 27, 2015
171e083
Merge pull request #255 from smcgregor/update-selenium-test-tc-history
smcgregor May 27, 2015
ca578bd
Merge pull request #253 from smcgregor/fix-message-updating
smcgregor May 27, 2015
9d653d1
improved host_page_integration tests
smcgregor May 27, 2015
00b4c59
Merge pull request #256 from smcgregor/adding-test-coverage
smcgregor May 27, 2015
69661d6
rename isWritelistDomainValid to isDomainValid
breezewish May 28, 2015
7a14e10
Privy.Storage
breezewish May 29, 2015
2ee0307
add deprecated annotation for local_storage
breezewish May 29, 2015
3353f7c
Added safari_web for selenium tests
sambuddhabasu May 28, 2015
c435eb2
Merge pull request #257 from sammyshj/updateselenium
smcgregor May 29, 2015
d302609
migrate to Privly.Storage
breezewish May 29, 2015
19ed025
Privly.Storage -> Privly.storage
breezewish May 30, 2015
0bc3e8f
Privly.Options -> Privy.options
breezewish May 30, 2015
78ee82b
Privly.Glyph -> Privy.glyph
breezewish May 30, 2015
bac12c7
fix edge case of Privy.options
breezewish May 30, 2015
8c31dd2
add more test cases for privy.options
breezewish May 30, 2015
3ebfebb
small improvement of glyph & storage test case
breezewish May 30, 2015
3d77753
fix a bug when generating glyph color
breezewish May 30, 2015
c6142d9
change the text that `option` of the `option/changed` message contains
breezewish May 30, 2015
5ca78b5
Added sauce_safari_web
sambuddhabasu May 29, 2015
bd27b7c
Merge pull request #258 from sammyshj/updateselenium
smcgregor May 30, 2015
3f8e194
add more tests for Privy.glyph
breezewish May 31, 2015
fe0e813
added shared message library
smcgregor Jun 3, 2015
031689f
Merge pull request #1 from smcgregor/feature-shared-message-library
breezewish Jun 4, 2015
0beab3c
remove restriction to send message from bgscript to bgscript
breezewish Jun 4, 2015
321220a
add sendResponse functionality
breezewish Jun 4, 2015
844dfdf
remove debug code
breezewish Jun 4, 2015
ed79031
add comments for context messengers and glyph
breezewish Jun 8, 2015
c30d34c
messageTopPrivlyApplication -> messagePrivlyApplication
breezewish Jun 11, 2015
c2941e7
return response as a Promise object
breezewish Jun 11, 2015
e141428
add ping-pong for testing context messenger
breezewish Jun 12, 2015
bdac720
decrease pongAsync waiting to increase integration testing speed
breezewish Jun 12, 2015
3136802
add integration test for context messenger
breezewish Jun 12, 2015
c42907e
Added SafariAdapter functions
sambuddhabasu Jun 15, 2015
ba43a8c
update integration test for messages
breezewish Jun 15, 2015
9e769b2
the missing manifest file
breezewish Jun 17, 2015
82d5068
SafariAdapter setListener function implemented
sambuddhabasu Jun 17, 2015
23b6c01
Merge commit '82d5068ece298a1aad27383953641ef8a5738edf' into options-…
breezewish Jun 17, 2015
691d12d
fix receiving response bug
breezewish Jun 18, 2015
328f26e
Merge branch 'inherit-base-template' of https://github.com/SummerWish…
smcgregor Jun 18, 2015
53439e5
Merge branch 'master-template' into develop
smcgregor Jun 18, 2015
5c0455e
Merge branch 'clean-up-code' of https://github.com/SummerWish/privly-…
smcgregor Jun 18, 2015
e9911cb
Merge branch 'SummerWish-clean-up-code' into develop
smcgregor Jun 18, 2015
8bfd616
Context Messenger: Firefox Adapter
hitesh96db Jun 18, 2015
930589e
Merge pull request #2 from hitesh96db/options_interface
breezewish Jun 19, 2015
1069891
removed implicit selector
smcgregor Jun 21, 2015
4b0b3bd
force links in Message body to open in new window
smcgregor Jun 21, 2015
92c8568
exlcude compression scripts from unit test coverage stats
smcgregor Jun 21, 2015
8aab8c1
updated unit tests
smcgregor Jun 21, 2015
d761451
Merge pull request #261 from smcgregor/70-percent-coverage
smcgregor Jun 21, 2015
3d59868
Merge branch 'options-interface' of https://github.com/SummerWish/pri…
smcgregor Jun 21, 2015
0f8b1d7
updated options tests for Safari
smcgregor Jun 22, 2015
41d7b52
sauce.json added in gitignore and removed from git history
sambuddhabasu Jun 22, 2015
3e18644
changed Safari test version to 8.0
smcgregor Jun 22, 2015
32e6c27
add sender in Chrome Adapter
breezewish Jun 23, 2015
878904d
Merge pull request #262 from sammyshj/updategitignore
smcgregor Jun 23, 2015
74a801b
Coverage files are test specific now. Update coverageFiles when run f…
sambuddhabasu Jun 23, 2015
c51cf12
Merge pull request #263 from sammyshj/addcoverage
smcgregor Jun 25, 2015
de82722
Include all files recursively under scripts directory for Safari exte…
sambuddhabasu Jun 30, 2015
f034e30
Merge pull request #264 from sammyshj/coveragefiles
smcgregor Jun 30, 2015
dddbe7c
Merge branch 'options-interface' of https://github.com/SummerWish/pri…
smcgregor Jun 30, 2015
9cb6011
Merge branch 'develop' of github.com:privly/privly-applications into …
smcgregor Jun 30, 2015
565eb07
Included necessary javascript files
sambuddhabasu Jul 10, 2015
33678cc
Merge pull request #266 from sammyshj/safari-develop
smcgregor Jul 11, 2015
4bc1890
Send message from BACKGROUND_SCRIPT to BACKGROUND_SCRIPT
sambuddhabasu Jul 13, 2015
8d80f25
Allow reuse of LocalStorage shim
hitesh96db Jul 13, 2015
2061c13
Merge pull request #268 from sammyshj/safaridevelop
smcgregor Jul 13, 2015
fdd973b
Improved comments
hitesh96db Jul 14, 2015
85ecce4
Merge pull request #269 from hitesh96db/master
smcgregor Jul 14, 2015
40c047e
Send message from PRIVLY_APPLICATION to CONTENT_SCRIPT
sambuddhabasu Jul 14, 2015
32721a5
Merge pull request #271 from sammyshj/safariadapter
smcgregor Jul 15, 2015
df0e338
adapt to new base libraries
breezewish Jul 16, 2015
cc9a52c
Scripts loading order corrected
hitesh96db Jul 17, 2015
3f90c26
refactor apps and `new` process
breezewish Jul 17, 2015
1e6551b
support specify redirection dest in Url
breezewish Jul 18, 2015
393baae
returns ajax object in network interface
breezewish Jul 18, 2015
cbf849d
ok. this should be in the seamless-posting-app-improvement.
breezewish Jul 18, 2015
ba61565
seamless-posting
breezewish Jul 18, 2015
ffac286
Merge pull request #273 from hitesh96db/gsoc-develop
smcgregor Jul 18, 2015
f651eb5
SafariAdapter handles message properly now
sambuddhabasu Jul 17, 2015
71fe096
Merge pull request #272 from sammyshj/safariadapter
smcgregor Jul 18, 2015
b12288e
Merge branch 'gsoc-develop' into seamless-posting
breezewish Jul 19, 2015
91e914d
For safari extension mirror localStorage changes in background page
sambuddhabasu Jul 21, 2015
0d6ba0c
Load interface scripts as CommonJS modules
hitesh96db Jul 17, 2015
ef477c5
add documentations for the new MVC architecture of a Privly App
breezewish Jul 25, 2015
4d0d9eb
add tests for app view adapters
breezewish Jul 26, 2015
2f29de3
add test cases for Privly Apps
breezewish Jul 27, 2015
b544706
fix app blurred issues
breezewish Jul 27, 2015
030647f
fix view message bug
breezewish Jul 27, 2015
ce2ad84
Merge pull request #276 from sammyshj/safariadapter
smcgregor Jul 27, 2015
07c68d6
improved test coverage
breezewish Jul 28, 2015
ca60f7d
Added message event listener for PRIVLY_APPLICATION in SafariAdapter
sambuddhabasu Jul 28, 2015
05eb241
Merge pull request #277 from sammyshj/safariadapter
smcgregor Jul 28, 2015
bb9546c
fix seamless testing
breezewish Jul 29, 2015
c27526d
fix privly button test cases
breezewish Jul 31, 2015
8e2a801
add integration tests
breezewish Jul 31, 2015
ead708d
Fixed tests, allow messages from PA(Privly Applications) to PA
hitesh96db Aug 1, 2015
0324859
Fix failing tests, changed the way to access CommonJS module exported…
hitesh96db Aug 2, 2015
df47728
Posting process integration tests
hitesh96db Aug 3, 2015
c0d663d
Merge commit '05eb2410fa88c952319602ab618601f8d22336ff' into seamless…
breezewish Aug 4, 2015
291b2dc
add test cases for context messenger Chrome adapter
breezewish Aug 4, 2015
2edc5fd
test canvas based glyph and replace DOM based glyph
breezewish Aug 4, 2015
4cd3072
improve comments for messageTest and SeamlessPosting-LoginCallback
breezewish Aug 4, 2015
323ae45
remove hard-coded xpi filename
hitesh96db Aug 4, 2015
879661c
rearrange Privly application directories
breezewish Aug 5, 2015
5e8c4cb
added comments
hitesh96db Aug 5, 2015
d1d92da
Merge pull request #278 from hitesh96db/postingtests
smcgregor Aug 5, 2015
eeea724
ts_all_specs runs specific test cases only if the extension is installed
hitesh96db Aug 6, 2015
98051c3
Merge pull request #279 from hitesh96db/postingtests
smcgregor Aug 6, 2015
26149b4
optimize loading of dependencies
hitesh96db Aug 6, 2015
8884ff6
Merge pull request #275 from hitesh96db/inbetween
smcgregor Aug 13, 2015
fe05f9a
Bug fix
hitesh96db Aug 13, 2015
e8e6571
Merge pull request #280 from hitesh96db/optimize
smcgregor Aug 13, 2015
c62f742
Fixed Message tests for Jetpack
hitesh96db Aug 16, 2015
ce861bb
Merge branch 'gsoc-develop' into SummerWish-seamless-posting
smcgregor Aug 17, 2015
6dc7316
updated testing gems
smcgregor Aug 18, 2015
766f522
target specific versions of firefox and safari in SauceLabs unit tests
smcgregor Aug 18, 2015
6e50961
increased timeouts for Karma on TravisCI
smcgregor Aug 18, 2015
32a0f90
Merge pull request #282 from smcgregor/fix-sauce-unit-tests
smcgregor Aug 18, 2015
c33e02b
Move documentation of MVC architecture into priv.ly website
breezewish Aug 19, 2015
a86adbb
add new line at the end of file
breezewish Aug 20, 2015
560fb08
fix ChromeAdapter bug
breezewish Aug 20, 2015
c3e4650
Merge commit '32a0f90a57097d286efb197d63393662dfd7eab0' into seamless…
breezewish Aug 20, 2015
47cfe0a
add anchor for documentation link
breezewish Aug 20, 2015
e829358
Fixed Message tests for Jetpack
hitesh96db Aug 20, 2015
4950c48
Merge pull request #281 from hitesh96db/optimize
smcgregor Aug 21, 2015
92a1c3f
Merge pull request #285 from SummerWish/seamless-posting
smcgregor Aug 21, 2015
30b6a52
Merge pull request #284 from SummerWish/privly-app-doc
smcgregor Aug 21, 2015
dd09d3c
Merge remote-tracking branch 'irdan/firstrun-inline-register' into gs…
irdan Aug 22, 2015
d3912d6
Update name of storage key
irdan Aug 23, 2015
9b0aaed
switched .innerText to .textContent
smcgregor Aug 25, 2015
7941a65
put sham function into test
smcgregor Aug 25, 2015
8815c02
Merge pull request #291 from smcgregor/fix-tests
smcgregor Aug 25, 2015
bb9fbf7
Better user feedback
irdan Aug 25, 2015
91cf9b1
updated inline registration messages
smcgregor Aug 25, 2015
014bb15
updated alert styling
smcgregor Aug 25, 2015
5d14f76
Merge branch 'gsoc-develop' of github.com:privly/privly-applications …
smcgregor Aug 25, 2015
4654907
improved inline registration UX
smcgregor Aug 26, 2015
ec32544
Merge pull request #292 from smcgregor/irdan-inline-registration
smcgregor Aug 26, 2015
76b7469
Merge pull request #297 from privly/gsoc-develop
smcgregor Sep 23, 2015
8310dce
added test coverage
smcgregor Sep 23, 2015
33ae9eb
fixed where option page tests are defined
smcgregor Sep 23, 2015
ba685bc
increased test coverage
smcgregor Sep 23, 2015
46cdc07
test fixes
smcgregor Sep 23, 2015
f4e2c96
Merge pull request #298 from smcgregor/feature-increase-test-coverage
smcgregor Sep 24, 2015
f02416c
updated firstrun page
smcgregor Oct 1, 2015
54e709c
Merge pull request #300 from smcgregor/update-first-run
smcgregor Oct 2, 2015
b1b35a3
open Markdown site with _blank
smcgregor Oct 2, 2015
67e06c3
default to enabled posting button
smcgregor Oct 2, 2015
1f48c17
fixed upgrade migration
smcgregor Oct 2, 2015
90ebfe2
improved tooltip tests
smcgregor Oct 6, 2015
a6f79b4
updated tooltip tests
smcgregor Oct 6, 2015
95bd04a
don't run failing test on Safari
smcgregor Oct 6, 2015
a381dc1
added test coverage to Login app
smcgregor Oct 6, 2015
aa21fa0
updated testing gems
smcgregor Nov 5, 2015
222bd9a
fixed meta key selection on sauce selenium test
smcgregor Nov 5, 2015
65eb660
Merge pull request #301 from smcgregor/update-testing-gems
smcgregor Nov 5, 2015
6c16524
added disable posting button to jetpack build
smcgregor Nov 6, 2015
9972f00
Merge pull request #302 from smcgregor/fix-selenium-tests-for-jetpack
smcgregor Nov 6, 2015
28a9317
Extract app init into named function
irdan Nov 6, 2015
1254232
Remove redundant headless mode check
irdan Nov 6, 2015
7cd7ded
Fix callback passing in listener
irdan Nov 6, 2015
9307b46
move SauceLabs selenium firefox version to 38
smcgregor Nov 6, 2015
4a591e5
Add logout_link to DOM for non-headless testing
irdan Nov 6, 2015
2402a31
Merge pull request #305 from smcgregor/fix-selenium-tests-for-jetpack
smcgregor Nov 6, 2015
36f0295
Merge branch 'develop' of github.com:privly/privly-applications into …
smcgregor Nov 6, 2015
0aa36c2
Add initialize app function tests
irdan Nov 6, 2015
5117359
added context_messenger.js coverage
smcgregor Nov 6, 2015
4657da8
mock privlyNetworkService calls
irdan Nov 6, 2015
27aa88c
Add coverage for removeWhitelistUrl and inputEvent
irdan Nov 7, 2015
bb62be0
added test coverage for safari message adapter
smcgregor Nov 7, 2015
a52f679
use className over classList for cross browser compatability
irdan Nov 7, 2015
eccd156
Merge pull request #303 from irdan/options-test-refactor
smcgregor Nov 7, 2015
68a4602
Merge pull request #306 from smcgregor/feature-increase-test-coverage
smcgregor Nov 7, 2015
a83dd15
updated README.md and development.md
smcgregor Nov 8, 2015
273e452
Improved Metadata Design
Meta-Maxim Dec 12, 2015
24b611c
Merge branch 'master' of https://github.com/MaxBorsch/privly-applicat…
smcgregor Dec 12, 2015
8ed2dea
Re-styled Metadata
Meta-Maxim Dec 17, 2015
2061e75
Re-styled Metadata
Meta-Maxim Dec 17, 2015
df0c1b7
submit CSRF token on logout
smcgregor Dec 20, 2015
d95f300
make use of Minitest explicit
smcgregor Dec 20, 2015
2ca107d
build HTML for web
smcgregor Dec 20, 2015
dfccb89
switched sauce chrome version to beta because dev loses connection
smcgregor Dec 20, 2015
3ce181e
switched Karma's sauce chrome version to beta because dev loses conne…
smcgregor Dec 20, 2015
0437f7b
Merge branch 'develop' of https://github.com/MaxBorsch/privly-applica…
smcgregor Dec 21, 2015
7317c03
integrated new metadata block with javascript
smcgregor Dec 21, 2015
5986677
Merge branch 'develop' into feature-rails-4.2
smcgregor Dec 21, 2015
57766bf
built HTML for web
smcgregor Dec 21, 2015
511900a
Merge pull request #309 from privly/feature-rails-4.2
smcgregor Dec 21, 2015
75a18c6
Update
opg7371 Jan 10, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
*.swp
.idea
*~
test/sauce.json
test/node_modules/*
test/coverage
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ env:
- secure: HAqHN7zeSbDR7BP0pn6qH6ODOwuMD7eIR9t4h1gHkRy6WAQBrhQb1+kTzkGbhfKB1mftxN/0ERTK6xv+iBj4QylqOOXChnuthuHMZiAuwPJncj8FYE4LHt2Eh48+HnzSQUgzjxv11hvkLz4utaj0J4fub2q/tWzoAXucA13UGQU=
script:
- cd test
- "if [ ${TRAVIS_PULL_REQUEST} = 'false' ]; then ./run_each.sh karma.conf-ci.js; fi"
- export BROWSERS_TO_TEST=Chrome,Firefox,Safari # test all the browsers
- "if [ ${TRAVIS_PULL_REQUEST} = 'false' ]; then ./run_each.sh karma.conf-ci.js; fi" # Run the unit tests
- "if [ ${TRAVIS_PULL_REQUEST} = 'false' ]; then ./node_modules/.bin/lcov-result-merger 'coverage/*.lcov' 'coverage/combined.lcov'; fi" # Merge the coverage results
- "cd .."
# Move the lcov.info file to the root
- "find . -name lcov.info -exec mv {} . \\;"
# Send the file to CodeClimate
- "if [ \"$CODECLIMATE_REPO_TOKEN\" ]; then codeclimate < lcov.info; fi"
- "if [ ${TRAVIS_PULL_REQUEST} = 'false' ]; then cat ./test/coverage/combined.lcov | ./test/node_modules/coveralls/bin/coveralls.js; fi" # Send the coverage results to coveralls
before_script:
- "cd test/ && npm install -g karma-cli && npm install && cd .."
- npm install -g codeclimate-test-reporter
addons:
sauce_connect: true
60 changes: 36 additions & 24 deletions Help/content_server.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,32 @@
This was likely rendered from the Privly-application templating system
See: https://github.com/privly/privly-applications/pull/19
-->
<title>
Help
</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<!-- Top Styles -->
<link class="top" href="../vendor/bootstrap/css/bootstrap.min.css" media="screen" rel="stylesheet"/>
<link class="top" href="../shared/css/top/top.css" rel="stylesheet"/>
<!-- Common Styles -->
<link href="../shared/css/common.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="../shared/css/tooltip.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="../shared/javascripts/meta_loader.js" type="text/javascript">
</script>
<script src="../shared/javascripts/parameters.js" type="text/javascript">
</script>
<script src="../shared/javascripts/local_storage.js" type="text/javascript">
</script>
<script src="../shared/javascripts/context_messenger.js" type="text/javascript">
</script>
<script src="../shared/javascripts/glyph.js" type="text/javascript">
</script>
<script src="../shared/javascripts/storage.js" type="text/javascript">
</script>
<script src="../shared/javascripts/options.js" type="text/javascript">
</script>
<script src="../shared/javascripts/network_service.js" type="text/javascript">
</script>
<script src="../shared/javascripts/extension_integration.js" type="text/javascript">
<title>
Help
</title>
<link class="top" href="../vendor/bootstrap/css/bootstrap.min.css" media="screen" rel="stylesheet"/>
<link class="top" href="../shared/css/top/top.css" rel="stylesheet"/>
<script src="../shared/javascripts/event_emitter.js" type="text/javascript">
</script>
<script src="../shared/javascripts/local_storage.js" type="text/javascript">
<script src="../shared/javascripts/viewAdapters/new.js" type="text/javascript">
</script>
<script src="../vendor/jquery.min.js" type="text/javascript">
</script>
Expand Down Expand Up @@ -59,23 +66,23 @@
<ul class="nav navbar-nav">
<li class="logged_in_nav" style="display:none;">
<a href="../History/new.html">
History
<span class="glyphicon glyphicon-list-alt">
</span>
History
</a>
</li>
<li class="logged_out_nav">
<a class="login_url" href="../Login/new.html">
Login
<span class="glyphicon glyphicon-log-in">
</span>
Login
</a>
</li>
<li class="dropdown logged_in_nav" style="display:none;">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
New Link
<b class="caret">
</b>
New Link
</a>
<ul class="dropdown-menu">
<li class="dropdown-header">
Expand Down Expand Up @@ -106,9 +113,9 @@
</li>
<li class="logged_in_nav" style="display:none;">
<a class="logout_url" href="#" id="logout_link">
Logout
<span class="glyphicon glyphicon-log-out">
</span>
Logout
</a>
</li>
</ul>
Expand All @@ -119,32 +126,35 @@
<div class="container">
<div class="row">
<div class="col-lg-12">
<p class="flash notice" id="messages">
<p class="alert alert-info" id="messages">
Pending server check. The application is checking its connection
with the remote server.
</p>
<p class="flash notice" id="login_message" style="display:none;">
<p class="alert alert-warning" id="login_message" style="display:none;">
You are not currently signed into your content server. Please
<a class="login_url btn btn-default" href="../Login/new.html">
login
</a>
</p>
<div id="copy_message" style="display:none;">
<p class="flash notice">
Copy and paste the address found below to any website
you want to share this information through.
</p>
<p class="flash notice">
<p class="alert alert-warning">
<span id="step1_message">
<strong>
Step 1.
</strong>
Copy and paste the address found below to any website
you want to share this information through.
</span>
<span class="glyphicon glyphicon-link">
</span>
<span class="privlyUrl" data-privly-exclude="true">
</span>
</p>
<p class="flash notice open-app-button" style="display:none;">
<p class="alert alert-warning open-app-button" style="display:none;">
<strong>
Now copy/paste
Step 2.
</strong>
the highlighted address anywhere you want to share it. You can also
Copy/paste the highlighted address anywhere you want to share it. You can also
<a class="btn btn-default" href="" id="local_address" target="_blank">
open the link
</a>
Expand Down Expand Up @@ -202,6 +212,8 @@ <h2>
control. If you are not inclined to self-host, it is possible to host your content with other service providers. Remember that trusting others to host your data could be perilous to your privacy if you use an application that doesn't encrypt your data.
</li>
</ul>
<p>
</p>
<p>
Your content server may have information we can't display here. To view information presented by your content server you can visit your content server.
<br/>
Expand Down
38 changes: 16 additions & 22 deletions Help/js/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ var callbacks = {
pendingLogin: function() {

// Save to local storage the app to redirect to after succesful log in
ls.setItem("Login:redirect_to_app", window.location.href);

// Set the nav bar to the proper domain
privlyNetworkService.initializeNavigation();
Privly.storage.set("Login:redirect_to_app", window.location.href);

var domain = privlyNetworkService.contentServerDomain();
$("#current_content_server").text(domain.split("/")[2]);
Expand All @@ -35,14 +32,6 @@ var callbacks = {
$(".chrome_options_link").show();
}

// Add listeners to show loading animation while making ajax requests
$(document).ajaxStart(function() {
$('#loadingDiv').show();
});
$(document).ajaxStop(function() {
$('#loadingDiv').hide();
});

privlyNetworkService.initPrivlyService(
privlyNetworkService.contentServerDomain(),
callbacks.pendingPost,
Expand Down Expand Up @@ -77,14 +66,19 @@ var callbacks = {

};

// Initialize the application
document.addEventListener('DOMContentLoaded',
function() {

// Don't start the script if it is running in a Headless
// browser
if( document.getElementById("logout_link") ) {
callbacks.pendingLogin();
}
document.addEventListener('DOMContentLoaded', function () {
// Don't start the script if it is running in a Headless
// browser
if (!document.getElementById("logout_link")) {
return;
}
);

var adapter = new Privly.app.viewAdapter.New({});

adapter.on('beforePendingLogin', function () {
callbacks.pendingLogin();
return true;
});

adapter.start();
});
64 changes: 37 additions & 27 deletions Help/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,32 @@
This was likely rendered from the Privly-application templating system
See: https://github.com/privly/privly-applications/pull/19
-->
<title>
Help
</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<!-- Top Styles -->
<link class="top" href="../vendor/bootstrap/css/bootstrap.min.css" media="screen" rel="stylesheet"/>
<link class="top" href="../shared/css/top/top.css" rel="stylesheet"/>
<!-- Common Styles -->
<link href="../shared/css/common.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="../shared/css/tooltip.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="../shared/javascripts/meta_loader.js" type="text/javascript">
</script>
<script src="../shared/javascripts/parameters.js" type="text/javascript">
</script>
<script src="../shared/javascripts/local_storage.js" type="text/javascript">
</script>
<script src="../shared/javascripts/context_messenger.js" type="text/javascript">
</script>
<script src="../shared/javascripts/glyph.js" type="text/javascript">
</script>
<script src="../shared/javascripts/storage.js" type="text/javascript">
</script>
<script src="../shared/javascripts/options.js" type="text/javascript">
</script>
<script src="../shared/javascripts/network_service.js" type="text/javascript">
</script>
<script src="../shared/javascripts/extension_integration.js" type="text/javascript">
<title>
Help
</title>
<link class="top" href="../vendor/bootstrap/css/bootstrap.min.css" media="screen" rel="stylesheet"/>
<link class="top" href="../shared/css/top/top.css" rel="stylesheet"/>
<script src="../shared/javascripts/event_emitter.js" type="text/javascript">
</script>
<script src="../shared/javascripts/local_storage.js" type="text/javascript">
<script src="../shared/javascripts/viewAdapters/new.js" type="text/javascript">
</script>
<script src="../vendor/jquery.min.js" type="text/javascript">
</script>
Expand Down Expand Up @@ -59,23 +66,23 @@
<ul class="nav navbar-nav">
<li class="logged_in_nav" style="display:none;">
<a href="../History/new.html">
History
<span class="glyphicon glyphicon-list-alt">
</span>
History
</a>
</li>
<li class="logged_out_nav">
<a class="login_url" href="../Login/new.html">
Login
<span class="glyphicon glyphicon-log-in">
</span>
Login
</a>
</li>
<li class="active dropdown logged_in_nav" style="display:none;">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
New Link
<b class="caret">
</b>
New Link
</a>
<ul class="dropdown-menu">
<li class="dropdown-header">
Expand Down Expand Up @@ -106,9 +113,9 @@
</li>
<li class="logged_in_nav" style="display:none;">
<a class="logout_url" href="#" id="logout_link">
Logout
<span class="glyphicon glyphicon-log-out">
</span>
Logout
</a>
</li>
</ul>
Expand All @@ -119,32 +126,35 @@
<div class="container">
<div class="row">
<div class="col-lg-12">
<p class="flash notice" id="messages">
<p class="alert alert-info" id="messages">
Pending server check. The application is checking its connection
with the remote server.
</p>
<p class="flash notice" id="login_message" style="display:none;">
<p class="alert alert-warning" id="login_message" style="display:none;">
You are not currently signed into your content server. Please
<a class="login_url btn btn-default" href="../Login/new.html">
login
</a>
</p>
<div id="copy_message" style="display:none;">
<p class="flash notice">
Copy and paste the address found below to any website
you want to share this information through.
</p>
<p class="flash notice">
<p class="alert alert-warning">
<span id="step1_message">
<strong>
Step 1.
</strong>
Copy and paste the address found below to any website
you want to share this information through.
</span>
<span class="glyphicon glyphicon-link">
</span>
<span class="privlyUrl" data-privly-exclude="true">
</span>
</p>
<p class="flash notice open-app-button" style="display:none;">
<p class="alert alert-warning open-app-button" style="display:none;">
<strong>
Now copy/paste
Step 2.
</strong>
the highlighted address anywhere you want to share it. You can also
Copy/paste the highlighted address anywhere you want to share it. You can also
<a class="btn btn-default" href="" id="local_address" target="_blank">
open the link
</a>
Expand Down Expand Up @@ -219,10 +229,10 @@ <h1>
<strong>
<span class="glyphicon glyphicon-eye-open">
</span>
Experts Only:
Indie Hosts Only:
</strong>
Other applications built on Privly provide privacy only in special
circumstances and should be viewed as "experts only."
These applications provide privacy if you host your own content server.
If you don't know what that means, you should not use these apps.
</p>
<div class="col-md-3">
<form action="../PlainPost/new.html" style="display:inline;">
Expand Down
Loading