├── .travis.yml
├── LICENSE
├── README.md
├── build.gradle
├── demo.png
├── diagram.png
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── src
├── SecureDiary
├── css
│ ├── alertify.min.css
│ ├── alertify.rtl.min.css
│ ├── bootstrap.css
│ ├── bootstrap.min.css
│ ├── bootstrap.rtl.min.css
│ ├── default.css
│ ├── default.min.css
│ ├── default.rtl.min.css
│ ├── semantic.css
│ ├── semantic.min.css
│ ├── semantic.rtl.min.css
│ └── styles.css
├── img
│ ├── i_add.png
│ ├── i_delete.png
│ ├── i_edit.png
│ ├── i_offline.png
│ ├── i_online.png
│ ├── refresh.png
│ ├── register.png
│ └── remove.png
├── index.html
├── js
│ ├── alertify.min.js
│ ├── html5.js
│ ├── jquery-1.7.2.min.js
│ ├── jquery.touchSwipe.js
│ ├── require.js
│ └── script.js
└── screenshots
│ ├── screenshot1.png
│ ├── screenshot2.png
│ ├── screenshot3.png
│ └── screenshot4.png
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── main
├── java
│ └── com
│ │ └── github
│ │ └── maxamel
│ │ └── server
│ │ ├── EnumUtils.java
│ │ ├── IdentifierType.java
│ │ ├── ZKAuthApplication.java
│ │ ├── config
│ │ ├── KafkaConfig.java
│ │ └── LoggerConfig.java
│ │ ├── domain
│ │ ├── model
│ │ │ ├── AuditableEntity.java
│ │ │ ├── Constants.java
│ │ │ ├── Diary.java
│ │ │ ├── User.java
│ │ │ ├── constraints
│ │ │ │ ├── DataUniqueConstraint.java
│ │ │ │ ├── UserEntryNameUnique.java
│ │ │ │ └── UserNameUnique.java
│ │ │ └── types
│ │ │ │ └── SessionStatus.java
│ │ └── repositories
│ │ │ ├── DiaryRepository.java
│ │ │ └── UserRepository.java
│ │ ├── services
│ │ ├── DiaryService.java
│ │ ├── KafkaAgentService.java
│ │ ├── ScheduleTaskService.java
│ │ ├── UserService.java
│ │ ├── impl
│ │ │ ├── DiaryServiceImpl.java
│ │ │ ├── KafkaAgentServiceImpl.java
│ │ │ ├── ScheduleTaskServiceImpl.java
│ │ │ └── UserServiceImpl.java
│ │ └── mapping
│ │ │ └── MapperConfiguration.java
│ │ └── web
│ │ ├── controllers
│ │ ├── DiaryController.java
│ │ └── UserController.java
│ │ ├── dtos
│ │ ├── ChallengeDto.java
│ │ ├── DiaryDto.java
│ │ ├── ErrorCodes.java
│ │ ├── UserDto.java
│ │ ├── audit
│ │ │ └── AuditableDto.java
│ │ └── errors
│ │ │ ├── ErrorDto.java
│ │ │ ├── HttpMediaTypeErrorDto.java
│ │ │ ├── HttpRequestMethodErrorDto.java
│ │ │ └── ValidationErrorDto.java
│ │ └── handlers
│ │ ├── DataExceptionHandlers.java
│ │ ├── GlobalErrorHandlers.java
│ │ └── ValidationErrorHandlers.java
└── resources
│ ├── META-INF
│ └── spring-devtools.properties
│ ├── application.yml
│ ├── banner.txt
│ ├── bootstrap.yml
│ ├── db
│ └── migration
│ │ └── V1__init.sql
│ └── plantuml
└── test
└── java
└── com
└── github
└── maxamel
└── server
├── config
└── JsonConfiguration.java
├── domain
├── DiaryRepositoryTest.java
└── UserRepositoryTest.java
├── services
├── DiaryServiceTest.java
├── KafkaAgentServiceTest.java
├── ScheduleTaskServiceTest.java
├── UserServiceTest.java
└── mapping
│ ├── MappingBasePackage.java
│ ├── MappingValidateTest.java
│ └── UserMappingTest.java
└── web
├── DiaryControllerTest.java
└── UserControllerTest.java
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: java
2 | sudo: false
3 | install: true
4 |
5 | addons:
6 | sonarcloud:
7 | organization: "maxamel-github"
8 | token: $SONAR_TOKEN
9 |
10 | jdk:
11 | - oraclejdk8
12 | - openjdk8
13 |
14 | script:
15 | - ./gradlew sonarqube
16 |
17 | cache:
18 | directories:
19 | - '$HOME/.m2/repository'
20 | - '$HOME/.sonar/cache'
21 | - '$HOME/.gradle'
22 | - '.gradle'
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Max Amelchenko
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://travis-ci.org/maxamel/SpringZKAuth)
2 | [](https://sonarcloud.io/api/project_badges/measure?project=com.github.maxamel%3ASpringZKAuth&metric=coverage)
3 | [](https://snyk.io/test/github/maxamel/SpringZKAuth)
4 |
5 | [](https://sonarcloud.io/api/project_badges/quality_gate?project=com.github.maxamel:SpringZKAuth)
6 |
7 | # SpringZKAuth : A zero-knowledge authentication application
8 |
9 | A Spring project utilizing zero-knowledge password proof for secure and private authentication. Users are continuously authenticated throughout their session using rotating session IDs.
10 |
11 | # Overview
12 |
13 | [Zero-knowledge](https://en.wikipedia.org/wiki/Zero-knowledge_proof) is a cryptographic method one can use when required to prove knowledge of a certain secret without revealing anything about the secret itself.
14 | This method is utilized in this project to provide a zero-knowledge password proof (ZKPP) authentication mechanism, meaning proving the knowledge of a password without revealing anything about it. Traditionally, when a user logs into a system, he transmits his user and password over the (possibly encrypted) network. Various security methods exist in order to ensure this password is stored securely, such as hashing, salting, etc.
15 | This project eliminates the need for any of these methods. Specifically, the password of the user is kept completely secret, and is never transmitted over the wire to the server. The server receives only a cryptographic representation (i.e., a one-way function) of the password, that is irreversible and no one can deduce the original password from it. Additionally, the session ID of the user is periodically rotated on the server side (optional). This session ID is also kept secret and the server only transmits a hint via a message broker (e.g., Kafka) about the new session ID. These hints rely on the [discrete logarithm](https://en.wikipedia.org/wiki/Discrete_logarithm) problem, to ensure only the user can compute the necessary information, and no one else. This makes session hijacking practically useless since the session ID is only valid for a very short period of time (configurable).
16 |
17 | # Usage
18 |
19 | The purpose of the project is to provide a POC-level system, and a demonstration of how the concept of zero-knowledge can assist in application security.
20 | If you want to build a RESTful service which provides enhanced security and privacy through ZKPP and continuous authentication, then you can use this project as a starting point.
21 | However, the content to be served by the service is up to you. Currently the guts of the application is just keeping diary entries of users and providing secure, authenticated access to them. You can add your own APIs, DB tables, and all the rest, according to the needs of your own application.
22 |
23 |
24 | # How does it work?
25 |
26 | Let's dive into the nuts and bolts of the cryptographic magic going on behind the scenes.
27 | Firstly, there are two large numbers that are publicly known to everyone. These are the cyclic group generator (g) and a large prime (N). These numbers are carefully picked out, so do not touch them unless you know what you're doing.
28 | When a user wants to register to the system he provides a password as an input (on client-side only) and this password is hashed to produce a unique representation of the password, call it x. The client program then computes (g^x mod N) and sends it to the server-side. Note that neither the server, nor anyone else listening in on the communication can derive x from (g^x mod N). The server saves that information. When the user wants to start consuming APIs, he inputs the password for the user, and waits for a challenge from the server. The server comes up with a large number y, and challenges the user with (g^y mod N). Now both client and server can compute the solution to the challenge. The client by performing ((g^y)^x mod N) and the server by performing ((g^x)^y mod N). Once the server receives the solution from the client he can verify it against his own and grant access if it is correct. From this point on, this solution serves as the session ID for that user. Optionally, you can configure the server to issue a new challenge via a Kafka message broker. These challenges are issued in configurable intervals, and are effective immediately, so all future client requests must contain the new session ID.
29 |
30 | Here is an example of a client registering and then making arbitrary requests.
31 |
32 |
33 |
34 |
35 |
36 | Note that session ID rotating is not described in the diagram, but it is explained further on.
37 |
38 |
39 | # Features
40 |
41 | * Register and remove users
42 | * Write/Edit/Remove diaries per user
43 | * Authentication using zero-knowledge password proof
44 | * Continuous authentication by publishing challenges to Kafka message broker (Optional)
45 | * Configurable session inactivity thresholds
46 | * A client-side GUI application to interact with the system
47 | * No login API, after first password prompt all future authentications are done in the background
48 | * High test coverage
49 | * Automatic scale-up and scale-down of Kafka topics according to active users
50 |
51 | # Prerequisites
52 |
53 | * Java 8 or above
54 |
55 | * NodeJS 5.6.0 or above
56 |
57 | * Confluent Open Source Platform 2.11 (Optional)
58 |
59 | * H2 database
60 |
61 | * Gradle 4.3 or above
62 |
63 |
64 | # Installation
65 |
66 | Assuming you have the above programs installed, follow the below steps to install:
67 |
68 | Clone and build the repository.
69 | ```
70 | git clone https://github.com/maxamel/SpringZKAuth.git
71 | cd SpringZKAuth
72 | gradle clean build
73 | ```
74 |
75 | From the command line install the following modules:
76 | ```javascript
77 | npm install big-integer
78 |
79 | npm install jquery
80 | npm install -g browserify
81 | npm install alertify
82 | ```
83 |
84 | Go to src/SecureDiary/js and run:
85 | ```
86 | browserify script.js -o bundle.js
87 | ```
88 |
89 | If you don't want to use Kafka (for continuous authentication) you need to disable it from src/main/resources/application.yml:
90 | ```
91 | kafka:
92 | enabled: false
93 | ```
94 |
95 | If you want the continuous authentication feature follow the below steps to install [Confluent Platform](https://docs.confluent.io/current/installation/) which comes bundled with Kafka, Zookeeper and a bunch of other useful software. Here are instructions for Ubuntu or CentOS installations:
96 |
97 | ## Ubuntu
98 | Add repository and key:
99 | ```
100 | wget -qO - https://packages.confluent.io/deb/4.0/archive.key | sudo apt-key add -
101 | sudo add-apt-repository "deb [arch=amd64] https://packages.confluent.io/deb/4.0 stable main"
102 | ```
103 | Install and run:
104 | ```
105 | sudo apt-get update && sudo apt-get install confluent-platform-oss-2.11
106 | confluent start
107 | ```
108 |
109 | ## CentOS
110 | Add Package:
111 | ```
112 | sudo rpm --import https://packages.confluent.io/rpm/4.0/archive.key
113 | ```
114 |
115 | Add file named confluent.repo to /etc/yum.repos.d/ with the contents:
116 | ```
117 | [Confluent.dist]
118 | name=Confluent repository (dist)
119 | baseurl=https://packages.confluent.io/rpm/4.0/7
120 | gpgcheck=1
121 | gpgkey=https://packages.confluent.io/rpm/4.0/archive.key
122 | enabled=1
123 |
124 | [Confluent]
125 | name=Confluent repository
126 | baseurl=https://packages.confluent.io/rpm/4.0
127 | gpgcheck=1
128 | gpgkey=https://packages.confluent.io/rpm/4.0/archive.key
129 | enabled=1
130 | ```
131 |
132 | Clean up, install and run:
133 | ```
134 | sudo yum clean all
135 | sudo yum install confluent-platform-oss-2.11
136 | confluent start
137 | ```
138 |
139 | # Configuration
140 |
141 | Open your Kafka server.properties file (usually it's in /etc/kafka/) and make sure the following lines are present:
142 | ```
143 | auto.create.topics.enable=true
144 | num.partitions=1
145 | listeners=PLAINTEXT://YOUR_KAFKA_IP:9092
146 | zookeeper.connect=YOUR_ZOOKEEPER_IP:2181
147 | delete.topic.enable=true
148 | log.retention.ms=60000
149 | ```
150 | Open your kafka-rest.properties file (usually it's in /etc/kafka-rest/) and make sure the following lines are present:
151 | ```
152 | zookeeper.connect=YOUR_ZOOKEEPER_IP:2181
153 | bootstrap.servers=PLAINTEXT://YOUR_KAFKA_IP:9092
154 | ```
155 |
156 | Enable Kafka in src/main/resources/application.yml and fill in the kafka and zookeeper IP:
157 | ```
158 | kafka:
159 | enabled: true
160 | zookeeper:
161 | url: "YOUR_ZOOKEEPER_IP:2181"
162 | broker:
163 | url: "YOUR_KAFKA_IP:9092"
164 | ```
165 | Restart Confluent:
166 | ```
167 | confluent stop
168 | confluent start
169 | ```
170 |
171 | Lastly, you can adjust the inactivity threshold and challenge intervals (in milliseconds) in src/main/resources/application.yml.
172 | The challenge Frequency is only valid if Kafka is enabled.
173 | ```
174 | security:
175 | basic:
176 | enabled: false
177 | session:
178 | inactivityKickOut: 120000
179 | challengeFrequency: 30000
180 | ```
181 | That's it. Open the index.html in src/SecureDiary folder and start writing!
182 |
183 |
184 |
185 |
186 |
187 | # License
188 |
189 | Published under the MIT License. This basically means the software is free and anyone can use it however they wish. No liability or warranty.
190 |
191 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | mavenCentral()
4 | }
5 | dependencies {
6 | classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.9.RELEASE")
7 | }
8 | }
9 |
10 | plugins {
11 | id "org.sonarqube" version "2.5"
12 | }
13 |
14 | apply plugin: 'jacoco'
15 | apply plugin: 'java'
16 | apply plugin: 'pmd'
17 | pmd {
18 | toolVersion='5.5.2'
19 | ruleSets=["java-basic","java-imports","java-strings","java-clone","java-design"]
20 | }
21 | apply plugin: 'findbugs'
22 | findbugs {
23 | sourceSets = [sourceSets.main]
24 | toolVersion = "3.0.1"
25 | }
26 |
27 |
28 | apply plugin: 'eclipse'
29 | apply plugin: 'idea'
30 |
31 | group = 'com.github.maxamel'
32 | version = '0.0.1'
33 |
34 | apply plugin: 'io.spring.dependency-management'
35 | apply plugin: 'org.springframework.boot'
36 |
37 | repositories {
38 | mavenCentral()
39 | maven { url "https://oss.sonatype.org/content/groups/public" }
40 | }
41 |
42 | dependencies {
43 | compile('org.springframework.boot:spring-boot-devtools')
44 | compile('org.springframework.cloud:spring-cloud-starter-config')
45 | compile('org.springframework.boot:spring-boot-starter-actuator')
46 | compile('org.springframework.boot:spring-boot-starter-web')
47 | compile('org.springframework.boot:spring-boot-starter-data-jpa')
48 | compile('org.springframework.boot:spring-boot-starter-security')
49 |
50 | compile ('org.springframework.boot:spring-boot-starter-jdbc')
51 | compile ('org.springframework:spring-context')
52 |
53 | compile('com.github.rozidan:levelog-spring-boot:1.0.0-SNAPSHOT')
54 | compile('com.github.rozidan:modelmapper-spring-boot-starter:1.0.1-SNAPSHOT')
55 | compile('com.github.rozidan:logger-spring-boot:1.0.0-SNAPSHOT')
56 | compile('org.springframework.kafka:spring-kafka')
57 | compile('org.apache.kafka:kafka_2.11:1.0.0'){
58 | exclude group: "org.slf4j"
59 | }
60 | compile('com.101tec:zkclient:0.7'){
61 | exclude group: "org.slf4j"
62 | }
63 | compile('org.springframework.kafka:spring-kafka-test:2.1.2.RELEASE')
64 | compile('org.toile-libre.libe:curl:0.0.13')
65 | compile('org.mockito:mockito-all:1.10.19')
66 |
67 |
68 | compile('io.springfox:springfox-swagger2:2.7.0')
69 | compile('org.flywaydb:flyway-core')
70 |
71 | compileOnly('org.projectlombok:lombok')
72 |
73 | runtime('com.h2database:h2')
74 |
75 | testCompile('org.springframework.boot:spring-boot-starter-test')
76 | }
77 |
78 | sourceCompatibility = JavaVersion.VERSION_1_8
79 |
80 | jar {
81 | manifest {
82 | attributes("Implementation-Title": project.name,
83 | "Implementation-Version": project.version)
84 | }
85 | }
86 |
87 | dependencyManagement {
88 | imports {
89 | mavenBom("org.springframework.cloud:spring-cloud-dependencies:Edgware.RELEASE")
90 | }
91 | dependencies {
92 | dependency 'com.google.guava:guava:23.5-jre'
93 | }
94 | }
95 |
96 |
--------------------------------------------------------------------------------
/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/demo.png
--------------------------------------------------------------------------------
/diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/diagram.png
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Feb 16 18:43:59 IST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn ( ) {
37 | echo "$*"
38 | }
39 |
40 | die ( ) {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save ( ) {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/src/SecureDiary/css/alertify.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dimmer{position:fixed;z-index:1981;top:0;right:0;bottom:0;left:0;padding:0;margin:0;background-color:#252525;opacity:.5}.alertify .ajs-modal{position:fixed;top:0;right:0;left:0;bottom:0;padding:0;overflow-y:auto;z-index:1981}.alertify .ajs-dialog{position:relative;margin:5% auto;min-height:110px;max-width:500px;padding:24px 24px 0 24px;outline:0;background-color:#fff}.alertify .ajs-dialog.ajs-capture:before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;display:block;z-index:1}.alertify .ajs-reset{position:absolute!important;display:inline!important;width:0!important;height:0!important;opacity:0!important}.alertify .ajs-commands{position:absolute;right:4px;margin:-14px 24px 0 0;z-index:2}.alertify .ajs-commands button{display:none;width:10px;height:10px;margin-left:10px;padding:10px;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.alertify .ajs-commands button.ajs-close{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNy8xMy8xNOrZqugAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAh0lEQVQYlY2QsQ0EIQwEB9cBAR1CJUaI/gigDnwR6NBL/7/xWLNrZ2b8EwGotVpr7eOitWa1VjugiNB7R1UPrKrWe0dEAHBbXUqxMQbeewDmnHjvyTm7C3zDwAUd9c63YQdUVdu6EAJzzquz7HXvTiklt+H9DQFYaxFjvDqllFyMkbXWvfpXHjJrWFgdBq/hAAAAAElFTkSuQmCC)}.alertify .ajs-commands button.ajs-maximize{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNy8xMy8xNOrZqugAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAOUlEQVQYlWP8//8/AzGAhYGBgaG4uBiv6t7eXkYmooxjYGAgWiELsvHYFMCcRX2rSXcjoSBiJDbAAeD+EGu+8BZcAAAAAElFTkSuQmCC)}.alertify .ajs-header{margin:-24px;margin-bottom:0;padding:16px 24px;background-color:#fff}.alertify .ajs-body{min-height:56px}.alertify .ajs-body .ajs-content{padding:16px 24px 16px 16px}.alertify .ajs-footer{padding:4px;margin-left:-24px;margin-right:-24px;min-height:43px;background-color:#fff}.alertify .ajs-footer .ajs-buttons.ajs-primary{text-align:right}.alertify .ajs-footer .ajs-buttons.ajs-primary .ajs-button{margin:4px}.alertify .ajs-footer .ajs-buttons.ajs-auxiliary{float:left;clear:none;text-align:left}.alertify .ajs-footer .ajs-buttons.ajs-auxiliary .ajs-button{margin:4px}.alertify .ajs-footer .ajs-buttons .ajs-button{min-width:88px;min-height:35px}.alertify .ajs-handle{position:absolute;display:none;width:10px;height:10px;right:0;bottom:0;z-index:1;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNy8xMS8xNEDQYmMAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAQ0lEQVQYlaXNMQoAIAxD0dT7H657l0KX3iJuUlBUNOsPPCGJm7VDp6ryeMxMuDsAQH7owW3pyn3RS26iKxERMLN3ugOaAkaL3sWVigAAAABJRU5ErkJggg==);-webkit-transform:scaleX(1);transform:scaleX(1);cursor:se-resize}.alertify.ajs-no-overflow .ajs-body .ajs-content{overflow:hidden!important}.alertify.ajs-no-padding.ajs-maximized .ajs-body .ajs-content{left:0;right:0;padding:0}.alertify.ajs-no-padding:not(.ajs-maximized) .ajs-body{margin-left:-24px;margin-right:-24px}.alertify.ajs-no-padding:not(.ajs-maximized) .ajs-body .ajs-content{padding:0}.alertify.ajs-no-padding.ajs-resizable .ajs-body .ajs-content{left:0;right:0}.alertify.ajs-maximizable .ajs-commands button.ajs-maximize,.alertify.ajs-maximizable .ajs-commands button.ajs-restore{display:inline-block}.alertify.ajs-closable .ajs-commands button.ajs-close{display:inline-block}.alertify.ajs-maximized .ajs-dialog{width:100%!important;height:100%!important;max-width:none!important;margin:0 auto!important;top:0!important;left:0!important}.alertify.ajs-maximized.ajs-modeless .ajs-modal{position:fixed!important;min-height:100%!important;max-height:none!important;margin:0!important}.alertify.ajs-maximized .ajs-commands button.ajs-maximize{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNy8xMy8xNOrZqugAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAASklEQVQYlZWQ0QkAMQhDtXRincOZX78KVtrDCwgqJNEoIB3MPLj7lRUROlpyVXGzby6zWuY+kz6tj5sBMTMAyVV3/595RbOh3cAXsww1raeiOcoAAAAASUVORK5CYII=)}.alertify.ajs-maximized .ajs-dialog,.alertify.ajs-resizable .ajs-dialog{padding:0}.alertify.ajs-maximized .ajs-commands,.alertify.ajs-resizable .ajs-commands{margin:14px 24px 0 0}.alertify.ajs-maximized .ajs-header,.alertify.ajs-resizable .ajs-header{position:absolute;top:0;left:0;right:0;margin:0;padding:16px 24px}.alertify.ajs-maximized .ajs-body,.alertify.ajs-resizable .ajs-body{min-height:224px;display:inline-block}.alertify.ajs-maximized .ajs-body .ajs-content,.alertify.ajs-resizable .ajs-body .ajs-content{position:absolute;top:50px;right:24px;bottom:50px;left:24px;overflow:auto}.alertify.ajs-maximized .ajs-footer,.alertify.ajs-resizable .ajs-footer{position:absolute;left:0;right:0;bottom:0;margin:0}.alertify.ajs-resizable:not(.ajs-maximized) .ajs-dialog{min-width:548px}.alertify.ajs-resizable:not(.ajs-maximized) .ajs-handle{display:block}.alertify.ajs-movable:not(.ajs-maximized) .ajs-header{cursor:move}.alertify.ajs-modeless .ajs-dimmer,.alertify.ajs-modeless .ajs-reset{display:none}.alertify.ajs-modeless .ajs-modal{overflow:visible;max-width:none;max-height:0}.alertify.ajs-modeless.ajs-pinnable .ajs-commands button.ajs-pin{display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNy8xMy8xNOrZqugAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAQklEQVQYlcWPMQ4AIAwCqU9u38GbcbHRWN1MvKQDhQFMEpKImGJA0gCgnYw0V0rwxseg5erT4oSkQVI5d9f+e9+xA0NbLpWfitPXAAAAAElFTkSuQmCC)}.alertify.ajs-modeless.ajs-unpinned .ajs-modal{position:absolute}.alertify.ajs-modeless.ajs-unpinned .ajs-commands button.ajs-pin{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNy8xMy8xNOrZqugAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAO0lEQVQYlWP8//8/AzGAiShV6AqLi4txGs+CLoBLMYbC3t5eRmyaWfBZhwwYkX2NTxPRvibKjRhW4wMAhxkYGbLu3pEAAAAASUVORK5CYII=)}.alertify.ajs-modeless:not(.ajs-unpinned) .ajs-body{max-height:500px;overflow:auto}.alertify.ajs-basic .ajs-header{opacity:0}.alertify.ajs-basic .ajs-footer{visibility:hidden}.alertify.ajs-frameless .ajs-header{position:absolute;top:0;left:0;right:0;min-height:60px;margin:0;padding:0;opacity:0;z-index:1}.alertify.ajs-frameless .ajs-footer{display:none}.alertify.ajs-frameless .ajs-body .ajs-content{position:absolute;top:0;right:0;bottom:0;left:0}.alertify.ajs-frameless:not(.ajs-resizable) .ajs-dialog{padding-top:0}.alertify.ajs-frameless:not(.ajs-resizable) .ajs-dialog .ajs-commands{margin-top:0}.ajs-no-overflow{overflow:hidden!important;outline:0}.ajs-no-overflow.ajs-fixed{position:fixed;top:0;right:0;bottom:0;left:0;overflow-y:scroll!important}.ajs-no-selection,.ajs-no-selection *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (max-width:568px){.alertify .ajs-dialog{min-width:150px}.alertify:not(.ajs-maximized) .ajs-modal{padding:0 5%}.alertify:not(.ajs-maximized).ajs-resizable .ajs-dialog{min-width:initial;min-width:auto}}@-moz-document url-prefix(){.alertify button:focus{outline:1px dotted #3593d2}}.alertify .ajs-dimmer,.alertify .ajs-modal{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition-property:opacity,visibility;transition-property:opacity,visibility;-webkit-transition-timing-function:linear;transition-timing-function:linear;-webkit-transition-duration:250ms;transition-duration:250ms}.alertify.ajs-hidden .ajs-dimmer,.alertify.ajs-hidden .ajs-modal{visibility:hidden;opacity:0}.alertify.ajs-in:not(.ajs-hidden) .ajs-dialog{-webkit-animation-duration:.5s;animation-duration:.5s}.alertify.ajs-out.ajs-hidden .ajs-dialog{-webkit-animation-duration:250ms;animation-duration:250ms}.alertify .ajs-dialog.ajs-shake{-webkit-animation-name:ajs-shake;animation-name:ajs-shake;-webkit-animation-duration:.1s;animation-duration:.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes ajs-shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes ajs-shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.alertify.ajs-slide.ajs-in:not(.ajs-hidden) .ajs-dialog{-webkit-animation-name:ajs-slideIn;animation-name:ajs-slideIn;-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1.275);animation-timing-function:cubic-bezier(.175,.885,.32,1.275)}.alertify.ajs-slide.ajs-out.ajs-hidden .ajs-dialog{-webkit-animation-name:ajs-slideOut;animation-name:ajs-slideOut;-webkit-animation-timing-function:cubic-bezier(.6,-.28,.735,.045);animation-timing-function:cubic-bezier(.6,-.28,.735,.045)}.alertify.ajs-zoom.ajs-in:not(.ajs-hidden) .ajs-dialog{-webkit-animation-name:ajs-zoomIn;animation-name:ajs-zoomIn}.alertify.ajs-zoom.ajs-out.ajs-hidden .ajs-dialog{-webkit-animation-name:ajs-zoomOut;animation-name:ajs-zoomOut}.alertify.ajs-fade.ajs-in:not(.ajs-hidden) .ajs-dialog{-webkit-animation-name:ajs-fadeIn;animation-name:ajs-fadeIn}.alertify.ajs-fade.ajs-out.ajs-hidden .ajs-dialog{-webkit-animation-name:ajs-fadeOut;animation-name:ajs-fadeOut}.alertify.ajs-pulse.ajs-in:not(.ajs-hidden) .ajs-dialog{-webkit-animation-name:ajs-pulseIn;animation-name:ajs-pulseIn}.alertify.ajs-pulse.ajs-out.ajs-hidden .ajs-dialog{-webkit-animation-name:ajs-pulseOut;animation-name:ajs-pulseOut}.alertify.ajs-flipx.ajs-in:not(.ajs-hidden) .ajs-dialog{-webkit-animation-name:ajs-flipInX;animation-name:ajs-flipInX}.alertify.ajs-flipx.ajs-out.ajs-hidden .ajs-dialog{-webkit-animation-name:ajs-flipOutX;animation-name:ajs-flipOutX}.alertify.ajs-flipy.ajs-in:not(.ajs-hidden) .ajs-dialog{-webkit-animation-name:ajs-flipInY;animation-name:ajs-flipInY}.alertify.ajs-flipy.ajs-out.ajs-hidden .ajs-dialog{-webkit-animation-name:ajs-flipOutY;animation-name:ajs-flipOutY}@-webkit-keyframes ajs-pulseIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes ajs-pulseIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@-webkit-keyframes ajs-pulseOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes ajs-pulseOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@-webkit-keyframes ajs-zoomIn{0%{opacity:0;-webkit-transform:scale3d(.25,.25,.25);transform:scale3d(.25,.25,.25)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes ajs-zoomIn{0%{opacity:0;-webkit-transform:scale3d(.25,.25,.25);transform:scale3d(.25,.25,.25)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@-webkit-keyframes ajs-zoomOut{0%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}100%{opacity:0;-webkit-transform:scale3d(.25,.25,.25);transform:scale3d(.25,.25,.25)}}@keyframes ajs-zoomOut{0%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}100%{opacity:0;-webkit-transform:scale3d(.25,.25,.25);transform:scale3d(.25,.25,.25)}}@-webkit-keyframes ajs-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes ajs-fadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes ajs-fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes ajs-fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes ajs-flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes ajs-flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@-webkit-keyframes ajs-flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}@keyframes ajs-flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}@-webkit-keyframes ajs-flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes ajs-flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@-webkit-keyframes ajs-flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}@keyframes ajs-flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}@-webkit-keyframes ajs-slideIn{0%{margin-top:-100%}100%{margin-top:5%}}@keyframes ajs-slideIn{0%{margin-top:-100%}100%{margin-top:5%}}@-webkit-keyframes ajs-slideOut{0%{margin-top:5%}100%{margin-top:-100%}}@keyframes ajs-slideOut{0%{margin-top:5%}100%{margin-top:-100%}}.alertify-notifier{position:fixed;width:0;overflow:visible;z-index:1982;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.alertify-notifier .ajs-message{position:relative;width:260px;max-height:0;padding:0;opacity:0;margin:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-transition-timing-function:linear;transition-timing-function:linear}.alertify-notifier .ajs-message.ajs-visible{-webkit-transition-duration:.5s;transition-duration:.5s;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.275);transition-timing-function:cubic-bezier(.175,.885,.32,1.275);opacity:1;max-height:100%;padding:15px;margin-top:10px}.alertify-notifier .ajs-message.ajs-success{background:rgba(91,189,114,.95)}.alertify-notifier .ajs-message.ajs-error{background:rgba(217,92,92,.95)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95)}.alertify-notifier .ajs-message .ajs-close{position:absolute;top:0;right:0;width:16px;height:16px;cursor:pointer;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAABGdBTUEAALGPC/xhBQAAAFBJREFUGBl1j0EKADEIA+ve/P9f9bh1hEihNBfjVCO1v7RKVqJK4h8gM5cAPR42AkQEpSXPwMTyoi13n5N9YqJehm3Fnr7nL1D0ZEbD5OubGyC7a9gx+9eNAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:center center;background-color:rgba(0,0,0,.5);border-top-right-radius:2px}.alertify-notifier.ajs-top{top:10px}.alertify-notifier.ajs-bottom{bottom:10px}.alertify-notifier.ajs-right{right:10px}.alertify-notifier.ajs-right .ajs-message{right:-320px}.alertify-notifier.ajs-right .ajs-message.ajs-visible{right:290px}.alertify-notifier.ajs-left{left:10px}.alertify-notifier.ajs-left .ajs-message{left:-300px}.alertify-notifier.ajs-left .ajs-message.ajs-visible{left:0}.alertify-notifier.ajs-center{left:50%}.alertify-notifier.ajs-center .ajs-message{-webkit-transform:translateX(-50%);transform:translateX(-50%)}.alertify-notifier.ajs-center .ajs-message.ajs-visible{left:50%;-webkit-transition-timing-function:cubic-bezier(.57,.43,.1,.65);transition-timing-function:cubic-bezier(.57,.43,.1,.65)}.alertify-notifier.ajs-center.ajs-top .ajs-message{top:-300px}.alertify-notifier.ajs-center.ajs-top .ajs-message.ajs-visible{top:0}.alertify-notifier.ajs-center.ajs-bottom .ajs-message{bottom:-300px}.alertify-notifier.ajs-center.ajs-bottom .ajs-message.ajs-visible{bottom:0}
--------------------------------------------------------------------------------
/src/SecureDiary/css/bootstrap.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dimmer {
7 | background-color: #000;
8 | opacity: .5;
9 | }
10 | .alertify .ajs-dialog {
11 | max-width: 600px;
12 | min-height: 122px;
13 | background-color: #fff;
14 | border: 1px solid rgba(0, 0, 0, 0.2);
15 | -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
16 | box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
17 | border-radius: 6px;
18 | }
19 | .alertify .ajs-header {
20 | color: #333;
21 | border-bottom: 1px solid #e5e5e5;
22 | border-radius: 6px 6px 0 0;
23 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
24 | font-size: 18px;
25 | }
26 | .alertify .ajs-body {
27 | font-family: 'Roboto', sans-serif;
28 | color: black;
29 | }
30 | .alertify.ajs-resizable .ajs-content,
31 | .alertify.ajs-maximized:not(.ajs-resizable) .ajs-content {
32 | top: 58px;
33 | bottom: 68px;
34 | }
35 | .alertify .ajs-footer {
36 | background-color: #fff;
37 | padding: 15px;
38 | border-top: 1px solid #e5e5e5;
39 | border-radius: 0 0 6px 6px;
40 | }
41 | .alertify-notifier .ajs-message {
42 | background: rgba(255, 255, 255, 0.95);
43 | color: #000;
44 | text-align: center;
45 | border: solid 1px #ddd;
46 | border-radius: 2px;
47 | }
48 | .alertify-notifier .ajs-message.ajs-success {
49 | color: #fff;
50 | background: rgba(91, 189, 114, 0.95);
51 | text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
52 | }
53 | .alertify-notifier .ajs-message.ajs-error {
54 | color: #fff;
55 | background: rgba(217, 92, 92, 0.95);
56 | text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
57 | }
58 | .alertify-notifier .ajs-message.ajs-warning {
59 | background: rgba(252, 248, 215, 0.95);
60 | border-color: #999;
61 | }
62 |
--------------------------------------------------------------------------------
/src/SecureDiary/css/bootstrap.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dimmer{background-color:#000;opacity:.5}.alertify .ajs-dialog{max-width:600px;min-height:122px;background-color:#fff;border:1px solid rgba(0,0,0,.2);-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5);border-radius:6px}.alertify .ajs-header{color:#333;border-bottom:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:18px}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#000}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:58px;bottom:68px}.alertify .ajs-footer{background-color:#fff;padding:15px;border-top:1px solid #e5e5e5;border-radius:0 0 6px 6px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:solid 1px #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
--------------------------------------------------------------------------------
/src/SecureDiary/css/bootstrap.rtl.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dimmer{background-color:#000;opacity:.5}.alertify .ajs-dialog{max-width:600px;min-height:122px;background-color:#fff;border:1px solid rgba(0,0,0,.2);-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5);border-radius:6px}.alertify .ajs-header{color:#333;border-bottom:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:18px}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#000}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:58px;bottom:68px}.alertify .ajs-footer{background-color:#fff;padding:15px;border-top:1px solid #e5e5e5;border-radius:0 0 6px 6px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:solid 1px #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
--------------------------------------------------------------------------------
/src/SecureDiary/css/default.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dialog {
7 | background-color: white;
8 | -webkit-box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.25);
9 | box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.25);
10 | border-radius: 2px;
11 | }
12 | .alertify .ajs-header {
13 | color: black;
14 | font-weight: bold;
15 | background: #fafafa;
16 | border-bottom: #eee 1px solid;
17 | border-radius: 2px 2px 0 0;
18 | }
19 | .alertify .ajs-body {
20 | color: black;
21 | }
22 | .alertify .ajs-body .ajs-content .ajs-input {
23 | display: block;
24 | width: 100%;
25 | padding: 8px;
26 | margin: 4px;
27 | border-radius: 2px;
28 | border: 1px solid #CCC;
29 | }
30 | .alertify .ajs-body .ajs-content p {
31 | margin: 0;
32 | }
33 | .alertify .ajs-footer {
34 | background: #fbfbfb;
35 | border-top: #eee 1px solid;
36 | border-radius: 0 0 2px 2px;
37 | }
38 | .alertify .ajs-footer .ajs-buttons .ajs-button {
39 | background-color: transparent;
40 | color: #000;
41 | border: 0;
42 | font-size: 14px;
43 | font-weight: bold;
44 | text-transform: uppercase;
45 | }
46 | .alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok {
47 | color: #3593D2;
48 | }
49 | .alertify-notifier .ajs-message {
50 | background: rgba(255, 255, 255, 0.95);
51 | color: #000;
52 | text-align: center;
53 | border: solid 1px #ddd;
54 | border-radius: 2px;
55 | }
56 | .alertify-notifier .ajs-message.ajs-success {
57 | color: #fff;
58 | background: rgba(91, 189, 114, 0.95);
59 | text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
60 | }
61 | .alertify-notifier .ajs-message.ajs-error {
62 | color: #fff;
63 | background: rgba(217, 92, 92, 0.95);
64 | text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
65 | }
66 | .alertify-notifier .ajs-message.ajs-warning {
67 | background: rgba(252, 248, 215, 0.95);
68 | border-color: #999;
69 | }
70 |
--------------------------------------------------------------------------------
/src/SecureDiary/css/default.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dialog{background-color:#fff;-webkit-box-shadow:0 15px 20px 0 rgba(0,0,0,.25);box-shadow:0 15px 20px 0 rgba(0,0,0,.25);border-radius:2px}.alertify .ajs-header{color:#000;font-weight:700;background:#fafafa;border-bottom:#eee 1px solid;border-radius:2px 2px 0 0}.alertify .ajs-body{color:#000}.alertify .ajs-body .ajs-content .ajs-input{display:block;width:100%;padding:8px;margin:4px;border-radius:2px;border:1px solid #ccc}.alertify .ajs-body .ajs-content p{margin:0}.alertify .ajs-footer{background:#fbfbfb;border-top:#eee 1px solid;border-radius:0 0 2px 2px}.alertify .ajs-footer .ajs-buttons .ajs-button{background-color:transparent;color:#000;border:0;font-size:14px;font-weight:700;text-transform:uppercase}.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok{color:#3593d2}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:solid 1px #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
--------------------------------------------------------------------------------
/src/SecureDiary/css/default.rtl.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dialog{background-color:#fff;-webkit-box-shadow:0 15px 20px 0 rgba(0,0,0,.25);box-shadow:0 15px 20px 0 rgba(0,0,0,.25);border-radius:2px}.alertify .ajs-header{color:#000;font-weight:700;background:#fafafa;border-bottom:#eee 1px solid;border-radius:2px 2px 0 0}.alertify .ajs-body{color:#000}.alertify .ajs-body .ajs-content .ajs-input{display:block;width:100%;padding:8px;margin:4px;border-radius:2px;border:1px solid #ccc}.alertify .ajs-body .ajs-content p{margin:0}.alertify .ajs-footer{background:#fbfbfb;border-top:#eee 1px solid;border-radius:0 0 2px 2px}.alertify .ajs-footer .ajs-buttons .ajs-button{background-color:transparent;color:#000;border:0;font-size:14px;font-weight:700;text-transform:uppercase}.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok{color:#3593d2}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:solid 1px #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
--------------------------------------------------------------------------------
/src/SecureDiary/css/semantic.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dimmer {
7 | background-color: rgba(0, 0, 0, 0.85);
8 | opacity: 1;
9 | }
10 | .alertify .ajs-dialog {
11 | max-width: 50%;
12 | min-height: 137px;
13 | background-color: #F4F4F4;
14 | border: 1px solid #DDD;
15 | -webkit-box-shadow: none;
16 | box-shadow: none;
17 | border-radius: 5px;
18 | }
19 | .alertify .ajs-header {
20 | padding: 1.5rem 2rem;
21 | border-bottom: none;
22 | border-radius: 5px 5px 0 0;
23 | color: #555;
24 | background-color: #fff;
25 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
26 | font-size: 1.6em;
27 | font-weight: 700;
28 | }
29 | .alertify .ajs-body {
30 | font-family: 'Roboto', sans-serif;
31 | color: #555;
32 | }
33 | .alertify .ajs-body .ajs-content .ajs-input {
34 | width: 100%;
35 | margin: 0;
36 | padding: .65em 1em;
37 | font-size: 1em;
38 | background-color: #FFF;
39 | border: 1px solid rgba(0, 0, 0, 0.15);
40 | outline: 0;
41 | color: rgba(0, 0, 0, 0.7);
42 | border-radius: .3125em;
43 | -webkit-transition: background-color 0.3s ease-out, border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
44 | transition: background-color 0.3s ease-out, border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
45 | transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
46 | transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
47 | -webkit-box-sizing: border-box;
48 | box-sizing: border-box;
49 | }
50 | .alertify .ajs-body .ajs-content .ajs-input:active {
51 | border-color: rgba(0, 0, 0, 0.3);
52 | background-color: #FAFAFA;
53 | }
54 | .alertify .ajs-body .ajs-content .ajs-input:focus {
55 | border-color: rgba(0, 0, 0, 0.2);
56 | color: rgba(0, 0, 0, 0.85);
57 | }
58 | .alertify.ajs-resizable .ajs-content,
59 | .alertify.ajs-maximized:not(.ajs-resizable) .ajs-content {
60 | top: 64px;
61 | bottom: 74px;
62 | }
63 | .alertify .ajs-footer {
64 | background-color: #fff;
65 | padding: 1rem 2rem;
66 | border-top: none;
67 | border-radius: 0 0 5px 5px;
68 | }
69 | .alertify-notifier .ajs-message {
70 | background: rgba(255, 255, 255, 0.95);
71 | color: #000;
72 | text-align: center;
73 | border: solid 1px #ddd;
74 | border-radius: 2px;
75 | }
76 | .alertify-notifier .ajs-message.ajs-success {
77 | color: #fff;
78 | background: rgba(91, 189, 114, 0.95);
79 | text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
80 | }
81 | .alertify-notifier .ajs-message.ajs-error {
82 | color: #fff;
83 | background: rgba(217, 92, 92, 0.95);
84 | text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
85 | }
86 | .alertify-notifier .ajs-message.ajs-warning {
87 | background: rgba(252, 248, 215, 0.95);
88 | border-color: #999;
89 | }
90 |
--------------------------------------------------------------------------------
/src/SecureDiary/css/semantic.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dimmer{background-color:rgba(0,0,0,.85);opacity:1}.alertify .ajs-dialog{max-width:50%;min-height:137px;background-color:#f4f4f4;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;border-radius:5px}.alertify .ajs-header{padding:1.5rem 2rem;border-bottom:none;border-radius:5px 5px 0 0;color:#555;background-color:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1.6em;font-weight:700}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#555}.alertify .ajs-body .ajs-content .ajs-input{width:100%;margin:0;padding:.65em 1em;font-size:1em;background-color:#fff;border:1px solid rgba(0,0,0,.15);outline:0;color:rgba(0,0,0,.7);border-radius:.3125em;-webkit-transition:background-color .3s ease-out,border-color .2s ease,-webkit-box-shadow .2s ease;transition:background-color .3s ease-out,border-color .2s ease,-webkit-box-shadow .2s ease;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease,-webkit-box-shadow .2s ease;-webkit-box-sizing:border-box;box-sizing:border-box}.alertify .ajs-body .ajs-content .ajs-input:active{border-color:rgba(0,0,0,.3);background-color:#fafafa}.alertify .ajs-body .ajs-content .ajs-input:focus{border-color:rgba(0,0,0,.2);color:rgba(0,0,0,.85)}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:64px;bottom:74px}.alertify .ajs-footer{background-color:#fff;padding:1rem 2rem;border-top:none;border-radius:0 0 5px 5px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:solid 1px #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
--------------------------------------------------------------------------------
/src/SecureDiary/css/semantic.rtl.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * alertifyjs 1.11.0 http://alertifyjs.com
3 | * AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
4 | * Copyright 2017 Mohammad Younes (http://alertifyjs.com)
5 | * Licensed under GPL 3 */
6 | .alertify .ajs-dimmer{background-color:rgba(0,0,0,.85);opacity:1}.alertify .ajs-dialog{max-width:50%;min-height:137px;background-color:#f4f4f4;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;border-radius:5px}.alertify .ajs-header{padding:1.5rem 2rem;border-bottom:none;border-radius:5px 5px 0 0;color:#555;background-color:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1.6em;font-weight:700}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#555}.alertify .ajs-body .ajs-content .ajs-input{width:100%;margin:0;padding:.65em 1em;font-size:1em;background-color:#fff;border:1px solid rgba(0,0,0,.15);outline:0;color:rgba(0,0,0,.7);border-radius:.3125em;-webkit-transition:background-color .3s ease-out,border-color .2s ease,-webkit-box-shadow .2s ease;transition:background-color .3s ease-out,border-color .2s ease,-webkit-box-shadow .2s ease;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease,-webkit-box-shadow .2s ease;-webkit-box-sizing:border-box;box-sizing:border-box}.alertify .ajs-body .ajs-content .ajs-input:active{border-color:rgba(0,0,0,.3);background-color:#fafafa}.alertify .ajs-body .ajs-content .ajs-input:focus{border-color:rgba(0,0,0,.2);color:rgba(0,0,0,.85)}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:64px;bottom:74px}.alertify .ajs-footer{background-color:#fff;padding:1rem 2rem;border-top:none;border-radius:0 0 5px 5px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:solid 1px #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
--------------------------------------------------------------------------------
/src/SecureDiary/css/styles.css:
--------------------------------------------------------------------------------
1 | body, article, h1, h2, ul, li { margin:0; padding:0; }
2 | ul, li { list-style-type:none; }
3 | body { font-family:sans-serif; padding:0; margin:0; background-color:#FFF; }
4 | h1, article h2 { cursor:pointer; }
5 |
6 | h1 { font-size:1.4em; padding:.45em; text-align:center; color:#FFF; text-shadow:2px 2px 2px rgba(0,0,0,.5);
7 | background:#f4e842;
8 | background:-moz-linear-gradient(top, #f4e842 2%, #607D27 100%);
9 | background:-webkit-gradient(linear, left top, left bottom, color-stop(2%,#f4e842), color-stop(100%,#607D27));
10 | background:-webkit-linear-gradient(top, #f4e842 2%,#607D27 100%);
11 | background:-o-linear-gradient(top, #f4e842 2%,#607D27 100%);
12 | background:-ms-linear-gradient(top, #f4e842 2%,#607D27 100%);
13 | background:linear-gradient(top, #f4e842 2%,#607D27 100%);
14 | }
15 |
16 | article { border-bottom:1px solid #CCC; border-top:1px solid #FFF; font-size:1em; }
17 | article h2 { padding:.8em .7em; font-size:1.1em; background-color:#EAEDF4; transition:background-color .4s; -moz-transition:background-color .4s; -webkit-transition:background-color .4s; -o-transition:background-color .4s; }
18 | article h2 img { display:block; float:right; margin-left:.8em; cursor:pointer; }
19 | article.sel h2 { background-color:#E01B6A; color:#FFF; text-shadow:2px 2px 2px rgba(0,0,0,.5); }
20 | article p { max-height:0; overflow:hidden; padding:0 .1em 0 .7em; margin:0; transition:all .5s; -moz-transition:all .5s; -webkit-transition:all .5s; -o-transition:all .5s;}
21 | article.sel p { max-height:15em; padding:.7em .1em .7em .7em; }
22 | article p .actions { float: right; width:30px; margin-left:.6em;}
23 | article p .actions img { display:block; width:20px; height:20px; cursor:pointer; margin:.6em 0; }
24 | article p .time { display:block; font-size:.8em; color:#968F92; margin-top: .6em; }
25 | article p .map { display: block; font-size:.8em; color:#1B7AE0; font-style:italic; margin-top:.4em; text-decoration:none;}
26 | article p .map:hover { text-decoration:underline; }
27 |
28 | #status { display: block; cursor:pointer; position:absolute; top: .40em; left:0.5em; background-color: transparent;}
29 | #refresh { display: block; cursor:pointer; position:absolute; top: .40em; right:3.5em; background-color: transparent;}
30 | #newEntry { display: block; cursor:pointer; position:absolute; top: .40em; right:0.5em }
31 | #remove { display: block; cursor:pointer; position:absolute; top: .40em; right:6.5em }
32 | #register { display: block; cursor:pointer; position:absolute; top: .40em; right:9.5em }
33 |
34 | #storeEntry { display:none; width:96%; padding: 2%; }
35 | #storeEntry label { display: block; width:100%; margin:.7em 0 .1em 0; font-weight:bold; }
36 | #storeEntry input[type=text], #storeEntry textarea { width:100%; border:1px solid #CCC; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
37 | #storeEntry .error { border: 1px solid #C00!important; }
38 | #storeEntry #btnCancel, #storeEntry #btnSubmit { font-size:1.1em; }
39 |
40 | #noEntries { text-align:center; font-size:1.2em; }
41 |
42 | #location { font-size:.8em; margin-top: 1em; color: #968F92; font-style:italic; }
43 | #location a { color: #968F92; }
44 |
45 | form {
46 | /* Just to center the form on the page */
47 | margin: 0 auto;
48 | width: 300px;
49 | align: center;
50 | /* To see the outline of the form */
51 | padding: 24px 24px 24px 24px;
52 | border-radius: 1em;
53 | font-family: 'Roboto', sans-serif;
54 | }
55 |
56 | form div + div {
57 | margin-top: 1em;
58 | }
59 |
60 | label {
61 | /* To make sure that all labels have the same size and are properly aligned */
62 | display: inline-block;
63 | width: 90px;
64 | text-align: center;
65 | }
66 |
67 | input, textarea {
68 | /* To make sure that all text fields have the same font settings
69 | By default, textareas have a monospace font */
70 | font: 1em sans-serif;
71 |
72 | /* To give the same size to all text fields */
73 | width: 300px;
74 | box-sizing: border-box;
75 |
76 | /* To harmonize the look & feel of text field border */
77 | border: 1px solid #999;
78 | }
79 |
80 | input:focus, textarea:focus {
81 | /* To give a little highlight on active elements */
82 | border-color: #000;
83 | }
84 |
85 | textarea {
86 | /* To properly align multiline text fields with their labels */
87 | vertical-align: top;
88 |
89 | /* To give enough room to type some text */
90 | height: 5em;
91 | }
92 |
93 | .button {
94 | /* To position the buttons to the same position of the text fields */
95 | padding-left: 90px; /* same size as the label elements */
96 | padding-top: 90px;
97 | }
98 |
99 | button {
100 | /* This extra margin represent roughly the same space as the space
101 | between the labels and their text fields */
102 | margin-left: .5em;
103 | }
--------------------------------------------------------------------------------
/src/SecureDiary/img/i_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/i_add.png
--------------------------------------------------------------------------------
/src/SecureDiary/img/i_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/i_delete.png
--------------------------------------------------------------------------------
/src/SecureDiary/img/i_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/i_edit.png
--------------------------------------------------------------------------------
/src/SecureDiary/img/i_offline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/i_offline.png
--------------------------------------------------------------------------------
/src/SecureDiary/img/i_online.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/i_online.png
--------------------------------------------------------------------------------
/src/SecureDiary/img/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/refresh.png
--------------------------------------------------------------------------------
/src/SecureDiary/img/register.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/register.png
--------------------------------------------------------------------------------
/src/SecureDiary/img/remove.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxamel/SpringZKAuth/03a3bc40849c677f3afe685b66a9acd3db17c7b3/src/SecureDiary/img/remove.png
--------------------------------------------------------------------------------
/src/SecureDiary/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 | My Diary
15 |
16 |
17 |
18 |