scribo 1.0.38 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +11 -0
- data/.gitignore +12 -0
- data/.reek.yml +8 -0
- data/.rubocop.yml +44 -0
- data/.rubocop_todo.yml +129 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +31 -0
- data/Gemfile.lock +397 -0
- data/README.md +5 -9
- data/TODO.md +32 -0
- data/app/assets/config/scribo_manifest.js +4 -2
- data/app/assets/images/scribo/.keep +0 -0
- data/app/assets/images/scribo/Unknown-1.svg +2 -0
- data/app/assets/images/scribo/file.svg +4 -0
- data/app/assets/images/scribo/file_icons.svg +1 -0
- data/app/assets/images/scribo/folder-open.svg +1 -0
- data/app/assets/images/scribo/folder.svg +1 -0
- data/app/assets/images/scribo/icons/3d.svg +1 -0
- data/app/assets/images/scribo/icons/actionscript.svg +3 -0
- data/app/assets/images/scribo/icons/android.svg +1 -0
- data/app/assets/images/scribo/icons/angular-component.svg +3 -0
- data/app/assets/images/scribo/icons/angular-directive.svg +3 -0
- data/app/assets/images/scribo/icons/angular-guard.svg +3 -0
- data/app/assets/images/scribo/icons/angular-pipe.svg +3 -0
- data/app/assets/images/scribo/icons/angular-resolver.svg +3 -0
- data/app/assets/images/scribo/icons/angular-service.svg +3 -0
- data/app/assets/images/scribo/icons/angular.svg +3 -0
- data/app/assets/images/scribo/icons/apiblueprint.svg +5 -0
- data/app/assets/images/scribo/icons/applescript.svg +3 -0
- data/app/assets/images/scribo/icons/appveyor.svg +5 -0
- data/app/assets/images/scribo/icons/arduino.svg +1 -0
- data/app/assets/images/scribo/icons/asciidoc.svg +1 -0
- data/app/assets/images/scribo/icons/assembly.svg +4 -0
- data/app/assets/images/scribo/icons/audio.svg +4 -0
- data/app/assets/images/scribo/icons/aurelia.svg +107 -0
- data/app/assets/images/scribo/icons/authors.svg +1 -0
- data/app/assets/images/scribo/icons/autohotkey.svg +3 -0
- data/app/assets/images/scribo/icons/autoit.svg +21 -0
- data/app/assets/images/scribo/icons/azure-pipelines.svg +1 -0
- data/app/assets/images/scribo/icons/azure.svg +1 -0
- data/app/assets/images/scribo/icons/babel.svg +1 -0
- data/app/assets/images/scribo/icons/ballerina.svg +1 -0
- data/app/assets/images/scribo/icons/bazel.svg +1 -0
- data/app/assets/images/scribo/icons/bitbucket.svg +1 -0
- data/app/assets/images/scribo/icons/bithound.svg +1 -0
- data/app/assets/images/scribo/icons/blink.svg +4 -0
- data/app/assets/images/scribo/icons/blink_light.svg +4 -0
- data/app/assets/images/scribo/icons/bower.svg +1 -0
- data/app/assets/images/scribo/icons/browserlist.svg +6 -0
- data/app/assets/images/scribo/icons/browserlist_light.svg +7 -0
- data/app/assets/images/scribo/icons/bucklescript.svg +3 -0
- data/app/assets/images/scribo/icons/buildkite.svg +1 -0
- data/app/assets/images/scribo/icons/c.svg +1 -0
- data/app/assets/images/scribo/icons/cabal.svg +8 -0
- data/app/assets/images/scribo/icons/cake.svg +1 -0
- data/app/assets/images/scribo/icons/certificate.svg +3 -0
- data/app/assets/images/scribo/icons/changelog.svg +1 -0
- data/app/assets/images/scribo/icons/circleci.svg +14 -0
- data/app/assets/images/scribo/icons/circleci_light.svg +14 -0
- data/app/assets/images/scribo/icons/clojure.svg +1 -0
- data/app/assets/images/scribo/icons/cloudfoundry.svg +24 -0
- data/app/assets/images/scribo/icons/cmake.svg +7 -0
- data/app/assets/images/scribo/icons/code-climate.svg +4 -0
- data/app/assets/images/scribo/icons/code-climate_light.svg +4 -0
- data/app/assets/images/scribo/icons/coffee.svg +3 -0
- data/app/assets/images/scribo/icons/coldfusion.svg +7 -0
- data/app/assets/images/scribo/icons/conduct.svg +4 -0
- data/app/assets/images/scribo/icons/console.svg +3 -0
- data/app/assets/images/scribo/icons/contributing.svg +4 -0
- data/app/assets/images/scribo/icons/cpp.svg +1 -0
- data/app/assets/images/scribo/icons/credits.svg +3 -0
- data/app/assets/images/scribo/icons/crystal.svg +4 -0
- data/app/assets/images/scribo/icons/crystal_light.svg +4 -0
- data/app/assets/images/scribo/icons/csharp.svg +3 -0
- data/app/assets/images/scribo/icons/css-map.svg +1 -0
- data/app/assets/images/scribo/icons/css.svg +3 -0
- data/app/assets/images/scribo/icons/cucumber.svg +4 -0
- data/app/assets/images/scribo/icons/cuda.svg +4 -0
- data/app/assets/images/scribo/icons/d.svg +1 -0
- data/app/assets/images/scribo/icons/dart.svg +9 -0
- data/app/assets/images/scribo/icons/database.svg +1 -0
- data/app/assets/images/scribo/icons/diff.svg +1 -0
- data/app/assets/images/scribo/icons/django.svg +1 -0
- data/app/assets/images/scribo/icons/docker.svg +4 -0
- data/app/assets/images/scribo/icons/document.svg +3 -0
- data/app/assets/images/scribo/icons/dotjs.svg +8 -0
- data/app/assets/images/scribo/icons/drone.svg +6 -0
- data/app/assets/images/scribo/icons/drone_light.svg +6 -0
- data/app/assets/images/scribo/icons/edge.svg +1 -0
- data/app/assets/images/scribo/icons/editorconfig.svg +9 -0
- data/app/assets/images/scribo/icons/ejs.svg +7 -0
- data/app/assets/images/scribo/icons/elixir.svg +1 -0
- data/app/assets/images/scribo/icons/elm.svg +1 -0
- data/app/assets/images/scribo/icons/email.svg +3 -0
- data/app/assets/images/scribo/icons/erlang.svg +5 -0
- data/app/assets/images/scribo/icons/eslint.svg +3 -0
- data/app/assets/images/scribo/icons/exe.svg +3 -0
- data/app/assets/images/scribo/icons/fastlane.svg +1 -0
- data/app/assets/images/scribo/icons/favicon.svg +3 -0
- data/app/assets/images/scribo/icons/file.svg +3 -0
- data/app/assets/images/scribo/icons/firebase.svg +9 -0
- data/app/assets/images/scribo/icons/flash.svg +12 -0
- data/app/assets/images/scribo/icons/flow.svg +7 -0
- data/app/assets/images/scribo/icons/folder-android-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-android.svg +1 -0
- data/app/assets/images/scribo/icons/folder-animation-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-animation.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ansible-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ansible.svg +1 -0
- data/app/assets/images/scribo/icons/folder-api-open.svg +4 -0
- data/app/assets/images/scribo/icons/folder-api.svg +4 -0
- data/app/assets/images/scribo/icons/folder-app-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-app.svg +1 -0
- data/app/assets/images/scribo/icons/folder-archive-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-archive.svg +1 -0
- data/app/assets/images/scribo/icons/folder-audio-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-audio.svg +2 -0
- data/app/assets/images/scribo/icons/folder-aurelia-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-aurelia.svg +2 -0
- data/app/assets/images/scribo/icons/folder-aws-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-aws.svg +2 -0
- data/app/assets/images/scribo/icons/folder-batch-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-batch.svg +1 -0
- data/app/assets/images/scribo/icons/folder-benchmark-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-benchmark.svg +1 -0
- data/app/assets/images/scribo/icons/folder-bower-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-bower.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ci-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ci.svg +1 -0
- data/app/assets/images/scribo/icons/folder-circleci-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-circleci.svg +1 -0
- data/app/assets/images/scribo/icons/folder-class-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-class.svg +1 -0
- data/app/assets/images/scribo/icons/folder-client-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-client.svg +1 -0
- data/app/assets/images/scribo/icons/folder-cluster-open.svg +8 -0
- data/app/assets/images/scribo/icons/folder-cluster.svg +8 -0
- data/app/assets/images/scribo/icons/folder-command-open.svg +4 -0
- data/app/assets/images/scribo/icons/folder-command.svg +4 -0
- data/app/assets/images/scribo/icons/folder-components-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-components.svg +2 -0
- data/app/assets/images/scribo/icons/folder-config-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-config.svg +2 -0
- data/app/assets/images/scribo/icons/folder-constant-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-constant.svg +1 -0
- data/app/assets/images/scribo/icons/folder-container-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-container.svg +1 -0
- data/app/assets/images/scribo/icons/folder-content-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-content.svg +1 -0
- data/app/assets/images/scribo/icons/folder-controller-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-controller.svg +1 -0
- data/app/assets/images/scribo/icons/folder-core-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-core.svg +1 -0
- data/app/assets/images/scribo/icons/folder-coverage-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-coverage.svg +1 -0
- data/app/assets/images/scribo/icons/folder-css-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-css.svg +2 -0
- data/app/assets/images/scribo/icons/folder-custom-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-custom.svg +1 -0
- data/app/assets/images/scribo/icons/folder-database-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-database.svg +2 -0
- data/app/assets/images/scribo/icons/folder-debug-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-debug.svg +1 -0
- data/app/assets/images/scribo/icons/folder-delta-open.svg +4 -0
- data/app/assets/images/scribo/icons/folder-delta.svg +4 -0
- data/app/assets/images/scribo/icons/folder-dist-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-dist.svg +2 -0
- data/app/assets/images/scribo/icons/folder-docker-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-docker.svg +5 -0
- data/app/assets/images/scribo/icons/folder-docs-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-docs.svg +2 -0
- data/app/assets/images/scribo/icons/folder-download-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-download.svg +1 -0
- data/app/assets/images/scribo/icons/folder-dump-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-dump.svg +1 -0
- data/app/assets/images/scribo/icons/folder-environment-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-environment.svg +1 -0
- data/app/assets/images/scribo/icons/folder-error-open.svg +7 -0
- data/app/assets/images/scribo/icons/folder-error.svg +8 -0
- data/app/assets/images/scribo/icons/folder-event-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-event.svg +1 -0
- data/app/assets/images/scribo/icons/folder-examples-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-examples.svg +1 -0
- data/app/assets/images/scribo/icons/folder-expo-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-expo.svg +4 -0
- data/app/assets/images/scribo/icons/folder-export-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-export.svg +5 -0
- data/app/assets/images/scribo/icons/folder-fastlane-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-fastlane.svg +1 -0
- data/app/assets/images/scribo/icons/folder-flow-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-flow.svg +1 -0
- data/app/assets/images/scribo/icons/folder-font-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-font.svg +1 -0
- data/app/assets/images/scribo/icons/folder-functions-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-functions.svg +1 -0
- data/app/assets/images/scribo/icons/folder-generator-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-generator.svg +1 -0
- data/app/assets/images/scribo/icons/folder-git-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-git.svg +1 -0
- data/app/assets/images/scribo/icons/folder-github-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-github.svg +2 -0
- data/app/assets/images/scribo/icons/folder-gitlab-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-gitlab.svg +2 -0
- data/app/assets/images/scribo/icons/folder-global-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-global.svg +2 -0
- data/app/assets/images/scribo/icons/folder-gradle-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-gradle.svg +2 -0
- data/app/assets/images/scribo/icons/folder-graphql-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-graphql.svg +1 -0
- data/app/assets/images/scribo/icons/folder-guard-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-guard.svg +1 -0
- data/app/assets/images/scribo/icons/folder-helper-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-helper.svg +1 -0
- data/app/assets/images/scribo/icons/folder-hook-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-hook.svg +1 -0
- data/app/assets/images/scribo/icons/folder-i18n-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-i18n.svg +2 -0
- data/app/assets/images/scribo/icons/folder-images-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-images.svg +2 -0
- data/app/assets/images/scribo/icons/folder-import-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-import.svg +1 -0
- data/app/assets/images/scribo/icons/folder-include-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-include.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ios-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ios.svg +1 -0
- data/app/assets/images/scribo/icons/folder-javascript-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-javascript.svg +2 -0
- data/app/assets/images/scribo/icons/folder-jinja-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-jinja-open_light.svg +2 -0
- data/app/assets/images/scribo/icons/folder-jinja.svg +2 -0
- data/app/assets/images/scribo/icons/folder-jinja_light.svg +2 -0
- data/app/assets/images/scribo/icons/folder-job-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-job.svg +1 -0
- data/app/assets/images/scribo/icons/folder-keys-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-keys.svg +1 -0
- data/app/assets/images/scribo/icons/folder-kubernetes-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-kubernetes.svg +5 -0
- data/app/assets/images/scribo/icons/folder-layout-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-layout.svg +1 -0
- data/app/assets/images/scribo/icons/folder-less-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-less.svg +1 -0
- data/app/assets/images/scribo/icons/folder-lib-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-lib.svg +2 -0
- data/app/assets/images/scribo/icons/folder-log-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-log.svg +2 -0
- data/app/assets/images/scribo/icons/folder-mail-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-mail.svg +1 -0
- data/app/assets/images/scribo/icons/folder-mappings-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-mappings.svg +1 -0
- data/app/assets/images/scribo/icons/folder-markdown-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-markdown.svg +2 -0
- data/app/assets/images/scribo/icons/folder-messages-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-messages.svg +1 -0
- data/app/assets/images/scribo/icons/folder-meta-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-meta.svg +1 -0
- data/app/assets/images/scribo/icons/folder-middleware-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-middleware.svg +1 -0
- data/app/assets/images/scribo/icons/folder-mock-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-mock.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ngrx-actions-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-actions.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-effects-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-effects.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-entities-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-entities.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-reducer-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-reducer.svg +2 -0
- data/app/assets/images/scribo/icons/folder-ngrx-state-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ngrx-state.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ngrx-store-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-ngrx-store.svg +1 -0
- data/app/assets/images/scribo/icons/folder-node-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-node.svg +1 -0
- data/app/assets/images/scribo/icons/folder-nuxt-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-nuxt.svg +1 -0
- data/app/assets/images/scribo/icons/folder-open.svg +11 -0
- data/app/assets/images/scribo/icons/folder-other-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-other.svg +1 -0
- data/app/assets/images/scribo/icons/folder-packages-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-packages.svg +1 -0
- data/app/assets/images/scribo/icons/folder-php-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-php.svg +2 -0
- data/app/assets/images/scribo/icons/folder-phpmailer-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-phpmailer.svg +2 -0
- data/app/assets/images/scribo/icons/folder-pipe-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-pipe.svg +1 -0
- data/app/assets/images/scribo/icons/folder-plugin-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-plugin.svg +1 -0
- data/app/assets/images/scribo/icons/folder-prisma-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-prisma.svg +1 -0
- data/app/assets/images/scribo/icons/folder-private-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-private.svg +1 -0
- data/app/assets/images/scribo/icons/folder-public-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-public.svg +2 -0
- data/app/assets/images/scribo/icons/folder-python-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-python.svg +1 -0
- data/app/assets/images/scribo/icons/folder-react-components-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-react-components.svg +2 -0
- data/app/assets/images/scribo/icons/folder-redux-actions-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-redux-actions.svg +1 -0
- data/app/assets/images/scribo/icons/folder-redux-reducer-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-redux-reducer.svg +2 -0
- data/app/assets/images/scribo/icons/folder-redux-store-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-redux-store.svg +2 -0
- data/app/assets/images/scribo/icons/folder-resource-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-resource.svg +2 -0
- data/app/assets/images/scribo/icons/folder-review-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-review.svg +1 -0
- data/app/assets/images/scribo/icons/folder-routes-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-routes.svg +1 -0
- data/app/assets/images/scribo/icons/folder-rules-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-rules.svg +1 -0
- data/app/assets/images/scribo/icons/folder-sass-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-sass.svg +1 -0
- data/app/assets/images/scribo/icons/folder-scripts-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-scripts.svg +2 -0
- data/app/assets/images/scribo/icons/folder-secure-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-secure.svg +1 -0
- data/app/assets/images/scribo/icons/folder-server-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-server.svg +1 -0
- data/app/assets/images/scribo/icons/folder-serverless-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-serverless.svg +1 -0
- data/app/assets/images/scribo/icons/folder-shared-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-shared.svg +1 -0
- data/app/assets/images/scribo/icons/folder-src-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-src.svg +2 -0
- data/app/assets/images/scribo/icons/folder-stack-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-stack.svg +1 -0
- data/app/assets/images/scribo/icons/folder-stylus-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-stylus.svg +1 -0
- data/app/assets/images/scribo/icons/folder-sublime-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-sublime.svg +2 -0
- data/app/assets/images/scribo/icons/folder-svg-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-svg.svg +1 -0
- data/app/assets/images/scribo/icons/folder-syntax-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-syntax.svg +1 -0
- data/app/assets/images/scribo/icons/folder-tasks-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-tasks.svg +1 -0
- data/app/assets/images/scribo/icons/folder-temp-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-temp.svg +2 -0
- data/app/assets/images/scribo/icons/folder-template-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-template.svg +1 -0
- data/app/assets/images/scribo/icons/folder-test-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-test.svg +1 -0
- data/app/assets/images/scribo/icons/folder-theme-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-theme.svg +2 -0
- data/app/assets/images/scribo/icons/folder-tools-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-tools.svg +1 -0
- data/app/assets/images/scribo/icons/folder-typescript-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-typescript.svg +1 -0
- data/app/assets/images/scribo/icons/folder-upload-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-upload.svg +1 -0
- data/app/assets/images/scribo/icons/folder-utils-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-utils.svg +1 -0
- data/app/assets/images/scribo/icons/folder-video-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-video.svg +2 -0
- data/app/assets/images/scribo/icons/folder-views-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-views.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vm-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vm.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vscode-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-vscode.svg +2 -0
- data/app/assets/images/scribo/icons/folder-vue-directives-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vue-directives.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vue-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vue.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vuex-store-open.svg +1 -0
- data/app/assets/images/scribo/icons/folder-vuex-store.svg +1 -0
- data/app/assets/images/scribo/icons/folder-wakatime-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-wakatime.svg +2 -0
- data/app/assets/images/scribo/icons/folder-webpack-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-webpack.svg +2 -0
- data/app/assets/images/scribo/icons/folder-wordpress-open.svg +2 -0
- data/app/assets/images/scribo/icons/folder-wordpress.svg +1 -0
- data/app/assets/images/scribo/icons/folder.svg +11 -0
- data/app/assets/images/scribo/icons/font.svg +3 -0
- data/app/assets/images/scribo/icons/foxpro.svg +1 -0
- data/app/assets/images/scribo/icons/fsharp.svg +7 -0
- data/app/assets/images/scribo/icons/fusebox.svg +20 -0
- data/app/assets/images/scribo/icons/gatsby.svg +5 -0
- data/app/assets/images/scribo/icons/gemfile.svg +1 -0
- data/app/assets/images/scribo/icons/git.svg +4 -0
- data/app/assets/images/scribo/icons/gitlab.svg +43 -0
- data/app/assets/images/scribo/icons/gitpod.svg +1 -0
- data/app/assets/images/scribo/icons/go-mod.svg +8 -0
- data/app/assets/images/scribo/icons/go.svg +8 -0
- data/app/assets/images/scribo/icons/go_gopher.svg +25 -0
- data/app/assets/images/scribo/icons/godot-assets.svg +1 -0
- data/app/assets/images/scribo/icons/godot.svg +1 -0
- data/app/assets/images/scribo/icons/gradle.svg +3 -0
- data/app/assets/images/scribo/icons/graphcool.svg +6 -0
- data/app/assets/images/scribo/icons/graphql.svg +11 -0
- data/app/assets/images/scribo/icons/groovy.svg +3 -0
- data/app/assets/images/scribo/icons/grunt.svg +1 -0
- data/app/assets/images/scribo/icons/gulp.svg +3 -0
- data/app/assets/images/scribo/icons/h.svg +6 -0
- data/app/assets/images/scribo/icons/hack.svg +2 -0
- data/app/assets/images/scribo/icons/haml.svg +5 -0
- data/app/assets/images/scribo/icons/handlebars.svg +3 -0
- data/app/assets/images/scribo/icons/haskell.svg +8 -0
- data/app/assets/images/scribo/icons/haxe.svg +17 -0
- data/app/assets/images/scribo/icons/hcl.svg +1 -0
- data/app/assets/images/scribo/icons/hcl_light.svg +1 -0
- data/app/assets/images/scribo/icons/helm.svg +1 -0
- data/app/assets/images/scribo/icons/heroku.svg +1 -0
- data/app/assets/images/scribo/icons/hpp.svg +7 -0
- data/app/assets/images/scribo/icons/html.svg +3 -0
- data/app/assets/images/scribo/icons/http.svg +3 -0
- data/app/assets/images/scribo/icons/i18n.svg +1 -0
- data/app/assets/images/scribo/icons/image.svg +3 -0
- data/app/assets/images/scribo/icons/ionic.svg +1 -0
- data/app/assets/images/scribo/icons/istanbul.svg +1 -0
- data/app/assets/images/scribo/icons/java.svg +3 -0
- data/app/assets/images/scribo/icons/javascript-map.svg +6 -0
- data/app/assets/images/scribo/icons/javascript.svg +3 -0
- data/app/assets/images/scribo/icons/jenkins.svg +1 -0
- data/app/assets/images/scribo/icons/jest.svg +1 -0
- data/app/assets/images/scribo/icons/jinja.svg +17 -0
- data/app/assets/images/scribo/icons/jinja_light.svg +17 -0
- data/app/assets/images/scribo/icons/json.svg +1 -0
- data/app/assets/images/scribo/icons/julia.svg +9 -0
- data/app/assets/images/scribo/icons/jupyter.svg +1 -0
- data/app/assets/images/scribo/icons/karma.svg +8 -0
- data/app/assets/images/scribo/icons/key.svg +3 -0
- data/app/assets/images/scribo/icons/kivy.svg +9 -0
- data/app/assets/images/scribo/icons/kl.svg +8 -0
- data/app/assets/images/scribo/icons/kotlin.svg +14 -0
- data/app/assets/images/scribo/icons/laravel.svg +5 -0
- data/app/assets/images/scribo/icons/less.svg +1 -0
- data/app/assets/images/scribo/icons/lib.svg +3 -0
- data/app/assets/images/scribo/icons/livescript.svg +18 -0
- data/app/assets/images/scribo/icons/lock.svg +3 -0
- data/app/assets/images/scribo/icons/log.svg +4 -0
- data/app/assets/images/scribo/icons/lua.svg +7 -0
- data/app/assets/images/scribo/icons/makefile.svg +1 -0
- data/app/assets/images/scribo/icons/markdown.svg +3 -0
- data/app/assets/images/scribo/icons/markojs.svg +12 -0
- data/app/assets/images/scribo/icons/mathematica.svg +3 -0
- data/app/assets/images/scribo/icons/matlab.svg +8 -0
- data/app/assets/images/scribo/icons/mdx.svg +1 -0
- data/app/assets/images/scribo/icons/merlin.svg +5 -0
- data/app/assets/images/scribo/icons/mint.svg +1 -0
- data/app/assets/images/scribo/icons/mjml.svg +4 -0
- data/app/assets/images/scribo/icons/mocha.svg +2 -0
- data/app/assets/images/scribo/icons/moonscript.svg +1 -0
- data/app/assets/images/scribo/icons/mxml.svg +3 -0
- data/app/assets/images/scribo/icons/nest-controller.svg +8 -0
- data/app/assets/images/scribo/icons/nest-decorator.svg +8 -0
- data/app/assets/images/scribo/icons/nest-filter.svg +8 -0
- data/app/assets/images/scribo/icons/nest-gateway.svg +8 -0
- data/app/assets/images/scribo/icons/nest-guard.svg +8 -0
- data/app/assets/images/scribo/icons/nest-middleware.svg +8 -0
- data/app/assets/images/scribo/icons/nest-module.svg +8 -0
- data/app/assets/images/scribo/icons/nest-pipe.svg +8 -0
- data/app/assets/images/scribo/icons/nest-service.svg +8 -0
- data/app/assets/images/scribo/icons/nest.svg +8 -0
- data/app/assets/images/scribo/icons/netlify.svg +1 -0
- data/app/assets/images/scribo/icons/ngrx-actions.svg +4 -0
- data/app/assets/images/scribo/icons/ngrx-effects.svg +4 -0
- data/app/assets/images/scribo/icons/ngrx-entity.svg +4 -0
- data/app/assets/images/scribo/icons/ngrx-reducer.svg +4 -0
- data/app/assets/images/scribo/icons/ngrx-state.svg +4 -0
- data/app/assets/images/scribo/icons/nim.svg +1 -0
- data/app/assets/images/scribo/icons/nix.svg +6 -0
- data/app/assets/images/scribo/icons/nodejs.svg +3 -0
- data/app/assets/images/scribo/icons/nodejs_alt.svg +1 -0
- data/app/assets/images/scribo/icons/nodemon.svg +7 -0
- data/app/assets/images/scribo/icons/now.svg +1 -0
- data/app/assets/images/scribo/icons/now_light.svg +1 -0
- data/app/assets/images/scribo/icons/npm.svg +8 -0
- data/app/assets/images/scribo/icons/nunjucks.svg +3 -0
- data/app/assets/images/scribo/icons/nuxt.svg +1 -0
- data/app/assets/images/scribo/icons/ocaml.svg +1 -0
- data/app/assets/images/scribo/icons/pdf.svg +1 -0
- data/app/assets/images/scribo/icons/percy.svg +1 -0
- data/app/assets/images/scribo/icons/perl.svg +3 -0
- data/app/assets/images/scribo/icons/php.svg +1 -0
- data/app/assets/images/scribo/icons/php_elephant.svg +4 -0
- data/app/assets/images/scribo/icons/postcss.svg +9 -0
- data/app/assets/images/scribo/icons/powerpoint.svg +3 -0
- data/app/assets/images/scribo/icons/powershell.svg +1 -0
- data/app/assets/images/scribo/icons/prettier.svg +35 -0
- data/app/assets/images/scribo/icons/prisma.svg +1 -0
- data/app/assets/images/scribo/icons/processing.svg +5 -0
- data/app/assets/images/scribo/icons/processing_light.svg +5 -0
- data/app/assets/images/scribo/icons/protractor.svg +1 -0
- data/app/assets/images/scribo/icons/pug.svg +22 -0
- data/app/assets/images/scribo/icons/puppet.svg +13 -0
- data/app/assets/images/scribo/icons/purescript.svg +1 -0
- data/app/assets/images/scribo/icons/python-misc.svg +1 -0
- data/app/assets/images/scribo/icons/python.svg +8 -0
- data/app/assets/images/scribo/icons/r.svg +4 -0
- data/app/assets/images/scribo/icons/racket.svg +1 -0
- data/app/assets/images/scribo/icons/raml.svg +1 -0
- data/app/assets/images/scribo/icons/razor.svg +1 -0
- data/app/assets/images/scribo/icons/react.svg +3 -0
- data/app/assets/images/scribo/icons/react_ts.svg +1 -0
- data/app/assets/images/scribo/icons/readme.svg +3 -0
- data/app/assets/images/scribo/icons/reason.svg +3 -0
- data/app/assets/images/scribo/icons/red.svg +8 -0
- data/app/assets/images/scribo/icons/redux-action.svg +1 -0
- data/app/assets/images/scribo/icons/redux-reducer.svg +1 -0
- data/app/assets/images/scribo/icons/redux-store.svg +1 -0
- data/app/assets/images/scribo/icons/restql.svg +60 -0
- data/app/assets/images/scribo/icons/riot.svg +1 -0
- data/app/assets/images/scribo/icons/robot.svg +1 -0
- data/app/assets/images/scribo/icons/rollup.svg +50 -0
- data/app/assets/images/scribo/icons/routing.svg +3 -0
- data/app/assets/images/scribo/icons/ruby.svg +3 -0
- data/app/assets/images/scribo/icons/rust.svg +3 -0
- data/app/assets/images/scribo/icons/san.svg +1 -0
- data/app/assets/images/scribo/icons/sass.svg +1 -0
- data/app/assets/images/scribo/icons/sbt.svg +6 -0
- data/app/assets/images/scribo/icons/scala.svg +1 -0
- data/app/assets/images/scribo/icons/scheme.svg +1 -0
- data/app/assets/images/scribo/icons/semantic-release.svg +1 -0
- data/app/assets/images/scribo/icons/semantic-release_light.svg +1 -0
- data/app/assets/images/scribo/icons/sequelize.svg +31 -0
- data/app/assets/images/scribo/icons/settings.svg +3 -0
- data/app/assets/images/scribo/icons/shaderlab.svg +3 -0
- data/app/assets/images/scribo/icons/silverstripe.svg +1 -0
- data/app/assets/images/scribo/icons/slim.svg +4 -0
- data/app/assets/images/scribo/icons/smarty.svg +3 -0
- data/app/assets/images/scribo/icons/snyk.svg +23 -0
- data/app/assets/images/scribo/icons/solidity.svg +7 -0
- data/app/assets/images/scribo/icons/stencil.svg +1 -0
- data/app/assets/images/scribo/icons/stencil_light.svg +1 -0
- data/app/assets/images/scribo/icons/storybook.svg +1 -0
- data/app/assets/images/scribo/icons/stylelint.svg +12 -0
- data/app/assets/images/scribo/icons/stylelint_light.svg +12 -0
- data/app/assets/images/scribo/icons/stylus.svg +1 -0
- data/app/assets/images/scribo/icons/sublime.svg +1 -0
- data/app/assets/images/scribo/icons/svelte.svg +1 -0
- data/app/assets/images/scribo/icons/svg.svg +1 -0
- data/app/assets/images/scribo/icons/swc.svg +12 -0
- data/app/assets/images/scribo/icons/swift.svg +1 -0
- data/app/assets/images/scribo/icons/table.svg +3 -0
- data/app/assets/images/scribo/icons/tailwindcss.svg +1 -0
- data/app/assets/images/scribo/icons/terraform.svg +12 -0
- data/app/assets/images/scribo/icons/test-js.svg +1 -0
- data/app/assets/images/scribo/icons/test-jsx.svg +4 -0
- data/app/assets/images/scribo/icons/test-ts.svg +1 -0
- data/app/assets/images/scribo/icons/tex.svg +1 -0
- data/app/assets/images/scribo/icons/todo.svg +1 -0
- data/app/assets/images/scribo/icons/travis.svg +13 -0
- data/app/assets/images/scribo/icons/tune.svg +7 -0
- data/app/assets/images/scribo/icons/twig.svg +3 -0
- data/app/assets/images/scribo/icons/typescript-def.svg +6 -0
- data/app/assets/images/scribo/icons/typescript.svg +3 -0
- data/app/assets/images/scribo/icons/url.svg +3 -0
- data/app/assets/images/scribo/icons/vagrant.svg +1 -0
- data/app/assets/images/scribo/icons/velocity.svg +1 -0
- data/app/assets/images/scribo/icons/verilog.svg +3 -0
- data/app/assets/images/scribo/icons/vfl.svg +16 -0
- data/app/assets/images/scribo/icons/video.svg +4 -0
- data/app/assets/images/scribo/icons/vim.svg +1 -0
- data/app/assets/images/scribo/icons/virtual.svg +1 -0
- data/app/assets/images/scribo/icons/visualstudio.svg +4 -0
- data/app/assets/images/scribo/icons/vscode.svg +9 -0
- data/app/assets/images/scribo/icons/vue-config.svg +1 -0
- data/app/assets/images/scribo/icons/vue.svg +1 -0
- data/app/assets/images/scribo/icons/vuex-store.svg +1 -0
- data/app/assets/images/scribo/icons/wakatime.svg +21 -0
- data/app/assets/images/scribo/icons/wakatime_light.svg +21 -0
- data/app/assets/images/scribo/icons/wallaby.svg +1 -0
- data/app/assets/images/scribo/icons/watchman.svg +4 -0
- data/app/assets/images/scribo/icons/webassembly.svg +1 -0
- data/app/assets/images/scribo/icons/webhint.svg +5 -0
- data/app/assets/images/scribo/icons/webpack.svg +6 -0
- data/app/assets/images/scribo/icons/wepy.svg +1 -0
- data/app/assets/images/scribo/icons/wolframlanguage.svg +13 -0
- data/app/assets/images/scribo/icons/word.svg +3 -0
- data/app/assets/images/scribo/icons/xaml.svg +3 -0
- data/app/assets/images/scribo/icons/xml.svg +4 -0
- data/app/assets/images/scribo/icons/yaml.svg +1 -0
- data/app/assets/images/scribo/icons/yang.svg +1 -0
- data/app/assets/images/scribo/icons/yarn.svg +3 -0
- data/app/assets/images/scribo/icons/zip.svg +3 -0
- data/app/assets/stylesheets/scribo/application.css +108 -0
- data/app/assets/stylesheets/scribo/components/file-icons.css +158 -0
- data/app/assets/stylesheets/scribo/components/open-editors.css +83 -0
- data/app/assets/stylesheets/scribo/components/tree-view.css +312 -0
- data/app/javascript/scribo/application.js +2 -0
- data/app/javascript/scribo/controllers/application.js +12 -0
- data/app/javascript/scribo/controllers/image_editor_controller.js +72 -0
- data/app/javascript/scribo/controllers/index.js +4 -0
- data/app/javascript/scribo/controllers/open_editors_controller.js +291 -0
- data/app/javascript/scribo/controllers/text_editor_controller.js +39 -0
- data/app/javascript/scribo/controllers/tree_view_controller.js +378 -0
- data/app/javascript/scribo/controllers/upload_controller.js +81 -0
- data/app/views/scribo/admin/sites/contents/_form.html.slim +11 -12
- data/app/views/scribo/shared/_ide.html.slim +1 -1
- data/app/views/scribo/shared/_tree-view.html.slim +3 -3
- data/bin/importmap +4 -0
- data/bin/rails +14 -0
- data/bin/rake +29 -0
- data/bin/rubocop +29 -0
- data/cli/.gitignore +2 -0
- data/cli/scribo.cr +103 -0
- data/cli/shard.lock +6 -0
- data/cli/shard.yml +18 -0
- data/config/importmap.rb +8 -0
- data/docs/content.md +33 -0
- data/docs/editor.png +0 -0
- data/docs/features.md +71 -0
- data/docs/ide.md +17 -0
- data/docs/import_export.md +7 -0
- data/docs/liquid.md +59 -0
- data/favicon.ico +0 -0
- data/frontend/images/.DS_Store +0 -0
- data/icon.png +0 -0
- data/lib/generators/scribo/install_generator.rb +22 -0
- data/lib/generators/scribo/tailwind_config_generator.rb +24 -0
- data/lib/generators/scribo/templates/config/initializers/scribo.rb +16 -0
- data/lib/scribo/engine.rb +19 -8
- data/lib/scribo/version.rb +1 -1
- data/lib/tasks/scribo_tasks.rake +13 -0
- data/logo.svg +1 -0
- data/scribo.gemspec +54 -0
- data/vendor/javascript/@hotwired--stimulus.js +2 -0
- data/vendor/javascript/painterro.js +2 -0
- data/vendor/javascript/sortablejs.js +134 -0
- data/yarn.lock +6775 -0
- metadata +683 -15
- data/app/assets/javascripts/scribo/scribo.js +0 -1
- data/app/assets/stylesheets/scribo/scribo.css +0 -1
- data/lib/scribo/liquid/tags/editable_url_tag.rb +0 -19
@@ -0,0 +1,158 @@
|
|
1
|
+
@define-mixin file-icons {
|
2
|
+
.name[data-path$=".txt"] {
|
3
|
+
background-image: url("scribo/icons/document.svg");
|
4
|
+
}
|
5
|
+
.name[data-path$=".html"] {
|
6
|
+
background-image: url("scribo/icons/html.svg");
|
7
|
+
}
|
8
|
+
.name[data-path$=".json"] {
|
9
|
+
background-image: url("scribo/icons/json.svg");
|
10
|
+
}
|
11
|
+
.name[data-path$=".yaml"] {
|
12
|
+
background-image: url("scribo/icons/yaml.svg");
|
13
|
+
}
|
14
|
+
.name[data-path$=".yml"] {
|
15
|
+
background-image: url("scribo/icons/yaml.svg");
|
16
|
+
}
|
17
|
+
.name[data-path$=".xml"] {
|
18
|
+
background-image: url("scribo/icons/xml.svg");
|
19
|
+
}
|
20
|
+
.name[data-path$=".plist"] {
|
21
|
+
background-image: url("scribo/icons/xml.svg");
|
22
|
+
}
|
23
|
+
|
24
|
+
.name[data-path$=".css"] {
|
25
|
+
background-image: url("scribo/icons/css.svg");
|
26
|
+
}
|
27
|
+
.name[data-path$=".scss"] {
|
28
|
+
background-image: url("scribo/icons/sass.svg");
|
29
|
+
}
|
30
|
+
.name[data-path$=".sass"] {
|
31
|
+
background-image: url("scribo/icons/sass.svg");
|
32
|
+
}
|
33
|
+
|
34
|
+
.name[data-path$=".md"] {
|
35
|
+
background-image: url("scribo/icons/markdown.svg");
|
36
|
+
}
|
37
|
+
.name[data-path$=".markdown"] {
|
38
|
+
background-image: url("scribo/icons/markdown.svg");
|
39
|
+
}
|
40
|
+
.name[data-path="LICENSE"] {
|
41
|
+
background-image: url("scribo/icons/markdown.svg");
|
42
|
+
}
|
43
|
+
// script
|
44
|
+
.name[data-path$=".js"] {
|
45
|
+
background-image: url("scribo/icons/javascript.svg");
|
46
|
+
}
|
47
|
+
.name[data-path$=".rb"] {
|
48
|
+
background-image: url("scribo/icons/ruby.svg");
|
49
|
+
}
|
50
|
+
.name[data-path="Gemfile"] {
|
51
|
+
background-image: url("scribo/icons/ruby.svg");
|
52
|
+
}
|
53
|
+
.name[data-path="Gemfile.lock"] {
|
54
|
+
background-image: url("scribo/icons/ruby.svg");
|
55
|
+
}
|
56
|
+
|
57
|
+
// image
|
58
|
+
.name[data-path$=".png"] {
|
59
|
+
background-image: url("scribo/icons/image.svg");
|
60
|
+
}
|
61
|
+
.name[data-path$=".gif"] {
|
62
|
+
background-image: url("scribo/icons/image.svg");
|
63
|
+
}
|
64
|
+
.name[data-path$=".bmp"] {
|
65
|
+
background-image: url("scribo/icons/image.svg");
|
66
|
+
}
|
67
|
+
.name[data-path$=".webp"] {
|
68
|
+
background-image: url("scribo/icons/image.svg");
|
69
|
+
}
|
70
|
+
.name[data-path$=".jpeg"] {
|
71
|
+
background-image: url("scribo/icons/image.svg");
|
72
|
+
}
|
73
|
+
.name[data-path$=".jpg"] {
|
74
|
+
background-image: url("scribo/icons/image.svg");
|
75
|
+
}
|
76
|
+
.name[data-path$=".svg"] {
|
77
|
+
background-image: url("scribo/icons/image.svg");
|
78
|
+
}
|
79
|
+
.name[data-path$=".ico"] {
|
80
|
+
background-image: url("scribo/icons/image.svg");
|
81
|
+
}
|
82
|
+
|
83
|
+
// video
|
84
|
+
.name[data-path$=".webm"] {
|
85
|
+
background-image: url("scribo/icons/video.svg");
|
86
|
+
}
|
87
|
+
.name[data-path$=".ogg"] {
|
88
|
+
background-image: url("scribo/icons/video.svg");
|
89
|
+
}
|
90
|
+
.name[data-path$=".mp4"] {
|
91
|
+
background-image: url("scribo/icons/video.svg");
|
92
|
+
}
|
93
|
+
|
94
|
+
// audio
|
95
|
+
.name[data-path$=".midi"] {
|
96
|
+
background-image: url("scribo/icons/audio.svg");
|
97
|
+
}
|
98
|
+
.name[data-path$=".mpeg"] {
|
99
|
+
background-image: url("scribo/icons/audio.svg");
|
100
|
+
}
|
101
|
+
.name[data-path$=".webm"] {
|
102
|
+
background-image: url("scribo/icons/audio.svg");
|
103
|
+
}
|
104
|
+
.name[data-path$=".wav"] {
|
105
|
+
background-image: url("scribo/icons/audio.svg");
|
106
|
+
}
|
107
|
+
|
108
|
+
// document
|
109
|
+
.name[data-path$=".doc"] {
|
110
|
+
background-image: url("scribo/icons/word.svg");
|
111
|
+
}
|
112
|
+
.name[data-path$=".docx"] {
|
113
|
+
background-image: url("scribo/icons/word.svg");
|
114
|
+
}
|
115
|
+
.name[data-path$=".ppt"] {
|
116
|
+
background-image: url("scribo/icons/powerpoint.svg");
|
117
|
+
}
|
118
|
+
.name[data-path$=".pptx"] {
|
119
|
+
background-image: url("scribo/icons/powerpoint.svg");
|
120
|
+
}
|
121
|
+
.name[data-path$=".csv"] {
|
122
|
+
background-image: url("scribo/icons/table.svg");
|
123
|
+
}
|
124
|
+
.name[data-path$=".xls"] {
|
125
|
+
background-image: url("scribo/icons/table.svg");
|
126
|
+
}
|
127
|
+
.name[data-path$=".xlsx"] {
|
128
|
+
background-image: url("scribo/icons/table.svg");
|
129
|
+
}
|
130
|
+
.name[data-path$=".pdf"] {
|
131
|
+
background-image: url("scribo/icons/pdf.svg");
|
132
|
+
}
|
133
|
+
.name[data-path$=".zip"] {
|
134
|
+
background-image: url("scribo/icons/zip.svg");
|
135
|
+
}
|
136
|
+
|
137
|
+
// font
|
138
|
+
.name[data-path$=".eot"] {
|
139
|
+
background-image: url("scribo/icons/font.svg");
|
140
|
+
}
|
141
|
+
.name[data-path$=".otf"] {
|
142
|
+
background-image: url("scribo/icons/font.svg");
|
143
|
+
}
|
144
|
+
.name[data-path$=".ttf"] {
|
145
|
+
background-image: url("scribo/icons/font.svg");
|
146
|
+
}
|
147
|
+
.name[data-path$=".woff"] {
|
148
|
+
background-image: url("scribo/icons/font.svg");
|
149
|
+
}
|
150
|
+
.name[data-path$=".woff2"] {
|
151
|
+
background-image: url("scribo/icons/font.svg");
|
152
|
+
}
|
153
|
+
|
154
|
+
// other
|
155
|
+
.name[data-path$=".link"] {
|
156
|
+
background-image: url("scribo/icons/http.svg");
|
157
|
+
}
|
158
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
.editors-pane {
|
2
|
+
flex: 1;
|
3
|
+
position: relative;
|
4
|
+
min-height: 100vh;
|
5
|
+
|
6
|
+
.editors-tabs {
|
7
|
+
display: flex;
|
8
|
+
flex-direction: row;
|
9
|
+
margin-left: 38px;
|
10
|
+
|
11
|
+
.editor-tab {
|
12
|
+
cursor: pointer;
|
13
|
+
padding: 2px 0.5rem 2px 0.5rem;
|
14
|
+
border-radius: 4px 4px 0 0;
|
15
|
+
border-top: 1px solid #ddd;
|
16
|
+
border-right: 1px solid #ddd;
|
17
|
+
font-size: smaller;
|
18
|
+
background: #f9f9f9;
|
19
|
+
|
20
|
+
html.dark & {
|
21
|
+
background: rgba(55, 65, 81, var(--tw-bg-opacity));
|
22
|
+
}
|
23
|
+
|
24
|
+
svg, i {
|
25
|
+
display: inline;
|
26
|
+
font-size: 70%;
|
27
|
+
margin-left: 0.4rem;
|
28
|
+
color: black;
|
29
|
+
}
|
30
|
+
svg, i:before {
|
31
|
+
content: "\f00d";
|
32
|
+
}
|
33
|
+
|
34
|
+
&:first-child {
|
35
|
+
border-left: 1px solid #ddd;
|
36
|
+
}
|
37
|
+
|
38
|
+
&.editor-tab--active {
|
39
|
+
background: #fff;
|
40
|
+
|
41
|
+
html.dark & {
|
42
|
+
background: #0a001f;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&.editor-tab--dirty {
|
47
|
+
font-weight: bold;
|
48
|
+
svg, i {
|
49
|
+
font-size: 80%;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
&:hover {
|
54
|
+
svg, i {
|
55
|
+
color: black;
|
56
|
+
font-size: 70%;
|
57
|
+
}
|
58
|
+
svg, i:before {
|
59
|
+
content: "\f00d";
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.name {
|
64
|
+
background-repeat: no-repeat;
|
65
|
+
background-position: 0px 50%;
|
66
|
+
padding-left: 22px;
|
67
|
+
line-height: 18px;
|
68
|
+
height: 18px;
|
69
|
+
}
|
70
|
+
|
71
|
+
@mixin file-icons;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
.editors-contents {
|
75
|
+
.editor-content {
|
76
|
+
display: none;
|
77
|
+
|
78
|
+
&.editor-content--active {
|
79
|
+
display: block;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,312 @@
|
|
1
|
+
.tree-view {
|
2
|
+
margin-top: 24px;
|
3
|
+
border-right: 1px solid #ccc;
|
4
|
+
font-size: 14px;
|
5
|
+
user-select: none;
|
6
|
+
-webkit-user-select: none;
|
7
|
+
height: 100%;
|
8
|
+
color: #000;
|
9
|
+
|
10
|
+
html.dark & {
|
11
|
+
color: rgb(209, 213, 219);
|
12
|
+
}
|
13
|
+
padding: 5px;
|
14
|
+
ul {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
padding-left: 10px;
|
18
|
+
}
|
19
|
+
|
20
|
+
li {
|
21
|
+
list-style-type: none;
|
22
|
+
padding-left: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
a.list-item {
|
26
|
+
cursor: pointer;
|
27
|
+
}
|
28
|
+
|
29
|
+
ul.openEditors {
|
30
|
+
li {
|
31
|
+
font-style: italic;
|
32
|
+
|
33
|
+
[data-action="click->open-editors#save"] {
|
34
|
+
display: none;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
li.dirty {
|
39
|
+
font-style: normal;
|
40
|
+
|
41
|
+
[data-action="click->open-editors#save"] {
|
42
|
+
display: inline;
|
43
|
+
}
|
44
|
+
|
45
|
+
.tools {
|
46
|
+
top: 2px;
|
47
|
+
display: inline;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
& .section:first-of-type {
|
53
|
+
margin-top: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
.section {
|
57
|
+
display: block;
|
58
|
+
padding-left: 4px;
|
59
|
+
position: relative;
|
60
|
+
margin-top: 1rem;
|
61
|
+
|
62
|
+
.title {
|
63
|
+
font-weight: bold;
|
64
|
+
text-transform: uppercase;
|
65
|
+
background-repeat: no-repeat;
|
66
|
+
background-position: 0px 50%;
|
67
|
+
padding-left: 0px;
|
68
|
+
line-height: 25px;
|
69
|
+
height: 25px;
|
70
|
+
}
|
71
|
+
|
72
|
+
> ul {
|
73
|
+
padding-left: 0;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
& .section > .tools {
|
78
|
+
display: none;
|
79
|
+
position: absolute;
|
80
|
+
right: 5px;
|
81
|
+
|
82
|
+
i {
|
83
|
+
cursor: pointer;
|
84
|
+
padding: 5px;
|
85
|
+
}
|
86
|
+
|
87
|
+
svg {
|
88
|
+
margin: 5px;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
& > .section:hover > .tools {
|
93
|
+
display: inline;
|
94
|
+
|
95
|
+
a {
|
96
|
+
display: inline;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.list-item {
|
101
|
+
cursor: default;
|
102
|
+
overflow: hidden;
|
103
|
+
white-space: nowrap;
|
104
|
+
text-overflow: ellipsis;
|
105
|
+
}
|
106
|
+
|
107
|
+
.name {
|
108
|
+
background-repeat: no-repeat;
|
109
|
+
background-position: 0px 50%;
|
110
|
+
padding-left: 22px;
|
111
|
+
line-height: 18px;
|
112
|
+
height: 18px;
|
113
|
+
|
114
|
+
small {
|
115
|
+
padding-left: 5px;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
a.list-item {
|
120
|
+
color: #000;
|
121
|
+
html.dark & {
|
122
|
+
color: rgb(209, 213, 219);
|
123
|
+
}
|
124
|
+
display: block;
|
125
|
+
padding-left: 4px;
|
126
|
+
position: relative;
|
127
|
+
}
|
128
|
+
|
129
|
+
a.list-item:hover {
|
130
|
+
background-color: #ddd;
|
131
|
+
html.dark & {
|
132
|
+
background-color: #666;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
svg.s16 {
|
137
|
+
width: 16px;
|
138
|
+
height: 16px;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.tree-view .file > span {
|
143
|
+
background-image: url('file.svg');
|
144
|
+
background-size: 18px 18px;
|
145
|
+
padding-left: 0px;
|
146
|
+
}
|
147
|
+
|
148
|
+
.tree-view .list-item > .tools {
|
149
|
+
display: none;
|
150
|
+
position: absolute;
|
151
|
+
right: 5px;
|
152
|
+
top: -3px;
|
153
|
+
|
154
|
+
i {
|
155
|
+
padding: 5px;
|
156
|
+
}
|
157
|
+
svg {
|
158
|
+
margin: 5px;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
.tree-view .list-item:hover > .tools {
|
163
|
+
display: inline;
|
164
|
+
|
165
|
+
a {
|
166
|
+
display: inline;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
.tree-view li.entry.file.selected .list-item > .tools {
|
171
|
+
display: inline;
|
172
|
+
|
173
|
+
a {
|
174
|
+
display: inline;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
.tree-view .entry {
|
179
|
+
font-weight: normal;
|
180
|
+
}
|
181
|
+
|
182
|
+
.tree-view .entry.selected {
|
183
|
+
font-weight: bold;
|
184
|
+
background-color: lightgray;
|
185
|
+
html.dark & {
|
186
|
+
background-color: #333;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
.tree-view .list-item .name {
|
191
|
+
background-size: 18px 18px;
|
192
|
+
}
|
193
|
+
|
194
|
+
.tree-view .directory.closed > .list-item .name {
|
195
|
+
background-image: url('scribo/icons/folder.svg');
|
196
|
+
background-size: 18px 18px;
|
197
|
+
}
|
198
|
+
|
199
|
+
.tree-view .directory.open > .list-item .name {
|
200
|
+
background-image: url('scribo/icons/folder-open.svg');
|
201
|
+
background-size: 18px 18px;
|
202
|
+
}
|
203
|
+
|
204
|
+
// .tree-view .entry.selected:before {
|
205
|
+
// content: '';
|
206
|
+
// position: absolute;
|
207
|
+
// left: 0;
|
208
|
+
// right: 0;
|
209
|
+
// height: 25px;
|
210
|
+
// background-color: #f5f5f5;
|
211
|
+
// z-index: -1;
|
212
|
+
// }
|
213
|
+
|
214
|
+
.tree-view .directory.closed > ul {
|
215
|
+
display: none;
|
216
|
+
}
|
217
|
+
|
218
|
+
.tree-view .directory.closed > .list-item .name[data-path*="font"] {
|
219
|
+
background-image: url('scribo/icons/folder-font.svg');
|
220
|
+
}
|
221
|
+
.tree-view .directory.open > .list-item .name[data-path*="font"] {
|
222
|
+
background-image: url('scribo/icons/folder-font-open.svg');
|
223
|
+
}
|
224
|
+
|
225
|
+
.tree-view .directory.closed > .list-item .name[data-path*="image"] {
|
226
|
+
background-image: url('scribo/icons/folder-images.svg');
|
227
|
+
}
|
228
|
+
.tree-view .directory.open > .list-item .name[data-path*="image"] {
|
229
|
+
background-image: url('scribo/icons/folder-images-open.svg');
|
230
|
+
}
|
231
|
+
|
232
|
+
.tree-view .directory.closed > .list-item .name[data-path*="data"] {
|
233
|
+
background-image: url('scribo/icons/folder-database.svg');
|
234
|
+
}
|
235
|
+
.tree-view .directory.open > .list-item .name[data-path*="data"] {
|
236
|
+
background-image: url('scribo/icons/folder-database-open.svg');
|
237
|
+
}
|
238
|
+
|
239
|
+
.tree-view .directory.closed > .list-item .name[data-path*="style"] {
|
240
|
+
background-image: url('scribo/icons/folder-css.svg');
|
241
|
+
}
|
242
|
+
.tree-view .directory.open > .list-item .name[data-path*="syle"] {
|
243
|
+
background-image: url('scribo/icons/folder-css-open.svg');
|
244
|
+
}
|
245
|
+
|
246
|
+
.tree-view .directory.closed > .list-item .name[data-path*="css"] {
|
247
|
+
background-image: url('scribo/icons/folder-css.svg');
|
248
|
+
}
|
249
|
+
.tree-view .directory.open > .list-item .name[data-path*="css"] {
|
250
|
+
background-image: url('scribo/icons/folder-css-open.svg');
|
251
|
+
}
|
252
|
+
|
253
|
+
.tree-view .directory.closed > .list-item .name[data-path*="sass"] {
|
254
|
+
background-image: url('scribo/icons/folder-sass.svg');
|
255
|
+
}
|
256
|
+
.tree-view .directory.open > .list-item .name[data-path*="sass"] {
|
257
|
+
background-image: url('scribo/icons/folder-sass-open.svg');
|
258
|
+
}
|
259
|
+
|
260
|
+
.tree-view .directory.closed > .list-item .name[data-path*="scripts"] {
|
261
|
+
background-image: url('scribo/icons/folder-javascript.svg');
|
262
|
+
}
|
263
|
+
.tree-view .directory.open > .list-item .name[data-path*="scripts"] {
|
264
|
+
background-image: url('scribo/icons/folder-javascript-open.svg');
|
265
|
+
}
|
266
|
+
|
267
|
+
.tree-view .directory.closed > .list-item .name[data-path*="layout"] {
|
268
|
+
background-image: url('scribo/icons/folder-layout.svg');
|
269
|
+
}
|
270
|
+
.tree-view .directory.open > .list-item .name[data-path*="layout"] {
|
271
|
+
background-image: url('scribo/icons/folder-layout-open.svg');
|
272
|
+
}
|
273
|
+
|
274
|
+
.tree-view .directory.closed > .list-item .name[data-path*="pages"] {
|
275
|
+
background-image: url('scribo/icons/folder-views.svg');
|
276
|
+
}
|
277
|
+
.tree-view .directory.open > .list-item .name[data-path*="pages"] {
|
278
|
+
background-image: url('scribo/icons/folder-views-open.svg');
|
279
|
+
}
|
280
|
+
|
281
|
+
.tree-view .directory.closed > .list-item .name[data-path*="post"] {
|
282
|
+
background-image: url('scribo/icons/folder-archive.svg');
|
283
|
+
}
|
284
|
+
.tree-view .directory.open > .list-item .name[data-path*="post"] {
|
285
|
+
background-image: url('scribo/icons/folder-archive-open.svg');
|
286
|
+
}
|
287
|
+
|
288
|
+
.tree-view .directory.closed > .list-item .name[data-path*="component"] {
|
289
|
+
background-image: url('scribo/icons/folder-components.svg');
|
290
|
+
}
|
291
|
+
.tree-view .directory.open > .list-item .name[data-path*="component"] {
|
292
|
+
background-image: url('scribo/icons/folder-components-open.svg');
|
293
|
+
}
|
294
|
+
|
295
|
+
.tree-view .directory.closed > .list-item .name[data-path*="lib"] {
|
296
|
+
background-image: url('scribo/icons/folder-lib.svg');
|
297
|
+
}
|
298
|
+
.tree-view .directory.open > .list-item .name[data-path*="lib"] {
|
299
|
+
background-image: url('scribo/icons/folder-lib-open.svg');
|
300
|
+
}
|
301
|
+
|
302
|
+
.tree-view .directory.closed > .list-item .name[data-path*="include"] {
|
303
|
+
background-image: url('scribo/icons/folder-include.svg');
|
304
|
+
}
|
305
|
+
|
306
|
+
.tree-view .directory.open > .list-item .name[data-path*="include"] {
|
307
|
+
background-image: url('scribo/icons/folder-include-open.svg');
|
308
|
+
}
|
309
|
+
|
310
|
+
.tree-view .file > .list-item {
|
311
|
+
@mixin file-icons;
|
312
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Application } from '@hotwired/stimulus'
|
2
|
+
|
3
|
+
let application
|
4
|
+
if (window.Stimulus) {
|
5
|
+
application = window.Stimulus
|
6
|
+
} else {
|
7
|
+
application = Application.start()
|
8
|
+
application.debug = false
|
9
|
+
window.Stimulus = application
|
10
|
+
}
|
11
|
+
|
12
|
+
export { application }
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { Controller } from "@hotwired/stimulus"
|
2
|
+
import Painterro from "painterro"
|
3
|
+
|
4
|
+
export default class extends Controller {
|
5
|
+
static targets = ["textarea"]
|
6
|
+
connect() {
|
7
|
+
const self = this
|
8
|
+
this.dirtyTrackingEnabled = false
|
9
|
+
this.editor = Painterro({
|
10
|
+
id: self.element.id,
|
11
|
+
toolbarPosition: "top",
|
12
|
+
hiddenTools: ["close", "save"],
|
13
|
+
hideByEsc: false,
|
14
|
+
saveByEnter: false,
|
15
|
+
onImageLoaded: (e) => {
|
16
|
+
self.dirtyTrackingEnabled = true
|
17
|
+
},
|
18
|
+
onChange: (e) => {
|
19
|
+
if (self.dirtyTrackingEnabled == false) {
|
20
|
+
return
|
21
|
+
}
|
22
|
+
let event = new CustomEvent("content-editor.changed", {
|
23
|
+
bubbles: true,
|
24
|
+
cancelable: true,
|
25
|
+
detail: {
|
26
|
+
contentId: self.data.get("content-id"),
|
27
|
+
dirty: true,
|
28
|
+
},
|
29
|
+
})
|
30
|
+
self.element.dispatchEvent(event)
|
31
|
+
},
|
32
|
+
saveHandler: (image, done) => {
|
33
|
+
const formData = new FormData()
|
34
|
+
formData.append("_method", "PATCH")
|
35
|
+
formData.append(
|
36
|
+
"content[data_with_frontmatter]",
|
37
|
+
image.asBlob(self.data.get("mime-type"))
|
38
|
+
)
|
39
|
+
|
40
|
+
fetch(self.data.get("save-url"), {
|
41
|
+
method: "POST",
|
42
|
+
headers: {
|
43
|
+
Accept: "application/json, text/javascript",
|
44
|
+
"X-CSRF-Token": document.querySelector("meta[name=csrf-token]")
|
45
|
+
.content,
|
46
|
+
},
|
47
|
+
body: formData,
|
48
|
+
}).then((response) => {
|
49
|
+
if (response.status == 200) {
|
50
|
+
let event = new CustomEvent("content-editor.changed", {
|
51
|
+
bubbles: true,
|
52
|
+
cancelable: true,
|
53
|
+
detail: {
|
54
|
+
contentId: self.data.get("content-id"),
|
55
|
+
dirty: false,
|
56
|
+
},
|
57
|
+
})
|
58
|
+
self.element.dispatchEvent(event)
|
59
|
+
done(false)
|
60
|
+
}
|
61
|
+
})
|
62
|
+
},
|
63
|
+
})
|
64
|
+
this.editor.toolByKeyCode = {}
|
65
|
+
|
66
|
+
this.editor.show(this.data.get("url"))
|
67
|
+
}
|
68
|
+
disconnect() {}
|
69
|
+
save() {
|
70
|
+
this.editor.save()
|
71
|
+
}
|
72
|
+
}
|