stylish 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +7 -10
- data/ARCHITECTURE.md +96 -0
- data/Gemfile +8 -0
- data/README.md +25 -29
- data/Rakefile +24 -0
- data/bin/stylish +33 -0
- data/lib/stylish.rb +36 -1
- data/lib/stylish/configuration.rb +37 -0
- data/lib/stylish/core_ext.rb +20 -0
- data/lib/stylish/developer.rb +13 -0
- data/lib/stylish/developer/config.rb +19 -0
- data/lib/stylish/developer/environment.rb +75 -0
- data/lib/stylish/developer/listing.rb +85 -0
- data/lib/stylish/developer/model_delegator.rb +51 -0
- data/lib/stylish/developer/modification.rb +139 -0
- data/lib/stylish/developer/path.rb +168 -0
- data/lib/stylish/developer/route.rb +97 -0
- data/lib/stylish/developer/server.rb +40 -0
- data/lib/stylish/engine.rb +12 -0
- data/lib/stylish/fs.rb +59 -0
- data/lib/stylish/manifest.rb +100 -0
- data/lib/stylish/models.rb +119 -0
- data/lib/stylish/models/component.rb +19 -0
- data/lib/stylish/models/layout.rb +19 -0
- data/lib/stylish/models/library.rb +134 -0
- data/lib/stylish/models/package.rb +156 -0
- data/lib/stylish/models/script.rb +10 -0
- data/lib/stylish/models/stylesheet.rb +9 -0
- data/lib/stylish/models/template.rb +9 -0
- data/lib/stylish/models/theme.rb +8 -0
- data/lib/stylish/util.rb +20 -0
- data/lib/stylish/version.rb +1 -1
- data/library/config.json +4 -0
- data/library/second-theme/manifest.json +8 -0
- data/library/second-theme/manifest.yml +6 -0
- data/library/second-theme/templates/footers/footer-01.html +3 -0
- data/library/second-theme/templates/footers/footer-02.html +3 -0
- data/library/second-theme/templates/headers/header-01.html +3 -0
- data/library/second-theme/templates/headers/header-02.html +3 -0
- data/library/second-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
- data/library/second-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
- data/library/test-theme/components/footers/footer-01.json +5 -0
- data/library/test-theme/components/footers/footer-02.json +5 -0
- data/library/test-theme/components/headers/header-01.json +5 -0
- data/library/test-theme/components/headers/header-02.json +5 -0
- data/library/test-theme/components/landing-page-blocks/landing-page-01.json +5 -0
- data/library/test-theme/components/landing-page-blocks/landing-page-02.json +5 -0
- data/library/test-theme/manifest.json +8 -0
- data/library/test-theme/manifest.yml +6 -0
- data/library/test-theme/pages/page-01.json +11 -0
- data/library/test-theme/templates/footers/footer-01.html +3 -0
- data/library/test-theme/templates/footers/footer-02.html +3 -0
- data/library/test-theme/templates/headers/header-01.html +3 -0
- data/library/test-theme/templates/headers/header-02.html +3 -0
- data/library/test-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
- data/library/test-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
- data/library/test-theme/templates/layouts/standard-layout.html +10 -0
- data/spec/acceptance/listing_assets_spec.rb +20 -0
- data/spec/acceptance/model_browsing_spec.rb +21 -0
- data/spec/acceptance/model_creation_spec.rb +16 -0
- data/spec/acceptance/model_deleting_spec.rb +10 -0
- data/spec/acceptance/model_updating_spec.rb +12 -0
- data/spec/acceptance/modifying_assets_spec.rb +50 -0
- data/spec/acceptance/server_info_spec.rb +10 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/test.coffee +4 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/assets/stylesheets/test.css.scss +6 -0
- data/spec/dummy/app/assets/stylesheets/writable/existing.scss.css +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +30 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +82 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20140822065900_create_books.rb +11 -0
- data/spec/dummy/db/migrate/20140822065916_create_authors.rb +9 -0
- data/spec/dummy/db/migrate/20140824215902_create_users.rb +10 -0
- data/spec/dummy/db/migrate/20140826193259_create_libraries.rb +10 -0
- data/spec/dummy/db/schema.rb +37 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/fixtures/config.json +3 -0
- data/spec/fixtures/test-theme/components/footers/footer-01.json +5 -0
- data/spec/fixtures/test-theme/components/footers/footer-02.json +5 -0
- data/spec/fixtures/test-theme/components/headers/header-01.json +5 -0
- data/spec/fixtures/test-theme/components/headers/header-02.json +5 -0
- data/spec/fixtures/test-theme/components/landing-page-blocks/landing-page-01.json +5 -0
- data/spec/fixtures/test-theme/components/landing-page-blocks/landing-page-02.json +5 -0
- data/spec/fixtures/test-theme/manifest.json +8 -0
- data/spec/fixtures/test-theme/manifest.yml +6 -0
- data/spec/fixtures/test-theme/pages/page-01.json +11 -0
- data/spec/fixtures/test-theme/templates/footers/footer-01.html +3 -0
- data/spec/fixtures/test-theme/templates/footers/footer-02.html +3 -0
- data/spec/fixtures/test-theme/templates/headers/header-01.html +3 -0
- data/spec/fixtures/test-theme/templates/headers/header-02.html +3 -0
- data/spec/fixtures/test-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
- data/spec/fixtures/test-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
- data/spec/fixtures/test-theme/templates/layouts/standard-01.html +9 -0
- data/spec/lib/stylish/configuration_spec.rb +8 -0
- data/spec/lib/stylish/developer/path_spec.rb +36 -0
- data/spec/lib/stylish/developer/route_spec.rb +5 -0
- data/spec/lib/stylish/manifest_spec.rb +48 -0
- data/spec/lib/stylish/models/library_spec.rb +38 -0
- data/spec/lib/stylish/models/package_spec.rb +35 -0
- data/spec/lib/stylish/models_spec.rb +12 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/json_helper.rb +7 -0
- data/spec/test.css.scss +6 -0
- data/stylish.gemspec +17 -2
- data/support/editor-app/.gitignore +2 -0
- data/support/editor-app/development/bower.json +9 -0
- data/support/editor-app/development/package.json +28 -0
- data/support/editor-app/development/semantic/components/accordion.css +257 -0
- data/support/editor-app/development/semantic/components/accordion.js +558 -0
- data/support/editor-app/development/semantic/components/accordion.min.css +11 -0
- data/support/editor-app/development/semantic/components/accordion.min.js +11 -0
- data/support/editor-app/development/semantic/components/ad.css +277 -0
- data/support/editor-app/development/semantic/components/ad.min.css +11 -0
- data/support/editor-app/development/semantic/components/api.js +851 -0
- data/support/editor-app/development/semantic/components/api.min.js +11 -0
- data/support/editor-app/development/semantic/components/breadcrumb.css +125 -0
- data/support/editor-app/development/semantic/components/breadcrumb.min.css +11 -0
- data/support/editor-app/development/semantic/components/button.css +2391 -0
- data/support/editor-app/development/semantic/components/button.min.css +11 -0
- data/support/editor-app/development/semantic/components/card.css +758 -0
- data/support/editor-app/development/semantic/components/card.min.css +11 -0
- data/support/editor-app/development/semantic/components/checkbox.css +514 -0
- data/support/editor-app/development/semantic/components/checkbox.js +507 -0
- data/support/editor-app/development/semantic/components/checkbox.min.css +11 -0
- data/support/editor-app/development/semantic/components/checkbox.min.js +11 -0
- data/support/editor-app/development/semantic/components/comment.css +260 -0
- data/support/editor-app/development/semantic/components/comment.min.css +11 -0
- data/support/editor-app/development/semantic/components/dimmer.css +187 -0
- data/support/editor-app/development/semantic/components/dimmer.js +627 -0
- data/support/editor-app/development/semantic/components/dimmer.min.css +11 -0
- data/support/editor-app/development/semantic/components/dimmer.min.js +11 -0
- data/support/editor-app/development/semantic/components/divider.css +244 -0
- data/support/editor-app/development/semantic/components/divider.min.css +11 -0
- data/support/editor-app/development/semantic/components/dropdown.css +1085 -0
- data/support/editor-app/development/semantic/components/dropdown.js +1757 -0
- data/support/editor-app/development/semantic/components/dropdown.min.css +11 -0
- data/support/editor-app/development/semantic/components/dropdown.min.js +11 -0
- data/support/editor-app/development/semantic/components/feed.css +277 -0
- data/support/editor-app/development/semantic/components/feed.min.css +11 -0
- data/support/editor-app/development/semantic/components/flag.css +1017 -0
- data/support/editor-app/development/semantic/components/flag.min.css +11 -0
- data/support/editor-app/development/semantic/components/form.css +875 -0
- data/support/editor-app/development/semantic/components/form.js +1039 -0
- data/support/editor-app/development/semantic/components/form.min.css +11 -0
- data/support/editor-app/development/semantic/components/form.min.js +11 -0
- data/support/editor-app/development/semantic/components/grid.css +1816 -0
- data/support/editor-app/development/semantic/components/grid.min.css +11 -0
- data/support/editor-app/development/semantic/components/header.css +572 -0
- data/support/editor-app/development/semantic/components/header.min.css +11 -0
- data/support/editor-app/development/semantic/components/icon.css +2127 -0
- data/support/editor-app/development/semantic/components/icon.min.css +11 -0
- data/support/editor-app/development/semantic/components/image.css +275 -0
- data/support/editor-app/development/semantic/components/image.min.css +11 -0
- data/support/editor-app/development/semantic/components/input.css +455 -0
- data/support/editor-app/development/semantic/components/input.min.css +11 -0
- data/support/editor-app/development/semantic/components/item.css +458 -0
- data/support/editor-app/development/semantic/components/item.min.css +11 -0
- data/support/editor-app/development/semantic/components/label.css +930 -0
- data/support/editor-app/development/semantic/components/label.min.css +11 -0
- data/support/editor-app/development/semantic/components/list.css +879 -0
- data/support/editor-app/development/semantic/components/list.min.css +11 -0
- data/support/editor-app/development/semantic/components/loader.css +279 -0
- data/support/editor-app/development/semantic/components/loader.min.css +11 -0
- data/support/editor-app/development/semantic/components/menu.css +1596 -0
- data/support/editor-app/development/semantic/components/menu.min.css +11 -0
- data/support/editor-app/development/semantic/components/message.css +422 -0
- data/support/editor-app/development/semantic/components/message.min.css +11 -0
- data/support/editor-app/development/semantic/components/modal.css +431 -0
- data/support/editor-app/development/semantic/components/modal.js +860 -0
- data/support/editor-app/development/semantic/components/modal.min.css +11 -0
- data/support/editor-app/development/semantic/components/modal.min.js +11 -0
- data/support/editor-app/development/semantic/components/nag.css +149 -0
- data/support/editor-app/development/semantic/components/nag.js +477 -0
- data/support/editor-app/development/semantic/components/nag.min.css +11 -0
- data/support/editor-app/development/semantic/components/nag.min.js +11 -0
- data/support/editor-app/development/semantic/components/popup.css +294 -0
- data/support/editor-app/development/semantic/components/popup.js +1187 -0
- data/support/editor-app/development/semantic/components/popup.min.css +11 -0
- data/support/editor-app/development/semantic/components/popup.min.js +11 -0
- data/support/editor-app/development/semantic/components/progress.css +449 -0
- data/support/editor-app/development/semantic/components/progress.js +785 -0
- data/support/editor-app/development/semantic/components/progress.min.css +11 -0
- data/support/editor-app/development/semantic/components/progress.min.js +11 -0
- data/support/editor-app/development/semantic/components/rail.css +125 -0
- data/support/editor-app/development/semantic/components/rail.min.css +11 -0
- data/support/editor-app/development/semantic/components/rating.css +262 -0
- data/support/editor-app/development/semantic/components/rating.js +451 -0
- data/support/editor-app/development/semantic/components/rating.min.css +11 -0
- data/support/editor-app/development/semantic/components/rating.min.js +11 -0
- data/support/editor-app/development/semantic/components/reset.css +430 -0
- data/support/editor-app/development/semantic/components/reset.min.css +11 -0
- data/support/editor-app/development/semantic/components/reveal.css +294 -0
- data/support/editor-app/development/semantic/components/reveal.min.css +11 -0
- data/support/editor-app/development/semantic/components/search.css +330 -0
- data/support/editor-app/development/semantic/components/search.js +1055 -0
- data/support/editor-app/development/semantic/components/search.min.css +11 -0
- data/support/editor-app/development/semantic/components/search.min.js +11 -0
- data/support/editor-app/development/semantic/components/segment.css +590 -0
- data/support/editor-app/development/semantic/components/segment.min.css +11 -0
- data/support/editor-app/development/semantic/components/shape.css +155 -0
- data/support/editor-app/development/semantic/components/shape.js +830 -0
- data/support/editor-app/development/semantic/components/shape.min.css +11 -0
- data/support/editor-app/development/semantic/components/shape.min.js +11 -0
- data/support/editor-app/development/semantic/components/sidebar.css +621 -0
- data/support/editor-app/development/semantic/components/sidebar.js +1084 -0
- data/support/editor-app/development/semantic/components/sidebar.min.css +11 -0
- data/support/editor-app/development/semantic/components/sidebar.min.js +11 -0
- data/support/editor-app/development/semantic/components/site.css +147 -0
- data/support/editor-app/development/semantic/components/site.js +487 -0
- data/support/editor-app/development/semantic/components/site.min.css +11 -0
- data/support/editor-app/development/semantic/components/site.min.js +11 -0
- data/support/editor-app/development/semantic/components/state.js +690 -0
- data/support/editor-app/development/semantic/components/state.min.js +11 -0
- data/support/editor-app/development/semantic/components/statistic.css +410 -0
- data/support/editor-app/development/semantic/components/statistic.min.css +11 -0
- data/support/editor-app/development/semantic/components/step.css +433 -0
- data/support/editor-app/development/semantic/components/step.min.css +11 -0
- data/support/editor-app/development/semantic/components/sticky.css +80 -0
- data/support/editor-app/development/semantic/components/sticky.js +775 -0
- data/support/editor-app/development/semantic/components/sticky.min.css +11 -0
- data/support/editor-app/development/semantic/components/sticky.min.js +11 -0
- data/support/editor-app/development/semantic/components/tab.css +93 -0
- data/support/editor-app/development/semantic/components/tab.js +787 -0
- data/support/editor-app/development/semantic/components/tab.min.css +11 -0
- data/support/editor-app/development/semantic/components/tab.min.js +11 -0
- data/support/editor-app/development/semantic/components/table.css +999 -0
- data/support/editor-app/development/semantic/components/table.min.css +11 -0
- data/support/editor-app/development/semantic/components/transition.css +2152 -0
- data/support/editor-app/development/semantic/components/transition.js +936 -0
- data/support/editor-app/development/semantic/components/transition.min.css +11 -0
- data/support/editor-app/development/semantic/components/transition.min.js +11 -0
- data/support/editor-app/development/semantic/components/video.css +126 -0
- data/support/editor-app/development/semantic/components/video.js +540 -0
- data/support/editor-app/development/semantic/components/video.min.css +11 -0
- data/support/editor-app/development/semantic/components/video.min.js +11 -0
- data/support/editor-app/development/semantic/components/visibility.js +970 -0
- data/support/editor-app/development/semantic/components/visibility.min.js +11 -0
- data/support/editor-app/development/semantic/semantic.css +31768 -0
- data/support/editor-app/development/semantic/semantic.js +18317 -0
- data/support/editor-app/development/semantic/semantic.min.css +11 -0
- data/support/editor-app/development/semantic/semantic.min.js +17 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.eot +0 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.svg +450 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.woff +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.eot +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.otf +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.svg +504 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.woff +0 -0
- data/support/editor-app/development/semantic/themes/default/assets/images/flags.png +0 -0
- data/support/editor-app/development/src/apis/index.coffee +35 -0
- data/support/editor-app/development/src/components/editor.cjsx +58 -0
- data/support/editor-app/development/src/components/editor_drawer.cjsx +7 -0
- data/support/editor-app/development/src/components/header.cjsx +12 -0
- data/support/editor-app/development/src/components/index.coffee +9 -0
- data/support/editor-app/development/src/components/menus/icon_grid.cjsx +0 -0
- data/support/editor-app/development/src/components/sidebar.cjsx +24 -0
- data/support/editor-app/development/src/components/tiled_grid.cjsx +35 -0
- data/support/editor-app/development/src/index.cjsx +82 -0
- data/support/editor-app/development/src/lib/util.coffee +48 -0
- data/support/editor-app/development/src/pages/home.cjsx +46 -0
- data/support/editor-app/development/src/pages/index.coffee +6 -0
- data/support/editor-app/development/src/pages/package_details.cjsx +55 -0
- data/support/editor-app/development/src/registry.coffee +35 -0
- data/support/editor-app/development/src/styles/components/tiled_grid.css.scss +5 -0
- data/support/editor-app/development/src/styles/index.css.scss +240 -0
- data/support/editor-app/development/src/sugar.cjsx +126 -0
- data/support/editor-app/development/webpack.config.js +53 -0
- data/support/editor-app/dist/base.css +0 -0
- data/support/editor-app/dist/toolit.js +62 -0
- data/support/editor-app/dist/toolkit.js +44573 -0
- data/support/editor-app/index.html +50 -0
- data/support/editor-app/package.json +15 -0
- data/support/editor-app/semantic/components/accordion.css +257 -0
- data/support/editor-app/semantic/components/accordion.js +558 -0
- data/support/editor-app/semantic/components/accordion.min.css +11 -0
- data/support/editor-app/semantic/components/accordion.min.js +11 -0
- data/support/editor-app/semantic/components/ad.css +277 -0
- data/support/editor-app/semantic/components/ad.min.css +11 -0
- data/support/editor-app/semantic/components/api.js +851 -0
- data/support/editor-app/semantic/components/api.min.js +11 -0
- data/support/editor-app/semantic/components/breadcrumb.css +125 -0
- data/support/editor-app/semantic/components/breadcrumb.min.css +11 -0
- data/support/editor-app/semantic/components/button.css +2391 -0
- data/support/editor-app/semantic/components/button.min.css +11 -0
- data/support/editor-app/semantic/components/card.css +758 -0
- data/support/editor-app/semantic/components/card.min.css +11 -0
- data/support/editor-app/semantic/components/checkbox.css +514 -0
- data/support/editor-app/semantic/components/checkbox.js +507 -0
- data/support/editor-app/semantic/components/checkbox.min.css +11 -0
- data/support/editor-app/semantic/components/checkbox.min.js +11 -0
- data/support/editor-app/semantic/components/comment.css +260 -0
- data/support/editor-app/semantic/components/comment.min.css +11 -0
- data/support/editor-app/semantic/components/dimmer.css +187 -0
- data/support/editor-app/semantic/components/dimmer.js +627 -0
- data/support/editor-app/semantic/components/dimmer.min.css +11 -0
- data/support/editor-app/semantic/components/dimmer.min.js +11 -0
- data/support/editor-app/semantic/components/divider.css +244 -0
- data/support/editor-app/semantic/components/divider.min.css +11 -0
- data/support/editor-app/semantic/components/dropdown.css +1085 -0
- data/support/editor-app/semantic/components/dropdown.js +1757 -0
- data/support/editor-app/semantic/components/dropdown.min.css +11 -0
- data/support/editor-app/semantic/components/dropdown.min.js +11 -0
- data/support/editor-app/semantic/components/feed.css +277 -0
- data/support/editor-app/semantic/components/feed.min.css +11 -0
- data/support/editor-app/semantic/components/flag.css +1017 -0
- data/support/editor-app/semantic/components/flag.min.css +11 -0
- data/support/editor-app/semantic/components/form.css +875 -0
- data/support/editor-app/semantic/components/form.js +1039 -0
- data/support/editor-app/semantic/components/form.min.css +11 -0
- data/support/editor-app/semantic/components/form.min.js +11 -0
- data/support/editor-app/semantic/components/grid.css +1816 -0
- data/support/editor-app/semantic/components/grid.min.css +11 -0
- data/support/editor-app/semantic/components/header.css +572 -0
- data/support/editor-app/semantic/components/header.min.css +11 -0
- data/support/editor-app/semantic/components/icon.css +2127 -0
- data/support/editor-app/semantic/components/icon.min.css +11 -0
- data/support/editor-app/semantic/components/image.css +275 -0
- data/support/editor-app/semantic/components/image.min.css +11 -0
- data/support/editor-app/semantic/components/input.css +455 -0
- data/support/editor-app/semantic/components/input.min.css +11 -0
- data/support/editor-app/semantic/components/item.css +458 -0
- data/support/editor-app/semantic/components/item.min.css +11 -0
- data/support/editor-app/semantic/components/label.css +930 -0
- data/support/editor-app/semantic/components/label.min.css +11 -0
- data/support/editor-app/semantic/components/list.css +879 -0
- data/support/editor-app/semantic/components/list.min.css +11 -0
- data/support/editor-app/semantic/components/loader.css +279 -0
- data/support/editor-app/semantic/components/loader.min.css +11 -0
- data/support/editor-app/semantic/components/menu.css +1596 -0
- data/support/editor-app/semantic/components/menu.min.css +11 -0
- data/support/editor-app/semantic/components/message.css +422 -0
- data/support/editor-app/semantic/components/message.min.css +11 -0
- data/support/editor-app/semantic/components/modal.css +431 -0
- data/support/editor-app/semantic/components/modal.js +860 -0
- data/support/editor-app/semantic/components/modal.min.css +11 -0
- data/support/editor-app/semantic/components/modal.min.js +11 -0
- data/support/editor-app/semantic/components/nag.css +149 -0
- data/support/editor-app/semantic/components/nag.js +477 -0
- data/support/editor-app/semantic/components/nag.min.css +11 -0
- data/support/editor-app/semantic/components/nag.min.js +11 -0
- data/support/editor-app/semantic/components/popup.css +294 -0
- data/support/editor-app/semantic/components/popup.js +1187 -0
- data/support/editor-app/semantic/components/popup.min.css +11 -0
- data/support/editor-app/semantic/components/popup.min.js +11 -0
- data/support/editor-app/semantic/components/progress.css +449 -0
- data/support/editor-app/semantic/components/progress.js +785 -0
- data/support/editor-app/semantic/components/progress.min.css +11 -0
- data/support/editor-app/semantic/components/progress.min.js +11 -0
- data/support/editor-app/semantic/components/rail.css +125 -0
- data/support/editor-app/semantic/components/rail.min.css +11 -0
- data/support/editor-app/semantic/components/rating.css +262 -0
- data/support/editor-app/semantic/components/rating.js +451 -0
- data/support/editor-app/semantic/components/rating.min.css +11 -0
- data/support/editor-app/semantic/components/rating.min.js +11 -0
- data/support/editor-app/semantic/components/reset.css +430 -0
- data/support/editor-app/semantic/components/reset.min.css +11 -0
- data/support/editor-app/semantic/components/reveal.css +294 -0
- data/support/editor-app/semantic/components/reveal.min.css +11 -0
- data/support/editor-app/semantic/components/search.css +330 -0
- data/support/editor-app/semantic/components/search.js +1055 -0
- data/support/editor-app/semantic/components/search.min.css +11 -0
- data/support/editor-app/semantic/components/search.min.js +11 -0
- data/support/editor-app/semantic/components/segment.css +590 -0
- data/support/editor-app/semantic/components/segment.min.css +11 -0
- data/support/editor-app/semantic/components/shape.css +155 -0
- data/support/editor-app/semantic/components/shape.js +830 -0
- data/support/editor-app/semantic/components/shape.min.css +11 -0
- data/support/editor-app/semantic/components/shape.min.js +11 -0
- data/support/editor-app/semantic/components/sidebar.css +621 -0
- data/support/editor-app/semantic/components/sidebar.js +1084 -0
- data/support/editor-app/semantic/components/sidebar.min.css +11 -0
- data/support/editor-app/semantic/components/sidebar.min.js +11 -0
- data/support/editor-app/semantic/components/site.css +147 -0
- data/support/editor-app/semantic/components/site.js +487 -0
- data/support/editor-app/semantic/components/site.min.css +11 -0
- data/support/editor-app/semantic/components/site.min.js +11 -0
- data/support/editor-app/semantic/components/state.js +690 -0
- data/support/editor-app/semantic/components/state.min.js +11 -0
- data/support/editor-app/semantic/components/statistic.css +410 -0
- data/support/editor-app/semantic/components/statistic.min.css +11 -0
- data/support/editor-app/semantic/components/step.css +433 -0
- data/support/editor-app/semantic/components/step.min.css +11 -0
- data/support/editor-app/semantic/components/sticky.css +80 -0
- data/support/editor-app/semantic/components/sticky.js +775 -0
- data/support/editor-app/semantic/components/sticky.min.css +11 -0
- data/support/editor-app/semantic/components/sticky.min.js +11 -0
- data/support/editor-app/semantic/components/tab.css +93 -0
- data/support/editor-app/semantic/components/tab.js +787 -0
- data/support/editor-app/semantic/components/tab.min.css +11 -0
- data/support/editor-app/semantic/components/tab.min.js +11 -0
- data/support/editor-app/semantic/components/table.css +999 -0
- data/support/editor-app/semantic/components/table.min.css +11 -0
- data/support/editor-app/semantic/components/transition.css +2152 -0
- data/support/editor-app/semantic/components/transition.js +936 -0
- data/support/editor-app/semantic/components/transition.min.css +11 -0
- data/support/editor-app/semantic/components/transition.min.js +11 -0
- data/support/editor-app/semantic/components/video.css +126 -0
- data/support/editor-app/semantic/components/video.js +540 -0
- data/support/editor-app/semantic/components/video.min.css +11 -0
- data/support/editor-app/semantic/components/video.min.js +11 -0
- data/support/editor-app/semantic/components/visibility.js +970 -0
- data/support/editor-app/semantic/components/visibility.min.js +11 -0
- data/support/editor-app/semantic/semantic.css +31768 -0
- data/support/editor-app/semantic/semantic.js +18317 -0
- data/support/editor-app/semantic/semantic.min.css +11 -0
- data/support/editor-app/semantic/semantic.min.js +17 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.eot +0 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.svg +450 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/semantic/themes/basic/assets/fonts/icons.woff +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.eot +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.otf +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.svg +504 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.ttf +0 -0
- data/support/editor-app/semantic/themes/default/assets/fonts/icons.woff +0 -0
- data/support/editor-app/semantic/themes/default/assets/images/flags.png +0 -0
- data/support/editor-app/vendor/jquery.js +8829 -0
- data/support/library-server/Gemfile +0 -0
- data/support/library-server/config.ru +4 -0
- metadata +740 -7
@@ -0,0 +1,40 @@
|
|
1
|
+
module Stylish
|
2
|
+
module Developer
|
3
|
+
class Server
|
4
|
+
def self.call(env)
|
5
|
+
route = Route.request(env)
|
6
|
+
status, headers, body = route.respond()
|
7
|
+
|
8
|
+
headers["Content-Length"] = Rack::Utils.bytesize(body[0]).to_s
|
9
|
+
headers["Access-Control-Allow-Origin"] = "*"
|
10
|
+
headers["Access-Control-Allow-Methods"] = "GET, POST, PUT"
|
11
|
+
|
12
|
+
[status, headers, body]
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.config
|
16
|
+
Stylish::Developer.config
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.sprockets
|
20
|
+
return config.environment if config.environment
|
21
|
+
|
22
|
+
@sprockets_environment ||= Sprockets::Environment.new(library.root).tap do |env|
|
23
|
+
library.packages.each do |pkg|
|
24
|
+
pkg.root.children.select(&:directory?).each do |dir|
|
25
|
+
env.append_path(dir)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.root
|
32
|
+
Pathname(config.root || Dir.pwd())
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.library
|
36
|
+
config.library
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/stylish/fs.rb
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
module Stylish
|
2
|
+
module Fs
|
3
|
+
|
4
|
+
ExtensionsMap = {
|
5
|
+
slim: ".html.slim",
|
6
|
+
erb: ".html.erb",
|
7
|
+
haml: ".html.haml",
|
8
|
+
markdown: ".html.md",
|
9
|
+
html: ".html",
|
10
|
+
coffeescript: ".coffee",
|
11
|
+
sass: ".sass",
|
12
|
+
scss: ".scss",
|
13
|
+
less: ".less",
|
14
|
+
javascript: ".js",
|
15
|
+
css: ".css"
|
16
|
+
}
|
17
|
+
|
18
|
+
extend ActiveSupport::Concern
|
19
|
+
|
20
|
+
included do
|
21
|
+
attribute :source_language, Symbol, :default => lambda {|model,attr| model.path && model.path.extname }
|
22
|
+
attribute :contents, String
|
23
|
+
end
|
24
|
+
|
25
|
+
def save
|
26
|
+
file_proxy.open("w+") do |fh|
|
27
|
+
fh.write(persistable_contents)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def filename
|
32
|
+
(path_exists? ? path.basename : "#{ name }".parameterize + ".json")
|
33
|
+
end
|
34
|
+
|
35
|
+
def path_exists?
|
36
|
+
path && path.exist?
|
37
|
+
end
|
38
|
+
|
39
|
+
def default_extension
|
40
|
+
# TODO
|
41
|
+
# Should we use Tilt::Template
|
42
|
+
ExtensionsMap[source_language]
|
43
|
+
end
|
44
|
+
|
45
|
+
def persistable_contents
|
46
|
+
contents
|
47
|
+
end
|
48
|
+
|
49
|
+
def contents
|
50
|
+
orig = super.to_s
|
51
|
+
orig.length > 0 ? orig : path.try(:read).to_s
|
52
|
+
end
|
53
|
+
|
54
|
+
# Eventually Could either be a GHFS::File or a normal File
|
55
|
+
def file_proxy
|
56
|
+
Pathname(path)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
module Stylish
|
2
|
+
class Manifest
|
3
|
+
|
4
|
+
attr_reader :path, :options, :content
|
5
|
+
|
6
|
+
# A stylish manifest is a JSON or YAML configuration
|
7
|
+
# file that defines the composition of a stylish theme
|
8
|
+
def initialize(path=nil, options={})
|
9
|
+
@path = path && Pathname(path)
|
10
|
+
@options = options
|
11
|
+
|
12
|
+
@content = options.fetch(:content) { self.path && self.path.read }
|
13
|
+
@root = options.fetch(:root) { self.path && self.path.dirname }
|
14
|
+
|
15
|
+
@templates = options.fetch(:templates) { manifest.templates || "templates" }
|
16
|
+
@stylesheets = options.fetch(:stylesheets) { manifest.stylesheets || "stylesheets" }
|
17
|
+
@scripts = options.fetch(:scripts) { manifest.scripts || "scripts" }
|
18
|
+
@pages = options.fetch(:scripts) { manifest.pages || "pages" }
|
19
|
+
@layouts = options.fetch(:scripts) { manifest.layouts || "layouts" }
|
20
|
+
@components = options.fetch(:scripts) { manifest.components || "components" }
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_hash
|
24
|
+
{
|
25
|
+
name: name,
|
26
|
+
version: version,
|
27
|
+
categories: categories,
|
28
|
+
root: root.to_s,
|
29
|
+
assets: assets
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
def assets
|
34
|
+
{
|
35
|
+
templates: templates.to_s,
|
36
|
+
stylesheets: stylesheets.to_s,
|
37
|
+
scripts: scripts.to_s
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
def name
|
42
|
+
options.fetch(:name) { manifest.name }
|
43
|
+
end
|
44
|
+
|
45
|
+
def version
|
46
|
+
options.fetch(:version) { manifest.version }
|
47
|
+
end
|
48
|
+
|
49
|
+
def categories
|
50
|
+
Array(options.fetch(:categories) { manifest.categories })
|
51
|
+
end
|
52
|
+
|
53
|
+
def root
|
54
|
+
@root && Pathname(@root)
|
55
|
+
end
|
56
|
+
|
57
|
+
def templates
|
58
|
+
root.join(@templates)
|
59
|
+
end
|
60
|
+
|
61
|
+
def stylesheets
|
62
|
+
root.join(@stylesheets)
|
63
|
+
end
|
64
|
+
|
65
|
+
def scripts
|
66
|
+
root.join(@scripts)
|
67
|
+
end
|
68
|
+
|
69
|
+
def components
|
70
|
+
root.join(@components)
|
71
|
+
end
|
72
|
+
|
73
|
+
def pages
|
74
|
+
root.join(@pages)
|
75
|
+
end
|
76
|
+
|
77
|
+
def layouts
|
78
|
+
root.join(@layouts)
|
79
|
+
end
|
80
|
+
|
81
|
+
def manifest
|
82
|
+
@manifest ||= load_manifest.to_mash
|
83
|
+
end
|
84
|
+
|
85
|
+
def load_manifest
|
86
|
+
if format == "json"
|
87
|
+
JSON.parse(content) rescue {}
|
88
|
+
elsif format == "yml"
|
89
|
+
YAML.load(content) rescue {}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
def format
|
94
|
+
options.fetch(:format) do
|
95
|
+
path && path.extname.gsub(/^\./,'')
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
module Stylish
|
2
|
+
module Model
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
included do
|
6
|
+
unless defined?(Virtus)
|
7
|
+
require 'inflecto'
|
8
|
+
require 'virtus'
|
9
|
+
end
|
10
|
+
|
11
|
+
include Virtus.model(finalize: false)
|
12
|
+
include Initializers
|
13
|
+
include AccessorMethods
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.find_class_for_group(group)
|
17
|
+
group = group.to_s
|
18
|
+
case
|
19
|
+
when group == "layouts"
|
20
|
+
Stylish::Layout
|
21
|
+
when group == "components"
|
22
|
+
Stylish::Component
|
23
|
+
when group == "pages"
|
24
|
+
|
25
|
+
when group == "templates"
|
26
|
+
Stylish::Template
|
27
|
+
when group == "scripts"
|
28
|
+
Stylish::Script
|
29
|
+
when group == "stylesheets"
|
30
|
+
Stylish::Stylesheet
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
module Initializers
|
35
|
+
def set_default_attributes
|
36
|
+
attribute_set.set_defaults(self)
|
37
|
+
send(:after_initialize) if respond_to?(:after_initialize)
|
38
|
+
self.class.register(self)
|
39
|
+
self
|
40
|
+
end
|
41
|
+
|
42
|
+
def after_initialize
|
43
|
+
# TODO
|
44
|
+
end
|
45
|
+
|
46
|
+
def set_slug_from(column=:name)
|
47
|
+
self.slug = send(column).to_s.downcase.parameterize if self.slug.to_s.length == 0
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
module AccessorMethods
|
52
|
+
def update_attributes(attrs={})
|
53
|
+
writers = self.class.allowed_writer_methods.map(&:to_s)
|
54
|
+
keys = writers & attrs.keys.map {|k| "#{k}=" }
|
55
|
+
|
56
|
+
keys.each do |key|
|
57
|
+
value = attrs[key.gsub(/=$/,'')]
|
58
|
+
self.send(key, value)
|
59
|
+
end
|
60
|
+
|
61
|
+
!!(save)
|
62
|
+
end
|
63
|
+
|
64
|
+
def uid
|
65
|
+
self.path if self.respond_to?(:path)
|
66
|
+
end
|
67
|
+
|
68
|
+
def as_json(*args)
|
69
|
+
super.tap do |h|
|
70
|
+
h.symbolize_keys!
|
71
|
+
h.delete(:contents)
|
72
|
+
|
73
|
+
if h[:path].is_a?(Hash)
|
74
|
+
h[:path] = h[:path]['path']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
module ClassMethods
|
81
|
+
|
82
|
+
def model_instances
|
83
|
+
@_model_instances ||= []
|
84
|
+
end
|
85
|
+
|
86
|
+
def find_instance_by_uid(uid)
|
87
|
+
self.model_instances.detect {|m| m.uid == uid }
|
88
|
+
end
|
89
|
+
|
90
|
+
def register(model)
|
91
|
+
self.model_instances.push(model) unless model.uid && find_instance_by_uid(model.uid)
|
92
|
+
end
|
93
|
+
|
94
|
+
def browse(path, params={})
|
95
|
+
binding.pry
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
module Models
|
101
|
+
Types = %w(library package theme component layout stylesheet script template)
|
102
|
+
|
103
|
+
def self.lookup(model_alias)
|
104
|
+
a = model_alias.singularize.downcase
|
105
|
+
|
106
|
+
if Types.include?(a)
|
107
|
+
Stylish.const_get(a.camelize)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
def self.load_all
|
112
|
+
Types.each do |type|
|
113
|
+
require "stylish/models/#{ type }"
|
114
|
+
end
|
115
|
+
|
116
|
+
Virtus.finalize
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Stylish
|
2
|
+
class Component
|
3
|
+
include Stylish::Model
|
4
|
+
include Stylish::Fs
|
5
|
+
|
6
|
+
attribute :name, String
|
7
|
+
attribute :category, String
|
8
|
+
attribute :tags, Array
|
9
|
+
attribute :path, Pathname
|
10
|
+
|
11
|
+
attribute :template_path, String
|
12
|
+
attribute :script_path, String
|
13
|
+
attribute :stylesheet_path, String
|
14
|
+
|
15
|
+
def persistable_contents
|
16
|
+
as_json.to_json
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Stylish
|
2
|
+
class Layout
|
3
|
+
include Stylish::Model
|
4
|
+
include Stylish::Fs
|
5
|
+
|
6
|
+
attribute :name, String
|
7
|
+
attribute :category, String
|
8
|
+
attribute :tags, Array
|
9
|
+
attribute :path, Pathname
|
10
|
+
|
11
|
+
attribute :template_path, String
|
12
|
+
attribute :script_path, String
|
13
|
+
attribute :stylesheet_path, String
|
14
|
+
|
15
|
+
def persistable_contents
|
16
|
+
as_json.to_json
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
module Stylish
|
2
|
+
# A `Stylish::Library` is a collection of Packages.
|
3
|
+
#
|
4
|
+
# Packages will be stored as folders underneath the root
|
5
|
+
# folder which is the library. Each package will have its
|
6
|
+
# own manifest.
|
7
|
+
class Library
|
8
|
+
include Stylish::Model
|
9
|
+
|
10
|
+
attribute :name, String
|
11
|
+
attribute :root, Pathname
|
12
|
+
attribute :packages, Array['Stylish::Package']
|
13
|
+
|
14
|
+
class << self
|
15
|
+
attr_accessor :loaded
|
16
|
+
|
17
|
+
def current
|
18
|
+
first = loaded.first
|
19
|
+
return first if first
|
20
|
+
|
21
|
+
pwd = Pathname(Dir.pwd)
|
22
|
+
|
23
|
+
if pwd.join("library").exist?
|
24
|
+
Stylish::Library.load_from_disk(pwd.join("library"))
|
25
|
+
loaded.first
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
self.loaded = Set.new if self.loaded.nil?
|
31
|
+
|
32
|
+
def packages
|
33
|
+
super.tap do |list|
|
34
|
+
list.map! {|p| p.library = self; p }
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def package_roots
|
39
|
+
list = packages.map(&:root)
|
40
|
+
block_given? ? yield(list) : list
|
41
|
+
end
|
42
|
+
|
43
|
+
def create_package(attributes, options={})
|
44
|
+
library = self
|
45
|
+
|
46
|
+
Stylish::Package.new(attributes).tap do |p|
|
47
|
+
p.library = library
|
48
|
+
p.initialize_folder_structure if !p.root.exist?
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def find_package(query)
|
53
|
+
if query.is_a?(Hash)
|
54
|
+
query = query[:name]
|
55
|
+
end
|
56
|
+
|
57
|
+
packages.detect {|package| package.name == query || package.slug == query}
|
58
|
+
end
|
59
|
+
|
60
|
+
def slug
|
61
|
+
name.to_s.parameterize.downcase
|
62
|
+
end
|
63
|
+
|
64
|
+
# Loads a deserialized library cache, which we expect to
|
65
|
+
# be a Hash that contains at least an array of library records.
|
66
|
+
#
|
67
|
+
# Example:
|
68
|
+
#
|
69
|
+
# Stylish::Library.load({
|
70
|
+
# libraries:[{...},{...}]
|
71
|
+
# })
|
72
|
+
#
|
73
|
+
def self.load(structure, options={})
|
74
|
+
structure = structure.to_mash if structure.is_a?(Hash)
|
75
|
+
|
76
|
+
self.loaded = Set.new if options[:reset]
|
77
|
+
|
78
|
+
# We're loading a collection of libraries
|
79
|
+
if structure.libraries
|
80
|
+
self.loaded += structure.libraries.map do |library|
|
81
|
+
new(library)
|
82
|
+
end
|
83
|
+
# we're loading a single library
|
84
|
+
elsif structure.packages
|
85
|
+
self.loaded << new(structure)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def self.find_by_root(root)
|
90
|
+
loaded.detect do |lib|
|
91
|
+
lib.root.to_s == root.to_s || lib.package_roots.map(&:to_s).include?(root.to_s)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Loads the stylish library metadata from a file on disk
|
96
|
+
def self.load_from_disk(config_file_path=nil, options={})
|
97
|
+
path = "#{config_file_path || Stylish.config.config_file_path}".to_pathname
|
98
|
+
|
99
|
+
raise "Invalid path" unless path.exist?
|
100
|
+
|
101
|
+
if path.directory?
|
102
|
+
library = path.join("library.json")
|
103
|
+
|
104
|
+
if library.exist?
|
105
|
+
structure = Stylish.util.deserialize(library)
|
106
|
+
else
|
107
|
+
structure = {root: path, packages: (path.children
|
108
|
+
.select(&:directory?)
|
109
|
+
.select {|p| p.join('manifest.json').exist? || p.join('manifest.yml').exist? }
|
110
|
+
.map do |p|
|
111
|
+
{ root: p }
|
112
|
+
end)
|
113
|
+
}
|
114
|
+
end
|
115
|
+
else
|
116
|
+
structure = Stylish.util.deserialize(path)
|
117
|
+
end
|
118
|
+
|
119
|
+
load(structure, options)
|
120
|
+
end
|
121
|
+
|
122
|
+
# Loads the stylish library metadata from a file in a github repository
|
123
|
+
#
|
124
|
+
# if the name of a repository is not passed (e.g.
|
125
|
+
# stylish/sample-theme-one) then we will attempt to use the
|
126
|
+
# default repository specified in the global configuration
|
127
|
+
def self.load_from_github_repository(repository=nil)
|
128
|
+
Stylish.ghfs.repository = repository if repository
|
129
|
+
structure = Stylish.util.deserialize(Stylish.ghfs.open("library.json").read)
|
130
|
+
|
131
|
+
load(structure)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|