This repository has been archived by the owner on Mar 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: * Public release of identity-hash clojure source code. * Front-end only source
- Loading branch information
0 parents
commit a58da84
Showing
351 changed files
with
76,996 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"directory": "public/vendors", | ||
"strict-ssl": true, | ||
"timeout": 60000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/target | ||
/classes | ||
/checkouts | ||
profiles.clj | ||
pom.xml | ||
pom.xml.asc | ||
*.jar | ||
*.class | ||
/.lein-* | ||
/.nrepl-port | ||
/resources/public/js | ||
/public/js/out | ||
/out | ||
/.repl | ||
*.log | ||
/.env | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
optional=false | ||
save-dev=true | ||
strict-ssl=true | ||
depth=1 | ||
usage=true | ||
unicode=true | ||
shrinkwrap=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 reagent-project | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Alchemy | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "alchemy", | ||
"description": "Identity Hash frontend app", | ||
"main": "gulpfile.js", | ||
"authors": [ | ||
"ffimusic" | ||
], | ||
"license": "MIT", | ||
"keywords": [ | ||
"alchemy", | ||
"identity", | ||
"hash" | ||
], | ||
"homepage": "https://identity-hash.online", | ||
"private": true, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"dependencies": { | ||
"particles.js": "^2.0.0", | ||
"semantic": "semantic-ui#^2.2.7", | ||
"animate.css": "^3.5.2", | ||
"smooth-scroll.js": "^10.3.1", | ||
"waypoints": "^4.0.1", | ||
"wow": "^1.1.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(ns ^:figwheel-no-load alchemy.dev | ||
(:require [alchemy.core :as core] | ||
[figwheel.client :as figwheel :include-macros true])) | ||
|
||
(enable-console-print!) | ||
|
||
(figwheel/watch-and-reload | ||
:websocket-url "ws://localhost:3449/figwheel-ws" | ||
:jsload-callback core/mount-root) | ||
|
||
(core/init!) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(ns alchemy.prod | ||
(:require [alchemy.core :as core])) | ||
|
||
;;ignore println statements in prod | ||
(set! *print-fn* (fn [& _])) | ||
|
||
(core/init!) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var particleJS = function(){}; | ||
var smoothScroll = function(){}; | ||
|
||
var WOW = {}; | ||
WOW.init = function(){}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const gulp = require('gulp'); | ||
const postcss = require('gulp-postcss'); | ||
const sourcemaps = require('gulp-sourcemaps'); | ||
const plumber = require('gulp-plumber'); | ||
const imagemin = require('gulp-imagemin'); | ||
|
||
const plugins = [ | ||
require('precss'), | ||
require('autoprefixer'), | ||
require('lost'), | ||
require('cssnano') | ||
]; | ||
|
||
gulp.task('css', () => { | ||
let rename = require('gulp-rename'); | ||
return gulp.src('./public/css/src/**/*.postcss') | ||
.pipe(plumber()) | ||
.pipe(rename({extname: '.css'})) | ||
.pipe(sourcemaps.init()) | ||
.pipe(gulp.dest('./public/css')) | ||
.pipe(postcss(plugins)) | ||
.pipe(rename({extname: '.min.css'})) | ||
.pipe(sourcemaps.write('.')) | ||
.pipe(gulp.dest('./public/css')) | ||
}); | ||
|
||
gulp.task('images', () => { | ||
return gulp.src('./public/images/unop/**/*') | ||
.pipe(plumber()) | ||
.pipe(imagemin()) | ||
.pipe(gulp.dest('./public/images')); | ||
}); | ||
|
||
gulp.task('watch', () => { | ||
gulp.watch('./public/css/src/**/*.postcss', ['css']); | ||
gulp.watch('./public/images/unop/**/*', ['images']); | ||
}); | ||
|
||
gulp.task('default', ['css', 'images']); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var express = require('express'); | ||
var serveStatic = require('serve-static'); | ||
|
||
var app = express(); | ||
|
||
app.set('port', (process.env.PORT || 3449)); | ||
app.use(serveStatic(__dirname + '/public/', {'index': ['index.html']})); | ||
app.listen(app.get('port'), () => { | ||
console.log('Identity Hash is running on port', app.get('port')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "0-alchemy-fe", | ||
"version": "0.1.0", | ||
"description": "Identity Hash frontend app", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "node index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://bitbucket.org/ffilabs/0-alchemy-fe.git" | ||
}, | ||
"keywords": [ | ||
"alchemy", | ||
"frontend", | ||
"identity-hash" | ||
], | ||
"author": "ffimusic", | ||
"license": "MIT", | ||
"homepage": "https://identity-hash.online", | ||
"dependencies": { | ||
"autoprefixer": "^6.7.7", | ||
"cssnano": "^3.10.0", | ||
"express": "^4.14.1", | ||
"gulp-imagemin": "^3.2.0", | ||
"gulp-plumber": "^1.1.0", | ||
"gulp-postcss": "^6.4.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sourcemaps": "^2.4.1", | ||
"lost": "^8.0.0", | ||
"precss": "^1.4.0", | ||
"serve-static": "^1.11.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
(defproject alchemy "0.1.0-SNAPSHOT" | ||
:description "Identity Hash frontend app" | ||
:url "https://identity-hash.online" | ||
:license {:name "Eclipse Public License" | ||
:url "http://www.eclipse.org/legal/epl-v10.html"} | ||
|
||
:dependencies [[org.clojure/clojure "1.9.0-alpha17" :scope "provided"] | ||
[org.clojure/clojurescript "1.9.562" :scope "provided"] | ||
[org.clojure/core.async "0.3.443" :exclusions [org.clojure/tools.reader]] | ||
[reagent "0.6.2"] | ||
[reagent-utils "0.2.1"] | ||
[secretary "1.2.3"] | ||
[venantius/accountant "0.2.0" :exclusions [org.clojure/tools.reader]]] | ||
|
||
:plugins [[lein-figwheel "0.5.10"] | ||
[lein-cljsbuild "1.1.6" :exclusions [[org.clojure/clojure]]]] | ||
|
||
:min-lein-version "2.5.0" | ||
|
||
:clean-targets ^{:protect false} | ||
[:target-path | ||
[:cljsbuild :builds :app :compiler :output-dir] | ||
[:cljsbuild :builds :app :compiler :output-to] | ||
[:cljsbuild :builds :release :compiler :output-dir] | ||
[:cljsbuild :builds :release :compiler :output-to]] | ||
|
||
:resource-paths ["public"] | ||
|
||
:figwheel {:http-server-root "." | ||
:nrepl-port 7002 | ||
:nrepl-middleware ["cemerick.piggieback/wrap-cljs-repl"] | ||
:repl false | ||
:css-dirs ["public/css"]} | ||
|
||
:cljsbuild {:builds {:app | ||
{:source-paths ["src" "env/dev/cljs"] | ||
:compiler | ||
{:main "alchemy.dev" | ||
:output-to "public/js/app.js" | ||
:output-dir "public/js/out" | ||
:asset-path "js/out" | ||
:source-map true | ||
:source-map-timestamp true | ||
:optimizations :none | ||
:pretty-print true} | ||
:figwheel | ||
{:open-urls ["http://localhost:3449/index.html"]}} | ||
:release | ||
{:source-paths ["src" "env/prod/cljs"] | ||
:compiler | ||
{:main "alchemy.prod" | ||
:externs ["externs/typedef.js"] | ||
:output-to "public/js/app.js" | ||
:output-dir "public/js/rel" | ||
:asset-path "js/rel" | ||
:optimizations :advanced | ||
:pretty-print false}}}} | ||
|
||
:aliases {"release" ["do" "clean" ["cljsbuild" "once" "release"]]} | ||
|
||
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.9"] | ||
[org.clojure/tools.nrepl "0.2.12"] | ||
[com.cemerick/piggieback "0.2.2-SNAPSHOT"]]}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/vendors/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
const CACHE_NAME = 'identity-hash'; | ||
const URLS_TO_CACHE = [ | ||
'/index.html', | ||
'/og.html', | ||
'/alchemy.sw.js', | ||
'/manifest.json', | ||
'/images/full-identity.png', | ||
'/images/favicon.png', | ||
'/images/logo-id-144.png', | ||
'/images/logo-id-192.png', | ||
'/images/app_store_badge.png', | ||
'/images/google_play_badge.png', | ||
'/images/logo-ovh-avec-gray.png', | ||
'/images/logo-ovh-avec-colored.png', | ||
'/images/messenger_mock.gif', | ||
'/images/your-identity.png', | ||
'/images/import/about.png', | ||
'/images/import/automation.png', | ||
'/images/import/data_driven.png', | ||
'/images/import/enterprise.png', | ||
'/images/import/feature_1.png', | ||
'/images/import/feature_2.png', | ||
'/images/import/feature_3.png', | ||
'/images/import/feature_4.png', | ||
'/images/import/feature_5.png', | ||
'/images/import/get-identity.png', | ||
'/images/import/iphone_mockup.png', | ||
'/images/import/topup.png', | ||
'/vendors/semantic/dist/semantic.min.css', | ||
'/vendors/animate.css/animate.min.css', | ||
'/css/alchemy.min.css', | ||
'/css/alchemy.min.css.map', | ||
'/vendors/particles.js/particles.min.js', | ||
'/vendors/smooth-scroll.js/dist/js/smooth-scroll.min.js', | ||
'/vendors/wow/dist/wow.min.js', | ||
'/js/app.js', | ||
'/others/pjs-config.json' | ||
]; | ||
|
||
self.addEventListener('install', function(event) { | ||
event.waitUntil( | ||
caches.open(CACHE_NAME).then(function(cache) { | ||
return cache.addAll(URLS_TO_CACHE); | ||
}) | ||
); | ||
}); | ||
|
||
self.addEventListener('fetch', function(event) { | ||
if (!event.request.url.includes("data")) { | ||
event.respondWith( | ||
caches.match(event.request).then(function(response) { | ||
return response || fetch(event.request.clone()).then(function(resp) { | ||
if (!resp || resp.status !== 200 || resp.type !== 'basic') { | ||
return resp; | ||
} | ||
return caches.open(CACHE_NAME).then(function(cache) { | ||
cache.put(event.request, resp.clone()); | ||
}); | ||
return resp; | ||
}); | ||
}) | ||
); | ||
} | ||
}); | ||
|
||
self.addEventListener('activate', function(event) { | ||
|
||
}); |
Oops, something went wrong.