diff --git a/lab-zachary/.babelrc b/lab-zachary/.babelrc new file mode 100644 index 00000000..af0f0c3d --- /dev/null +++ b/lab-zachary/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} \ No newline at end of file diff --git a/lab-zachary/.env b/lab-zachary/.env new file mode 100644 index 00000000..3a2fb159 --- /dev/null +++ b/lab-zachary/.env @@ -0,0 +1 @@ +API_URL='http://localhost:8000' \ No newline at end of file diff --git a/lab-zachary/.eslintrc b/lab-zachary/.eslintrc new file mode 100644 index 00000000..8dc68078 --- /dev/null +++ b/lab-zachary/.eslintrc @@ -0,0 +1,21 @@ +{ + "rules": { + "no-console": "off", + "indent": [ "error", 2 ], + "quotes": [ "error", "single" ], + "semi": ["error", "always"], + "linebreak-style": [ "error", "unix" ] + }, + "env": { + "es6": true, + "node": true, + "mocha": true, + "jasmine": true + }, + "ecmaFeatures": { + "modules": true, + "experimentalObjectRestSpread": true, + "impliedStrict": true + }, + "extends": "eslint:recommended" +} diff --git a/lab-zachary/.gitignore b/lab-zachary/.gitignore new file mode 100644 index 00000000..59c0d065 --- /dev/null +++ b/lab-zachary/.gitignore @@ -0,0 +1,130 @@ +/build + +# Created by https://www.gitignore.io/api/node,osx,windows,linux + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Typescript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + + +### OSX ### +*.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.gitignore.io/api/node,osx,windows,linux \ No newline at end of file diff --git a/lab-zachary/app/component/gallery/create-gallery/_create-gallery.scss b/lab-zachary/app/component/gallery/create-gallery/_create-gallery.scss new file mode 100644 index 00000000..e69de29b diff --git a/lab-zachary/app/component/gallery/create-gallery/create-gallery.html b/lab-zachary/app/component/gallery/create-gallery/create-gallery.html new file mode 100644 index 00000000..90e811f8 --- /dev/null +++ b/lab-zachary/app/component/gallery/create-gallery/create-gallery.html @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/lab-zachary/app/component/gallery/create-gallery/create-gallery.js b/lab-zachary/app/component/gallery/create-gallery/create-gallery.js new file mode 100644 index 00000000..4e235a4b --- /dev/null +++ b/lab-zachary/app/component/gallery/create-gallery/create-gallery.js @@ -0,0 +1,22 @@ +'use strict'; + +module.exports = { + template: require('./create-gallery.html'), + controller: ['$log', 'galleryService', CreateGalleryController], + controllerAs: 'createGalleryCtrl' +}; + +function CreateGalleryController($log, galleryService) { + $log.debug('CreateGalleryController'); + + this.gallery = {}; + + this.createGallery = function() { + $log.debug('test', this.gallery); + galleryService.createGallery(this.gallery) + .then( () => { + this.gallery.name = null; + this.gallery.desc = null; + }); + }; +} \ No newline at end of file diff --git a/lab-zachary/app/component/gallery/gallery-edit/_gallery-edit.scss b/lab-zachary/app/component/gallery/gallery-edit/_gallery-edit.scss new file mode 100644 index 00000000..2d563ba6 --- /dev/null +++ b/lab-zachary/app/component/gallery/gallery-edit/_gallery-edit.scss @@ -0,0 +1,15 @@ +@import '../../../scss/lib/base/global-vars'; + +form.gallery-edit{ + .current-item{ + input { + display:inline-block; + width: 50%; + height: unset; + margin: 0; + padding: .1vw; + background-color: $tertiaryColor*1.2; + border:none; + } + } +} \ No newline at end of file diff --git a/lab-zachary/app/component/gallery/gallery-edit/gallery-edit.html b/lab-zachary/app/component/gallery/gallery-edit/gallery-edit.html new file mode 100644 index 00000000..1e05f1b0 --- /dev/null +++ b/lab-zachary/app/component/gallery/gallery-edit/gallery-edit.html @@ -0,0 +1,26 @@ +