@joystick.js/cli-canary 0.0.0-canary.21 → 0.0.0-canary.2100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.build/getFilesToBuild.js +1 -1
- package/.build/index.js +4 -3
- package/LICENSE.md +59 -0
- package/README.md +45 -4
- package/dist/cli.js +2 -69
- package/dist/cli.js.map +7 -0
- package/dist/commands/build/definition.js +2 -0
- package/dist/commands/build/definition.js.map +7 -0
- package/dist/commands/build/index.js +2 -0
- package/dist/commands/build/index.js.map +7 -0
- package/dist/commands/create/build_package_json.js +2 -0
- package/dist/commands/create/build_package_json.js.map +7 -0
- package/dist/commands/create/definition.js +2 -0
- package/dist/commands/create/definition.js.map +7 -0
- package/dist/commands/create/index.js +3 -0
- package/dist/commands/create/index.js.map +7 -0
- package/dist/commands/create/template/api/index.js +6 -0
- package/dist/commands/create/template/email/base.css +9 -0
- package/dist/commands/create/template/email/base.html +10 -0
- package/dist/commands/create/template/email/reset_password.js +20 -0
- package/dist/commands/create/template/i18n/en-US.js +14 -0
- package/dist/commands/create/template/index.client.js +1 -0
- package/dist/commands/create/template/index.css +34 -0
- package/dist/{functions/create/templates → commands/create/template}/index.html +2 -3
- package/dist/{functions/create/templates → commands/create/template}/index.server.js +6 -6
- package/dist/commands/create/template/public/apple-touch-icon-152x152.png +0 -0
- package/dist/commands/create/template/public/favicon.ico +0 -0
- package/dist/commands/create/template/public/joystick_logo.webp +0 -0
- package/dist/{functions/create/templates → commands/create/template}/public/manifest.json +4 -4
- package/dist/commands/create/template/public/splash-screen-1024x1024.png +0 -0
- package/{src/functions/create/templates → dist/commands/create/template}/ui/components/button/index.js +14 -6
- package/{src/functions/create/templates → dist/commands/create/template}/ui/layouts/app/index.js +2 -2
- package/dist/commands/create/template/ui/pages/error/index.js +50 -0
- package/dist/commands/create/template/ui/pages/index/index.js +121 -0
- package/dist/commands/help/definition.js +2 -0
- package/dist/commands/help/definition.js.map +7 -0
- package/dist/commands/help/index.js +20 -0
- package/dist/commands/help/index.js.map +7 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/index.js.map +7 -0
- package/dist/commands/logout/definition.js +2 -0
- package/dist/commands/logout/definition.js.map +7 -0
- package/dist/commands/logout/index.js +4 -0
- package/dist/commands/logout/index.js.map +7 -0
- package/dist/commands/push/check_if_settings_valid.js +2 -0
- package/dist/commands/push/check_if_settings_valid.js.map +7 -0
- package/dist/commands/push/definition.js +2 -0
- package/dist/commands/push/definition.js.map +7 -0
- package/dist/commands/push/get_deployment.js +2 -0
- package/dist/commands/push/get_deployment.js.map +7 -0
- package/dist/commands/push/get_deployment_token.js +2 -0
- package/dist/commands/push/get_deployment_token.js.map +7 -0
- package/dist/commands/push/get_push_domain.js +2 -0
- package/dist/commands/push/get_push_domain.js.map +7 -0
- package/dist/commands/push/get_settings_file.js +2 -0
- package/dist/commands/push/get_settings_file.js.map +7 -0
- package/dist/commands/push/index.js +6 -0
- package/dist/commands/push/index.js.map +7 -0
- package/dist/commands/push/upload_build_to_push.js +2 -0
- package/dist/commands/push/upload_build_to_push.js.map +7 -0
- package/dist/commands/push_old/cdn_mirrors.js +2 -0
- package/dist/commands/push_old/cdn_mirrors.js.map +7 -0
- package/dist/commands/push_old/check_if_settings_valid.js +2 -0
- package/dist/commands/push_old/check_if_settings_valid.js.map +7 -0
- package/dist/commands/push_old/create_version.js +2 -0
- package/dist/commands/push_old/create_version.js.map +7 -0
- package/dist/commands/push_old/definition.js +2 -0
- package/dist/commands/push_old/definition.js.map +7 -0
- package/dist/commands/push_old/get_app_domain.js +2 -0
- package/dist/commands/push_old/get_app_domain.js.map +7 -0
- package/dist/commands/push_old/get_deployment.js +2 -0
- package/dist/commands/push_old/get_deployment.js.map +7 -0
- package/dist/commands/push_old/get_provision_domain.js +2 -0
- package/dist/commands/push_old/get_provision_domain.js.map +7 -0
- package/dist/commands/push_old/get_session_token.js +2 -0
- package/dist/commands/push_old/get_session_token.js.map +7 -0
- package/dist/commands/push_old/get_settings_file.js +2 -0
- package/dist/commands/push_old/get_settings_file.js.map +7 -0
- package/dist/commands/push_old/handle_initial_deployment.js +2 -0
- package/dist/commands/push_old/handle_initial_deployment.js.map +7 -0
- package/dist/commands/push_old/handle_version_deployment.js +2 -0
- package/dist/commands/push_old/handle_version_deployment.js.map +7 -0
- package/dist/commands/push_old/index.js +9 -0
- package/dist/commands/push_old/index.js.map +7 -0
- package/dist/commands/push_old/prompts/confirm_deployment.js +18 -0
- package/dist/commands/push_old/prompts/confirm_deployment.js.map +7 -0
- package/dist/commands/push_old/prompts/session_token.js +6 -0
- package/dist/commands/push_old/prompts/session_token.js.map +7 -0
- package/dist/commands/push_old/upload_build_to_cdn.js +2 -0
- package/dist/commands/push_old/upload_build_to_cdn.js.map +7 -0
- package/dist/commands/push_old/validate_deployment.js +2 -0
- package/dist/commands/push_old/validate_deployment.js.map +7 -0
- package/dist/commands/push_old/validate_push_config.js +2 -0
- package/dist/commands/push_old/validate_push_config.js.map +7 -0
- package/dist/commands/start/definition.js +2 -0
- package/dist/commands/start/definition.js.map +7 -0
- package/dist/commands/start/index.js +2 -0
- package/dist/commands/start/index.js.map +7 -0
- package/dist/commands/test/definition.js +2 -0
- package/dist/commands/test/definition.js.map +7 -0
- package/dist/commands/test/index.js +2 -0
- package/dist/commands/test/index.js.map +7 -0
- package/dist/commands/update/definition.js +2 -0
- package/dist/commands/update/definition.js.map +7 -0
- package/dist/commands/update/index.js +2 -0
- package/dist/commands/update/index.js.map +7 -0
- package/dist/commands/use/definition.js +2 -0
- package/dist/commands/use/definition.js.map +7 -0
- package/dist/commands/use/index.js +2 -0
- package/dist/commands/use/index.js.map +7 -0
- package/dist/index.js +2 -7
- package/dist/index.js.map +7 -0
- package/dist/lib/build/browser_path_exclusions.js +2 -0
- package/dist/lib/build/browser_path_exclusions.js.map +7 -0
- package/dist/lib/build/browser_paths.js +2 -0
- package/dist/lib/build/browser_paths.js.map +7 -0
- package/dist/lib/build/build_files.js +4 -0
- package/dist/lib/build/build_files.js.map +7 -0
- package/dist/lib/build/copy_paths.js +2 -0
- package/dist/lib/build/copy_paths.js.map +7 -0
- package/dist/lib/build/get_code_frame.js +2 -0
- package/dist/lib/build/get_code_frame.js.map +7 -0
- package/dist/lib/build/get_file_operation.js +2 -0
- package/dist/lib/build/get_file_operation.js.map +7 -0
- package/dist/lib/build/get_files_to_build.js +2 -0
- package/dist/lib/build/get_files_to_build.js.map +7 -0
- package/dist/lib/build/get_path_platform.js +2 -0
- package/dist/lib/build/get_path_platform.js.map +7 -0
- package/dist/lib/build/get_platform_safe_path.js +2 -0
- package/dist/lib/build/get_platform_safe_path.js.map +7 -0
- package/dist/lib/build/get_tar_ignore_list.js +3 -0
- package/dist/lib/build/get_tar_ignore_list.js.map +7 -0
- package/dist/lib/build/index.js +4 -0
- package/dist/lib/build/index.js.map +7 -0
- package/dist/lib/build/master_ignore_list.js +2 -0
- package/dist/lib/build/master_ignore_list.js.map +7 -0
- package/dist/lib/build/minify_file.js +2 -0
- package/dist/lib/build/minify_file.js.map +7 -0
- package/dist/lib/build/node_paths.js +2 -0
- package/dist/lib/build/node_paths.js.map +7 -0
- package/dist/lib/build/on_warn.js +11 -0
- package/dist/lib/build/on_warn.js.map +7 -0
- package/dist/lib/build/plugins/bootstrap_component.js +34 -0
- package/dist/lib/build/plugins/bootstrap_component.js.map +7 -0
- package/dist/lib/build/plugins/generate_file_dependency_map.js +2 -0
- package/dist/lib/build/plugins/generate_file_dependency_map.js.map +7 -0
- package/dist/lib/build/plugins/index.js +2 -0
- package/dist/lib/build/plugins/index.js.map +7 -0
- package/dist/lib/build/plugins/set_component_id.js +3 -0
- package/dist/lib/build/plugins/set_component_id.js.map +7 -0
- package/dist/lib/build/plugins/update_file_map.js +2 -0
- package/dist/lib/build/plugins/update_file_map.js.map +7 -0
- package/dist/lib/build/plugins/warn_node_environment.js +4 -0
- package/dist/lib/build/plugins/warn_node_environment.js.map +7 -0
- package/dist/lib/cli_log.js +14 -0
- package/dist/lib/cli_log.js.map +7 -0
- package/dist/lib/color_log.js +2 -0
- package/dist/lib/color_log.js.map +7 -0
- package/dist/lib/command_exists.js +2 -0
- package/dist/lib/command_exists.js.map +7 -0
- package/dist/lib/constants.js +2 -4
- package/dist/lib/constants.js.map +7 -0
- package/dist/lib/debounce.js +2 -0
- package/dist/lib/debounce.js.map +7 -0
- package/dist/lib/decrypt_buffer.js +2 -0
- package/dist/lib/decrypt_buffer.js.map +7 -0
- package/dist/lib/development_server/ava_config.js +2 -0
- package/dist/lib/development_server/ava_config.js.map +7 -0
- package/dist/lib/development_server/check_if_port_occupied.js +2 -0
- package/dist/lib/development_server/check_if_port_occupied.js.map +7 -0
- package/dist/lib/development_server/cleanup.js +2 -0
- package/dist/lib/development_server/cleanup.js.map +7 -0
- package/dist/lib/development_server/databases/download_database_binary.js +2 -0
- package/dist/lib/development_server/databases/download_database_binary.js.map +7 -0
- package/dist/lib/development_server/databases/installer.js +4 -0
- package/dist/lib/development_server/databases/installer.js.map +7 -0
- package/dist/lib/development_server/databases/mongodb/available_query_parameters.js +2 -0
- package/dist/lib/development_server/databases/mongodb/available_query_parameters.js.map +7 -0
- package/dist/lib/development_server/databases/mongodb/build_connection_string.js +2 -0
- package/dist/lib/development_server/databases/mongodb/build_connection_string.js.map +7 -0
- package/dist/lib/development_server/databases/mongodb/build_query_parameters.js +2 -0
- package/dist/lib/development_server/databases/mongodb/build_query_parameters.js.map +7 -0
- package/dist/lib/development_server/databases/mongodb/check_connection.js +3 -0
- package/dist/lib/development_server/databases/mongodb/check_connection.js.map +7 -0
- package/dist/lib/development_server/databases/mongodb/connect.js +2 -0
- package/dist/lib/development_server/databases/mongodb/connect.js.map +7 -0
- package/dist/lib/development_server/databases/mongodb/index.js +2 -0
- package/dist/lib/development_server/databases/mongodb/index.js.map +7 -0
- package/dist/lib/development_server/databases/postgresql/check_connection.js +3 -0
- package/dist/lib/development_server/databases/postgresql/check_connection.js.map +7 -0
- package/dist/lib/development_server/databases/postgresql/connect.js +2 -0
- package/dist/lib/development_server/databases/postgresql/connect.js.map +7 -0
- package/dist/lib/development_server/databases/postgresql/index.js +3 -0
- package/dist/lib/development_server/databases/postgresql/index.js.map +7 -0
- package/dist/lib/development_server/databases/provider_map.js +2 -0
- package/dist/lib/development_server/databases/provider_map.js.map +7 -0
- package/dist/lib/development_server/databases/redis/check_connection.js +3 -0
- package/dist/lib/development_server/databases/redis/check_connection.js.map +7 -0
- package/dist/lib/development_server/databases/redis/connect.js +2 -0
- package/dist/lib/development_server/databases/redis/connect.js.map +7 -0
- package/dist/lib/development_server/databases/redis/index.js +2 -0
- package/dist/lib/development_server/databases/redis/index.js.map +7 -0
- package/dist/lib/development_server/get_database_process_ids.js +2 -0
- package/dist/lib/development_server/get_database_process_ids.js.map +7 -0
- package/dist/lib/development_server/get_translations.js +2 -0
- package/dist/lib/development_server/get_translations.js.map +7 -0
- package/dist/lib/development_server/hmr_server.js +2 -0
- package/dist/lib/development_server/hmr_server.js.map +7 -0
- package/dist/lib/development_server/index.js +11 -0
- package/dist/lib/development_server/index.js.map +7 -0
- package/dist/lib/development_server/kill_process_ids.js +2 -0
- package/dist/lib/development_server/kill_process_ids.js.map +7 -0
- package/dist/lib/development_server/run_tests.js +3 -0
- package/dist/lib/development_server/run_tests.js.map +7 -0
- package/dist/lib/development_server/start_app_server.js +2 -0
- package/dist/lib/development_server/start_app_server.js.map +7 -0
- package/dist/lib/development_server/start_databases.js +2 -0
- package/dist/lib/development_server/start_databases.js.map +7 -0
- package/dist/lib/development_server/start_hmr_server.js +2 -0
- package/dist/lib/development_server/start_hmr_server.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/browser_path_exclusions.js +2 -0
- package/dist/lib/development_server/watch_for_changes/browser_path_exclusions.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/browser_paths.js +2 -0
- package/dist/lib/development_server/watch_for_changes/browser_paths.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/get_after_run_tasks.js +2 -0
- package/dist/lib/development_server/watch_for_changes/get_after_run_tasks.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/get_file_codependencies.js +2 -0
- package/dist/lib/development_server/watch_for_changes/get_file_codependencies.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/get_platform_safe_path.js +2 -0
- package/dist/lib/development_server/watch_for_changes/get_platform_safe_path.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/index.js +2 -0
- package/dist/lib/development_server/watch_for_changes/index.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/node_paths.js +2 -0
- package/dist/lib/development_server/watch_for_changes/node_paths.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/read_file_dependency_map.js +2 -0
- package/dist/lib/development_server/watch_for_changes/read_file_dependency_map.js.map +7 -0
- package/dist/lib/development_server/watch_for_changes/watch_paths.js +2 -0
- package/dist/lib/development_server/watch_for_changes/watch_paths.js.map +7 -0
- package/dist/lib/dynamic_import.js +2 -0
- package/dist/lib/dynamic_import.js.map +7 -0
- package/dist/lib/encrypt_buffer.js +2 -0
- package/dist/lib/encrypt_buffer.js.map +7 -0
- package/dist/lib/generate_id.js +2 -0
- package/dist/lib/generate_id.js.map +7 -0
- package/dist/lib/get_architecture.js +2 -0
- package/dist/lib/get_architecture.js.map +7 -0
- package/dist/lib/get_files_in_path.js +2 -0
- package/dist/lib/get_files_in_path.js.map +7 -0
- package/dist/lib/get_platform_safe_path.js +2 -0
- package/dist/lib/get_platform_safe_path.js.map +7 -0
- package/dist/lib/get_process_id_from_port.js +3 -0
- package/dist/lib/get_process_id_from_port.js.map +7 -0
- package/dist/lib/is_valid_json_string.js +2 -0
- package/dist/lib/is_valid_json_string.js.map +7 -0
- package/dist/lib/kill_port_process.js +2 -0
- package/dist/lib/kill_port_process.js.map +7 -0
- package/dist/lib/kill_process_id.js +2 -0
- package/dist/lib/kill_process_id.js.map +7 -0
- package/dist/lib/load_settings.js +2 -0
- package/dist/lib/load_settings.js.map +7 -0
- package/dist/lib/loader.js +3 -82
- package/dist/lib/loader.js.map +7 -0
- package/dist/lib/log_bars.js +2 -0
- package/dist/lib/log_bars.js.map +7 -0
- package/dist/lib/node_path_polyfills.js +2 -0
- package/dist/lib/node_path_polyfills.js.map +7 -0
- package/dist/lib/parse_args.js +2 -0
- package/dist/lib/parse_args.js.map +7 -0
- package/dist/lib/parse_options.js +2 -0
- package/dist/lib/parse_options.js.map +7 -0
- package/dist/lib/path_exists.js +2 -0
- package/dist/lib/path_exists.js.map +7 -0
- package/dist/lib/rainbow_road.js +2 -0
- package/dist/lib/rainbow_road.js.map +7 -0
- package/dist/lib/replace_in_files.js +2 -0
- package/dist/lib/replace_in_files.js.map +7 -0
- package/dist/lib/required_files.js +2 -0
- package/dist/lib/required_files.js.map +7 -0
- package/dist/lib/serialize_query_parameters.js +2 -0
- package/dist/lib/serialize_query_parameters.js.map +7 -0
- package/dist/lib/types.js +2 -0
- package/dist/lib/types.js.map +7 -0
- package/dist/lib/unique_array.js +2 -0
- package/dist/lib/unique_array.js.map +7 -0
- package/increment_version.js +3 -0
- package/package.json +22 -39
- package/src/cli.js +73 -46
- package/src/commands/build/definition.js +58 -0
- package/src/commands/build/index.js +7 -0
- package/src/commands/create/build_package_json.js +20 -0
- package/src/commands/create/definition.js +35 -0
- package/src/commands/create/index.js +71 -0
- package/src/commands/create/template/api/index.js +6 -0
- package/src/commands/create/template/email/base.css +9 -0
- package/src/commands/create/template/email/base.html +10 -0
- package/src/commands/create/template/email/reset_password.js +20 -0
- package/src/commands/create/template/i18n/en-US.js +14 -0
- package/src/commands/create/template/index.client.js +1 -0
- package/src/commands/create/template/index.css +34 -0
- package/src/{functions/create/templates → commands/create/template}/index.html +2 -3
- package/src/{functions/create/templates → commands/create/template}/index.server.js +6 -6
- package/src/commands/create/template/public/apple-touch-icon-152x152.png +0 -0
- package/src/commands/create/template/public/favicon.ico +0 -0
- package/src/commands/create/template/public/joystick_logo.webp +0 -0
- package/src/{functions/create/templates → commands/create/template}/public/manifest.json +4 -4
- package/src/commands/create/template/public/splash-screen-1024x1024.png +0 -0
- package/{dist/functions/create/templates → src/commands/create/template}/ui/components/button/index.js +14 -6
- package/{dist/functions/create/templates → src/commands/create/template}/ui/layouts/app/index.js +2 -2
- package/src/commands/create/template/ui/pages/error/index.js +50 -0
- package/src/commands/create/template/ui/pages/index/index.js +121 -0
- package/src/commands/help/definition.js +12 -0
- package/src/commands/help/index.js +48 -0
- package/src/commands/index.js +25 -0
- package/src/commands/logout/definition.js +10 -0
- package/src/commands/logout/index.js +20 -0
- package/src/commands/push/check_if_settings_valid.js +10 -0
- package/src/commands/push/definition.js +58 -0
- package/src/commands/push/get_deployment.js +19 -0
- package/src/commands/push/get_deployment_token.js +30 -0
- package/src/commands/push/get_push_domain.js +8 -0
- package/src/commands/push/get_settings_file.js +47 -0
- package/src/commands/push/index.js +102 -0
- package/src/commands/push/upload_build_to_push.js +37 -0
- package/src/commands/push_old/cdn_mirrors.js +7 -0
- package/src/commands/push_old/check_if_settings_valid.js +10 -0
- package/src/commands/push_old/create_version.js +20 -0
- package/src/commands/push_old/definition.js +43 -0
- package/src/commands/push_old/get_app_domain.js +11 -0
- package/src/commands/push_old/get_deployment.js +19 -0
- package/src/commands/push_old/get_provision_domain.js +9 -0
- package/src/commands/push_old/get_session_token.js +31 -0
- package/src/commands/push_old/get_settings_file.js +47 -0
- package/src/commands/push_old/handle_initial_deployment.js +24 -0
- package/src/commands/push_old/handle_version_deployment.js +23 -0
- package/src/commands/push_old/index.js +190 -0
- package/src/commands/push_old/prompts/confirm_deployment.js +73 -0
- package/src/commands/push_old/prompts/session_token.js +11 -0
- package/src/commands/push_old/upload_build_to_cdn.js +59 -0
- package/src/commands/push_old/validate_deployment.js +19 -0
- package/src/commands/push_old/validate_push_config.js +18 -0
- package/src/commands/start/definition.js +83 -0
- package/src/commands/start/index.js +12 -0
- package/src/commands/test/definition.js +28 -0
- package/src/commands/test/index.js +12 -0
- package/src/commands/update/definition.js +28 -0
- package/src/commands/update/index.js +29 -0
- package/src/commands/use/definition.js +19 -0
- package/src/commands/use/index.js +54 -0
- package/src/index.js +0 -0
- package/src/lib/build/browser_path_exclusions.js +8 -0
- package/src/lib/build/browser_paths.js +11 -0
- package/src/lib/build/build_files.js +167 -0
- package/src/{functions/start/filesToCopy.js → lib/build/copy_paths.js} +7 -5
- package/src/lib/build/get_code_frame.js +11 -0
- package/src/lib/build/get_file_operation.js +25 -0
- package/src/lib/build/get_files_to_build.js +41 -0
- package/src/lib/build/get_path_platform.js +32 -0
- package/src/lib/build/get_platform_safe_path.js +6 -0
- package/src/lib/build/get_tar_ignore_list.js +41 -0
- package/src/lib/build/index.js +137 -0
- package/src/lib/build/master_ignore_list.js +14 -0
- package/src/lib/build/minify_file.js +22 -0
- package/src/lib/build/node_paths.js +20 -0
- package/src/lib/build/on_warn.js +70 -0
- package/src/lib/build/plugins/bootstrap_component.js +191 -0
- package/src/lib/build/plugins/generate_file_dependency_map.js +20 -0
- package/src/lib/build/plugins/index.js +26 -0
- package/src/lib/build/plugins/set_component_id.js +89 -0
- package/src/lib/build/plugins/update_file_map.js +98 -0
- package/src/lib/build/plugins/warn_node_environment.js +20 -0
- package/src/lib/{CLILog.js → cli_log.js} +12 -8
- package/src/lib/color_log.js +7 -0
- package/src/lib/command_exists.js +16 -0
- package/src/lib/constants.js +11 -1
- package/src/lib/debounce.js +9 -0
- package/src/lib/decrypt_buffer.js +12 -0
- package/src/lib/development_server/ava_config.js +14 -0
- package/src/lib/development_server/check_if_port_occupied.js +31 -0
- package/src/lib/development_server/cleanup.js +15 -0
- package/src/lib/development_server/databases/download_database_binary.js +11 -0
- package/src/lib/development_server/databases/installer.js +205 -0
- package/src/lib/{dev/databases/mongodb/availableQueryParameters.js → development_server/databases/mongodb/available_query_parameters.js} +3 -1
- package/src/lib/development_server/databases/mongodb/build_connection_string.js +36 -0
- package/src/lib/development_server/databases/mongodb/build_query_parameters.js +17 -0
- package/src/lib/development_server/databases/mongodb/check_connection.js +46 -0
- package/src/lib/development_server/databases/mongodb/connect.js +27 -0
- package/src/lib/development_server/databases/mongodb/index.js +105 -0
- package/src/lib/development_server/databases/postgresql/check_connection.js +56 -0
- package/src/lib/development_server/databases/postgresql/connect.js +33 -0
- package/src/lib/development_server/databases/postgresql/index.js +156 -0
- package/src/lib/development_server/databases/provider_map.js +20 -0
- package/src/lib/development_server/databases/redis/check_connection.js +55 -0
- package/src/lib/development_server/databases/redis/connect.js +27 -0
- package/src/lib/development_server/databases/redis/index.js +138 -0
- package/src/lib/development_server/get_database_process_ids.js +28 -0
- package/src/lib/development_server/get_translations.js +85 -0
- package/src/lib/development_server/hmr_server.js +94 -0
- package/src/lib/development_server/index.js +438 -0
- package/src/lib/development_server/kill_process_ids.js +8 -0
- package/src/lib/development_server/run_tests.js +84 -0
- package/src/lib/development_server/start_app_server.js +60 -0
- package/src/lib/development_server/start_databases.js +108 -0
- package/src/lib/development_server/start_hmr_server.js +36 -0
- package/src/lib/development_server/watch_for_changes/browser_path_exclusions.js +8 -0
- package/src/lib/development_server/watch_for_changes/browser_paths.js +11 -0
- package/src/lib/development_server/watch_for_changes/get_after_run_tasks.js +36 -0
- package/src/lib/development_server/watch_for_changes/get_file_codependencies.js +53 -0
- package/src/lib/development_server/watch_for_changes/get_platform_safe_path.js +6 -0
- package/src/lib/development_server/watch_for_changes/index.js +222 -0
- package/src/lib/development_server/watch_for_changes/node_paths.js +18 -0
- package/src/lib/development_server/watch_for_changes/read_file_dependency_map.js +18 -0
- package/src/lib/development_server/watch_for_changes/watch_paths.js +23 -0
- package/src/lib/dynamic_import.js +6 -0
- package/src/lib/encrypt_buffer.js +10 -0
- package/src/lib/generate_id.js +15 -0
- package/src/lib/get_architecture.js +43 -0
- package/src/lib/get_files_in_path.js +25 -0
- package/src/lib/get_platform_safe_path.js +8 -0
- package/src/lib/get_process_id_from_port.js +26 -0
- package/src/lib/is_valid_json_string.js +10 -0
- package/src/lib/kill_port_process.js +12 -0
- package/src/lib/kill_process_id.js +19 -0
- package/src/lib/load_settings.js +43 -0
- package/src/lib/loader.js +4 -77
- package/src/lib/log_bars.js +7 -0
- package/src/lib/node_path_polyfills.js +23 -0
- package/src/lib/parse_args.js +16 -0
- package/src/lib/parse_options.js +16 -0
- package/src/lib/path_exists.js +11 -0
- package/src/lib/{rainbowRoad.js → rainbow_road.js} +4 -2
- package/src/lib/replace_in_files.js +40 -0
- package/src/lib/{dev/requiredFiles.js → required_files.js} +3 -1
- package/src/lib/serialize_query_parameters.js +7 -0
- package/src/lib/types.js +60 -0
- package/src/lib/unique_array.js +24 -0
- package/HMRNOTES.txt +0 -23
- package/_package.json +0 -55
- package/canary.js +0 -12
- package/dist/functions/build/getTarIgnoreList.js +0 -25
- package/dist/functions/build/index.js +0 -54
- package/dist/functions/create/buildPackageJSON.js +0 -20
- package/dist/functions/create/index.js +0 -193
- package/dist/functions/create/templates/api/index.js +0 -4
- package/dist/functions/create/templates/i18n/en-US.js +0 -4
- package/dist/functions/create/templates/index.client.js +0 -7
- package/dist/functions/create/templates/index.css +0 -20
- package/dist/functions/create/templates/public/apple-touch-icon-152x152.png +0 -0
- package/dist/functions/create/templates/public/favicon.ico +0 -0
- package/dist/functions/create/templates/public/splash-screen-1024x1024.png +0 -0
- package/dist/functions/create/templates/ui/pages/error/index.js +0 -31
- package/dist/functions/create/templates/ui/pages/index/index.js +0 -94
- package/dist/functions/index.js +0 -243
- package/dist/functions/logout/index.js +0 -20
- package/dist/functions/push/checkIfProvisionAvailable.js +0 -19
- package/dist/functions/push/deploy/index.js +0 -173
- package/dist/functions/push/deploy/initial.js +0 -100
- package/dist/functions/push/deploy/version.js +0 -100
- package/dist/functions/push/domains.js +0 -23
- package/dist/functions/push/getAvailableCDN.js +0 -23
- package/dist/functions/push/getDeployment.js +0 -41
- package/dist/functions/push/getDeploymentSummary.js +0 -38
- package/dist/functions/push/getInstanceSizeRegions.js +0 -37
- package/dist/functions/push/getInstanceSizesForRegion.js +0 -34
- package/dist/functions/push/getProviderInstanceSizes.js +0 -34
- package/dist/functions/push/getProviderRegions.js +0 -36
- package/dist/functions/push/getProvidersWithConnectionStatus.js +0 -20
- package/dist/functions/push/getSessionToken.js +0 -23
- package/dist/functions/push/getUserFromSessionToken.js +0 -37
- package/dist/functions/push/index.js +0 -210
- package/dist/functions/push/loginToCheatCode.js +0 -33
- package/dist/functions/push/pingProvisionAPI.js +0 -31
- package/dist/functions/push/prompts.js +0 -332
- package/dist/functions/push/providerMap.js +0 -11
- package/dist/functions/push/providers.js +0 -9
- package/dist/functions/reset/index.js +0 -0
- package/dist/functions/reset/reset.js +0 -127
- package/dist/functions/start/bootstrapLayoutComponent.js +0 -54
- package/dist/functions/start/bootstrapPageComponent.js +0 -51
- package/dist/functions/start/buildFile.js +0 -85
- package/dist/functions/start/buildFiles.js +0 -76
- package/dist/functions/start/buildPlugins.js +0 -183
- package/dist/functions/start/checkIfPortAvailable.js +0 -18
- package/dist/functions/start/cleanup/index.js +0 -18
- package/dist/functions/start/databases/mongodb/availableQueryParameters.js +0 -42
- package/dist/functions/start/databases/mongodb/buildConnectionString.js +0 -22
- package/dist/functions/start/databases/mongodb/buildQueryParameters.js +0 -14
- package/dist/functions/start/databases/mongodb/checkConnection.js +0 -35
- package/dist/functions/start/databases/mongodb/connect.js +0 -25
- package/dist/functions/start/databases/mongodb/index.js +0 -93
- package/dist/functions/start/databases/postgresql/checkConnection.js +0 -41
- package/dist/functions/start/databases/postgresql/connect.js +0 -27
- package/dist/functions/start/databases/postgresql/index.js +0 -106
- package/dist/functions/start/databases/redis.js +0 -0
- package/dist/functions/start/databases/startProvider.js +0 -16
- package/dist/functions/start/fileDependencyMapper.js +0 -22
- package/dist/functions/start/filesToCopy.js +0 -18
- package/dist/functions/start/generateId.js +0 -74
- package/dist/functions/start/getCodependenciesForFile.js +0 -64
- package/dist/functions/start/getFilesToBuild.js +0 -39
- package/dist/functions/start/getProcessIdFromPort.js +0 -60
- package/dist/functions/start/hmrServer.js +0 -66
- package/dist/functions/start/index.js +0 -10
- package/dist/functions/start/isWindows.js +0 -5
- package/dist/functions/start/minifyFile.js +0 -12
- package/dist/functions/start/onWarn.js +0 -63
- package/dist/functions/start/readFileDependencyMap.js +0 -16
- package/dist/functions/start/removeDeletedDependenciesFromMap.js +0 -18
- package/dist/functions/start/setComponentId.js +0 -46
- package/dist/functions/start/updateFileMap.js +0 -67
- package/dist/functions/test/index.js +0 -30
- package/dist/functions/update/index.js +0 -21
- package/dist/functions/use/index.js +0 -61
- package/dist/lib/CLILog.js +0 -49
- package/dist/lib/build/browserPathExclusions.js +0 -7
- package/dist/lib/build/browserPaths.js +0 -11
- package/dist/lib/build/buildFile.js +0 -84
- package/dist/lib/build/buildFiles.js +0 -183
- package/dist/lib/build/buildPlugins.js +0 -183
- package/dist/lib/build/getCodeFrame.js +0 -10
- package/dist/lib/build/minifyFile.js +0 -12
- package/dist/lib/build/nodePathExclusions.js +0 -7
- package/dist/lib/build/nodePaths.js +0 -11
- package/dist/lib/build/onWarn.js +0 -63
- package/dist/lib/build/removeDeletedDependenciesFromMap.js +0 -18
- package/dist/lib/build/setComponentId.js +0 -46
- package/dist/lib/build/updateFileMap.js +0 -67
- package/dist/lib/buildResolvePlugin.js +0 -21
- package/dist/lib/checkIfValidJSON.js +0 -11
- package/dist/lib/colorLog.js +0 -7
- package/dist/lib/dev/cleanup.js +0 -30
- package/dist/lib/dev/databases/mongodb/availableQueryParameters.js +0 -42
- package/dist/lib/dev/databases/mongodb/buildConnectionString.js +0 -22
- package/dist/lib/dev/databases/mongodb/buildQueryParameters.js +0 -14
- package/dist/lib/dev/databases/mongodb/checkConnection.js +0 -38
- package/dist/lib/dev/databases/mongodb/connect.js +0 -25
- package/dist/lib/dev/databases/mongodb/index.js +0 -93
- package/dist/lib/dev/databases/postgresql/checkConnection.js +0 -41
- package/dist/lib/dev/databases/postgresql/connect.js +0 -27
- package/dist/lib/dev/databases/postgresql/index.js +0 -106
- package/dist/lib/dev/databases/providerMap.js +0 -15
- package/dist/lib/dev/getCodependenciesForFile.js +0 -64
- package/dist/lib/dev/getFilesToBuild.js +0 -38
- package/dist/lib/dev/index.js +0 -382
- package/dist/lib/dev/isWindows.js +0 -5
- package/dist/lib/dev/loadSettings.js +0 -81
- package/dist/lib/dev/readFileDependencyMap.js +0 -16
- package/dist/lib/dev/requiredFiles.js +0 -18
- package/dist/lib/dev/runBuild.js +0 -30
- package/dist/lib/dev/runTests.js +0 -30
- package/dist/lib/dev/startApp.js +0 -30
- package/dist/lib/dev/startDatabases.js +0 -102
- package/dist/lib/dev/startHMR.js +0 -30
- package/dist/lib/dev/updateFileMap.js +0 -67
- package/dist/lib/dev/validateProject.js +0 -0
- package/dist/lib/dev/watchlist.js +0 -15
- package/dist/lib/filesToCopy.js +0 -18
- package/dist/lib/generateId.js +0 -74
- package/dist/lib/getArgs.js +0 -14
- package/dist/lib/getOptions.js +0 -15
- package/dist/lib/getPlatformSafePath.js +0 -7
- package/dist/lib/getProcessIdFromPort.js +0 -60
- package/dist/lib/getProvider.js +0 -8
- package/dist/lib/help.js +0 -56
- package/dist/lib/isObject.js +0 -6
- package/dist/lib/isValidJSONString.js +0 -11
- package/dist/lib/isWindows.js +0 -5
- package/dist/lib/killProcesses.js +0 -0
- package/dist/lib/loadSettings.js +0 -33
- package/dist/lib/masterIgnoreList.js +0 -16
- package/dist/lib/nodeEnvironment.js +0 -9
- package/dist/lib/nodeEnvironments.js +0 -8
- package/dist/lib/parseCookiesFromLogin.js +0 -18
- package/dist/lib/rainbowRoad.js +0 -7
- package/dist/lib/readDirectorySync.js +0 -14
- package/dist/lib/regexes.js +0 -14
- package/dist/lib/replaceBackslashesWithForwardSlashes.js +0 -8
- package/dist/lib/replaceFileProtocol.js +0 -8
- package/dist/lib/serializeQueryParameters.js +0 -8
- package/dist/lib/settings.js +0 -4
- package/dist/lib/validateDatabasesFromSettings.js +0 -34
- package/dist/lib/wait.js +0 -8
- package/release.js +0 -40
- package/src/functions/build/getTarIgnoreList.js +0 -30
- package/src/functions/build/index.js +0 -63
- package/src/functions/create/buildPackageJSON.js +0 -18
- package/src/functions/create/index.js +0 -209
- package/src/functions/create/templates/api/index.js +0 -4
- package/src/functions/create/templates/i18n/en-US.js +0 -4
- package/src/functions/create/templates/index.client.js +0 -7
- package/src/functions/create/templates/index.css +0 -20
- package/src/functions/create/templates/public/apple-touch-icon-152x152.png +0 -0
- package/src/functions/create/templates/public/favicon.ico +0 -0
- package/src/functions/create/templates/public/splash-screen-1024x1024.png +0 -0
- package/src/functions/create/templates/ui/pages/error/index.js +0 -31
- package/src/functions/create/templates/ui/pages/index/index.js +0 -94
- package/src/functions/index.js +0 -243
- package/src/functions/logout/index.js +0 -20
- package/src/functions/push/checkIfProvisionAvailable.js +0 -20
- package/src/functions/push/deploy/index.js +0 -199
- package/src/functions/push/deploy/initial.js +0 -108
- package/src/functions/push/deploy/version.js +0 -108
- package/src/functions/push/domains.js +0 -23
- package/src/functions/push/getAvailableCDN.js +0 -27
- package/src/functions/push/getDeployment.js +0 -43
- package/src/functions/push/getDeploymentSummary.js +0 -39
- package/src/functions/push/getInstanceSizeRegions.js +0 -40
- package/src/functions/push/getInstanceSizesForRegion.js +0 -35
- package/src/functions/push/getProviderInstanceSizes.js +0 -35
- package/src/functions/push/getProviderRegions.js +0 -39
- package/src/functions/push/getProvidersWithConnectionStatus.js +0 -25
- package/src/functions/push/getSessionToken.js +0 -26
- package/src/functions/push/getUserFromSessionToken.js +0 -39
- package/src/functions/push/index.js +0 -245
- package/src/functions/push/loginToCheatCode.js +0 -34
- package/src/functions/push/pingProvisionAPI.js +0 -33
- package/src/functions/push/prompts.js +0 -276
- package/src/functions/push/providerMap.js +0 -8
- package/src/functions/push/providers.js +0 -6
- package/src/functions/reset/index.js +0 -0
- package/src/functions/reset/reset.js +0 -163
- package/src/functions/start/bootstrapLayoutComponent.js +0 -57
- package/src/functions/start/bootstrapPageComponent.js +0 -54
- package/src/functions/start/buildFile.js +0 -97
- package/src/functions/start/buildFiles.js +0 -101
- package/src/functions/start/buildPlugins.js +0 -215
- package/src/functions/start/checkIfPortAvailable.js +0 -21
- package/src/functions/start/cleanup/index.js +0 -23
- package/src/functions/start/databases/mongodb/availableQueryParameters.js +0 -39
- package/src/functions/start/databases/mongodb/buildConnectionString.js +0 -28
- package/src/functions/start/databases/mongodb/buildQueryParameters.js +0 -15
- package/src/functions/start/databases/mongodb/checkConnection.js +0 -36
- package/src/functions/start/databases/mongodb/connect.js +0 -25
- package/src/functions/start/databases/mongodb/index.js +0 -108
- package/src/functions/start/databases/postgresql/checkConnection.js +0 -43
- package/src/functions/start/databases/postgresql/connect.js +0 -27
- package/src/functions/start/databases/postgresql/index.js +0 -127
- package/src/functions/start/databases/redis.js +0 -0
- package/src/functions/start/databases/startProvider.js +0 -15
- package/src/functions/start/fileDependencyMapper.js +0 -24
- package/src/functions/start/generateId.js +0 -73
- package/src/functions/start/getCodependenciesForFile.js +0 -84
- package/src/functions/start/getFilesToBuild.js +0 -49
- package/src/functions/start/getProcessIdFromPort.js +0 -92
- package/src/functions/start/hmrServer.js +0 -78
- package/src/functions/start/index.js +0 -698
- package/src/functions/start/isWindows.js +0 -3
- package/src/functions/start/minifyFile.js +0 -10
- package/src/functions/start/onWarn.js +0 -68
- package/src/functions/start/readFileDependencyMap.js +0 -19
- package/src/functions/start/removeDeletedDependenciesFromMap.js +0 -19
- package/src/functions/start/setComponentId.js +0 -58
- package/src/functions/start/updateFileMap.js +0 -100
- package/src/functions/test/index.js +0 -34
- package/src/functions/update/index.js +0 -20
- package/src/functions/use/index.js +0 -62
- package/src/lib/build/browserPathExclusions.js +0 -5
- package/src/lib/build/browserPaths.js +0 -9
- package/src/lib/build/buildFile.js +0 -91
- package/src/lib/build/buildFiles.js +0 -205
- package/src/lib/build/buildPlugins.js +0 -215
- package/src/lib/build/getCodeFrame.js +0 -8
- package/src/lib/build/minifyFile.js +0 -10
- package/src/lib/build/nodePathExclusions.js +0 -5
- package/src/lib/build/nodePaths.js +0 -9
- package/src/lib/build/onWarn.js +0 -68
- package/src/lib/build/removeDeletedDependenciesFromMap.js +0 -19
- package/src/lib/build/setComponentId.js +0 -58
- package/src/lib/build/updateFileMap.js +0 -100
- package/src/lib/buildResolvePlugin.js +0 -32
- package/src/lib/checkIfValidJSON.js +0 -8
- package/src/lib/colorLog.js +0 -5
- package/src/lib/dev/cleanup.js +0 -34
- package/src/lib/dev/databases/mongodb/buildConnectionString.js +0 -28
- package/src/lib/dev/databases/mongodb/buildQueryParameters.js +0 -15
- package/src/lib/dev/databases/mongodb/checkConnection.js +0 -40
- package/src/lib/dev/databases/mongodb/connect.js +0 -25
- package/src/lib/dev/databases/mongodb/index.js +0 -108
- package/src/lib/dev/databases/postgresql/checkConnection.js +0 -43
- package/src/lib/dev/databases/postgresql/connect.js +0 -27
- package/src/lib/dev/databases/postgresql/index.js +0 -127
- package/src/lib/dev/databases/providerMap.js +0 -13
- package/src/lib/dev/getCodependenciesForFile.js +0 -84
- package/src/lib/dev/getFilesToBuild.js +0 -47
- package/src/lib/dev/index.js +0 -479
- package/src/lib/dev/isWindows.js +0 -3
- package/src/lib/dev/loadSettings.js +0 -92
- package/src/lib/dev/readFileDependencyMap.js +0 -19
- package/src/lib/dev/runBuild.js +0 -33
- package/src/lib/dev/runTests.js +0 -33
- package/src/lib/dev/startApp.js +0 -33
- package/src/lib/dev/startDatabases.js +0 -125
- package/src/lib/dev/startHMR.js +0 -33
- package/src/lib/dev/updateFileMap.js +0 -100
- package/src/lib/dev/validateProject.js +0 -0
- package/src/lib/dev/watchlist.js +0 -13
- package/src/lib/filesToCopy.js +0 -15
- package/src/lib/generateId.js +0 -73
- package/src/lib/getArgs.js +0 -14
- package/src/lib/getOptions.js +0 -12
- package/src/lib/getProcessIdFromPort.js +0 -92
- package/src/lib/getProvider.js +0 -5
- package/src/lib/help.js +0 -56
- package/src/lib/isObject.js +0 -3
- package/src/lib/isValidJSONString.js +0 -8
- package/src/lib/killProcesses.js +0 -5
- package/src/lib/loadSettings.js +0 -40
- package/src/lib/masterIgnoreList.js +0 -13
- package/src/lib/nodeEnvironment.js +0 -6
- package/src/lib/nodeEnvironments.js +0 -8
- package/src/lib/parseCookiesFromLogin.js +0 -21
- package/src/lib/readDirectorySync.js +0 -13
- package/src/lib/regexes.js +0 -7
- package/src/lib/replaceBackslashesWithForwardSlashes.js +0 -8
- package/src/lib/replaceFileProtocol.js +0 -8
- package/src/lib/serializeQueryParameters.js +0 -5
- package/src/lib/settings.js +0 -1
- package/src/lib/validateDatabasesFromSettings.js +0 -37
- package/src/lib/wait.js +0 -5
- package/storage/.verdaccio-db.json +0 -1
- /package/{src/lib → .build}/getPlatformSafePath.js +0 -0
- /package/{src/lib → .build}/isWindows.js +0 -0
- /package/dist/{functions/create/templates → commands/create/template}/public/service-worker.js +0 -0
- /package/dist/{functions/create/templates → commands/create/template}/settings.development.json +0 -0
- /package/src/{functions/create/templates → commands/create/template}/public/service-worker.js +0 -0
- /package/src/{functions/create/templates → commands/create/template}/settings.development.json +0 -0
|
@@ -26,7 +26,7 @@ export default () => {
|
|
|
26
26
|
const filteredFiles = files.filter((path) => {
|
|
27
27
|
return (
|
|
28
28
|
!fs.lstatSync(path).isDirectory() &&
|
|
29
|
-
!["node_modules", "
|
|
29
|
+
!["node_modules", ".DS_Store"].some(
|
|
30
30
|
(excludedPath) => {
|
|
31
31
|
return path.includes(excludedPath);
|
|
32
32
|
}
|
package/.build/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import path from "path";
|
|
|
3
3
|
import esbuild from "esbuild";
|
|
4
4
|
import child_process from 'child_process';
|
|
5
5
|
import getFilesToBuild from "./getFilesToBuild.js";
|
|
6
|
-
import getPlatformSafePath from "
|
|
6
|
+
import getPlatformSafePath from "./getPlatformSafePath.js";
|
|
7
7
|
|
|
8
8
|
const buildFile = (fileToBuild) => {
|
|
9
9
|
const [_, file] = fileToBuild.split(getPlatformSafePath("src/"));
|
|
@@ -14,7 +14,8 @@ const buildFile = (fileToBuild) => {
|
|
|
14
14
|
outfile: `./dist/${file}`,
|
|
15
15
|
platform: "node",
|
|
16
16
|
format: "esm",
|
|
17
|
-
|
|
17
|
+
sourcemap: true,
|
|
18
|
+
minify: true,
|
|
18
19
|
plugins: [],
|
|
19
20
|
})
|
|
20
21
|
.catch((error) => {
|
|
@@ -44,7 +45,7 @@ const files = filesToBuild.map((path) => {
|
|
|
44
45
|
let target = "esm";
|
|
45
46
|
|
|
46
47
|
const copyPaths = [
|
|
47
|
-
getPlatformSafePath("create/
|
|
48
|
+
getPlatformSafePath("commands/create/template"),
|
|
48
49
|
];
|
|
49
50
|
|
|
50
51
|
const isCopyPath = copyPaths.some((copyPath) => {
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
## SAUCR License
|
|
2
|
+
### Source Available Under Commercial Restriction
|
|
3
|
+
Version 1, March 3rd, 2024
|
|
4
|
+
|
|
5
|
+
## Copyright Notice
|
|
6
|
+
|
|
7
|
+
Copyright © 2024 CheatCode Software LLC
|
|
8
|
+
|
|
9
|
+
## Definitions
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution of the source code as defined in this document.
|
|
12
|
+
|
|
13
|
+
"Author" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
16
|
+
|
|
17
|
+
"Work" shall mean the work of authorship, whether in the form of source code, documentation, assets, or other materials, made available under the License, as indicated by a Copyright Notice that is included in or attached to the work.
|
|
18
|
+
|
|
19
|
+
"Derivative Works" shall mean any work, whether in the form of source code, documentation, assets, or other materials that are based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship.
|
|
20
|
+
|
|
21
|
+
## Scope
|
|
22
|
+
|
|
23
|
+
This license covers any and all source code, documentation, assets, or other materials included in the source code ("software", "the software", "project", "the work", "work", "the code", "code", "source", "source code", "repo", "repository", or "git repo") accompanying this license created by the author ("author", "creator", "developer", "developers", "copyright holder", "copyright holders").
|
|
24
|
+
|
|
25
|
+
This license does not cover any source code, documentation, assets, or other materials included in the source code that were not created by the author. Any source code that falls under this description is subject to its own license(s) and requirements.
|
|
26
|
+
|
|
27
|
+
## Copyright & Attribution
|
|
28
|
+
|
|
29
|
+
The full text of this license including the above Copyright Notice shall be included in all derivative works of the source code.
|
|
30
|
+
|
|
31
|
+
The author retains full copyright, intellectual property rights, and patent rights to any and all source code, documentation, assets, or other materials included in the source code created by the author and is licensing usage of the source code, documentation, assets, or other materials included in the source code to you for the express purpose of creating any derivative work that falls within the limits imposed by the "Derivative Works Permitted" and the "Derivative Works Not Permitted" under "Agreement."
|
|
32
|
+
|
|
33
|
+
## Agreement
|
|
34
|
+
|
|
35
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this source code, to use the source code in or as a part of any derivative work permitted under "Derivative Works Permitted." Copying, modifying, publishing, distributing, sub-licensing, and/or sale of the source code is permitted for any work that falls within the limits imposed by the "Derivative Works Permitted" and the "Derivative Works Not Permitted." Any usage not expressed or implied under "Derivative Works Permitted" is prohibited without written permission from the author in addition to the "Derivative Works Not Permitted."
|
|
36
|
+
|
|
37
|
+
## Derivative Works Permitted
|
|
38
|
+
|
|
39
|
+
Under this license, the following derivative works using the source code are permitted:
|
|
40
|
+
|
|
41
|
+
Any software ("software", "app", "application", "tool", "intranet", "dashboard", "interface", "back end", "front end"), Software as a Service (SaaS) or Platform as a Service (PaaS) product or service offered either commercially or non-commercially that does not conflict with the limits of the "Derivative Works Not Permitted" stated below.
|
|
42
|
+
|
|
43
|
+
## Derivative Works Not Permitted
|
|
44
|
+
|
|
45
|
+
Under this license, the following derivative works using the source code are not permitted:
|
|
46
|
+
|
|
47
|
+
An alternative or competing software framework ("framework", "library", "package", "packages", "fork", "forks") that originates as a fork (modified copy of the source code) or copy (either a verbatim, unmodified copy or a reproduction or re-implementation inspired by the source code) either for commercial or non-commercial purposes using either the current name or brand of the source code, Joystick, or a different name, brand, or entity.
|
|
48
|
+
|
|
49
|
+
A Platform as a Service (PaaS) made available commercially or non-commercially that offers the source code itself as a service (e.g., offering a hosted version of the framework as a service).
|
|
50
|
+
|
|
51
|
+
Use of the source code as the training data for any Artificial Intelligence (AI) model.
|
|
52
|
+
|
|
53
|
+
## Requesting Permission for Derivative Works
|
|
54
|
+
|
|
55
|
+
Permission for derivative works not listed under "Derivative Works Permitted" can be requested from the author via email at business@cheatcode.co.
|
|
56
|
+
|
|
57
|
+
## Limitation of Liability
|
|
58
|
+
|
|
59
|
+
THE SOURCE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOURCE CODE OR THE USE OR OTHER DEALINGS IN THE SOURCE CODE.
|
package/README.md
CHANGED
|
@@ -1,7 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
## Joystick
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A full-stack JavaScript framework for building apps and websites.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Official Website](https://cheatcode.co/joystick) | [Documentation](https://docs.cheatcode.co/joystick)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### What is Joystick?
|
|
8
|
+
|
|
9
|
+
Joystick is a full-stack JavaScript framework consisting of four packages:
|
|
10
|
+
|
|
11
|
+
- `@joystick.js/ui` - A front-end framework for building UI components with HTML, CSS, and JavaScript.
|
|
12
|
+
- `@joystick.js/node` - A batteries-included back-end framework based on Node.js, running an HTTP server based on Express.
|
|
13
|
+
- `@joystick.js/test` - A testing library used for writing and instrumenting tests for your Joystick app on the front-end and back-end.
|
|
14
|
+
- `@joystick.js/cli` - A command-line tool for creating Joystick apps, running their development server, and deploying them via CheatCode's [Push](https://cheatcode.co/push) service.
|
|
15
|
+
|
|
16
|
+
Together, these four packages make up Joystick. When you build an app, the first two packages—`@joystick.js/ui` and `@joystick.js/node`—power the app itself, `@joystick.js/cli` helps you create, run, and deploy the app, and `@joystick.js/test` helps you write tests for the app.
|
|
17
|
+
|
|
18
|
+
### What is Joystick conceptually?
|
|
19
|
+
|
|
20
|
+
It's best and easiest to think of Joystick as the "Ruby on Rails" or "Django" of JavaScript. It's designed to give you everything you need in one, easy-to-use system without the need to stitch together a bunch of tools or packages. It was made for full-stack JavaScript developers who want to maximize productivity without sacrificing quality.
|
|
21
|
+
|
|
22
|
+
If you'd like to learn more about the motivation to build Joystick, read about [the philosophy behind the framework](https://docs.cheatcode.co/joystick/philosophy).
|
|
23
|
+
|
|
24
|
+
### Platform Support
|
|
25
|
+
|
|
26
|
+
Joystick supports MacOS, Linux, and Windows and requires Node.js v20 or later.
|
|
27
|
+
|
|
28
|
+
### Installation
|
|
29
|
+
|
|
30
|
+
To start working with Joystick, install the `@joystick.js/cli` package on to your computer:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm i @joystick.js/cli@latest
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Once installed, to create an app, run:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
joystick create <app_name>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Documentation
|
|
43
|
+
|
|
44
|
+
Joystick's documentation can be found [here](https://docs.cheatcode.co/joystick).
|
|
45
|
+
|
|
46
|
+
### License
|
|
47
|
+
|
|
48
|
+
Joystick is [SAUCR](https://saucr.org) licensed.
|
package/dist/cli.js
CHANGED
|
@@ -1,69 +1,2 @@
|
|
|
1
|
-
import chalk from "
|
|
2
|
-
|
|
3
|
-
import functions from "./functions/index.js";
|
|
4
|
-
import getArgs from "./lib/getArgs.js";
|
|
5
|
-
import getOptions from "./lib/getOptions.js";
|
|
6
|
-
const functionNames = Object.keys(functions);
|
|
7
|
-
const functionsCalled = process.argv.filter((arg) => functionNames.includes(arg));
|
|
8
|
-
const showHelp = process.argv.some((arg) => ["-h", "--help"].includes(arg));
|
|
9
|
-
if (showHelp || functionsCalled.length === 0) {
|
|
10
|
-
help();
|
|
11
|
-
process.exit(0);
|
|
12
|
-
}
|
|
13
|
-
if (functionsCalled.length > 1) {
|
|
14
|
-
console.log(chalk.red("Only one function can be called at a time."));
|
|
15
|
-
process.exit(0);
|
|
16
|
-
}
|
|
17
|
-
if (functionsCalled.includes("build")) {
|
|
18
|
-
const args = getArgs(functions.build.args);
|
|
19
|
-
const options = getOptions(functions.build.options);
|
|
20
|
-
if (functions.build.function && typeof functions.build.function === "function") {
|
|
21
|
-
functions.build.function(args, options);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (functionsCalled.includes("create")) {
|
|
25
|
-
const args = getArgs(functions.create.args);
|
|
26
|
-
const options = getOptions(functions.create.options);
|
|
27
|
-
if (!args.name) {
|
|
28
|
-
console.log(chalk.red("Must pass a <name> for your app to joystick create. Run joystick --help for examples."));
|
|
29
|
-
process.exit(0);
|
|
30
|
-
}
|
|
31
|
-
if (functions.create.function && typeof functions.create.function === "function") {
|
|
32
|
-
functions.create.function(args, options);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (functionsCalled.includes("logout")) {
|
|
36
|
-
const args = getArgs(functions.logout.args);
|
|
37
|
-
const options = getOptions(functions.logout.options);
|
|
38
|
-
if (functions.logout.function && typeof functions.logout.function === "function") {
|
|
39
|
-
functions.logout.function(args, options);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
if (functionsCalled.includes("push")) {
|
|
43
|
-
const args = getArgs(functions.push.args);
|
|
44
|
-
const options = getOptions(functions.push.options);
|
|
45
|
-
if (functions.push.function && typeof functions.push.function === "function") {
|
|
46
|
-
functions.push.function(args, options);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if (functionsCalled.includes("start")) {
|
|
50
|
-
const args = getArgs(functions.start.args);
|
|
51
|
-
const options = getOptions(functions.start.options);
|
|
52
|
-
if (functions.start.function && typeof functions.start.function === "function") {
|
|
53
|
-
functions.start.function(args, options);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (functionsCalled.includes("update")) {
|
|
57
|
-
const args = getArgs(functions.update.args);
|
|
58
|
-
const options = getOptions(functions.update.options);
|
|
59
|
-
if (functions.update.function && typeof functions.update.function === "function") {
|
|
60
|
-
functions.update.function(args, options);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (functionsCalled.includes("use")) {
|
|
64
|
-
const args = getArgs(functions.use.args);
|
|
65
|
-
const options = getOptions(functions.use.options);
|
|
66
|
-
if (functions.use.function && typeof functions.use.function === "function") {
|
|
67
|
-
functions.use.function(args, options);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
import c from"chalk";import o from"./commands/index.js";import e from"./lib/parse_args.js";import a from"./lib/parse_options.js";const i=Object.keys(o),n=process.argv.filter(s=>i.includes(s)),m=process.argv.some(s=>["-h","--help"].includes(s));if((m||n.length===0)&&(o.help.command(),process.exit(0)),n.length>1&&(console.log(c.red("Only one command can be called at a time.")),process.exit(0)),n.includes("build")){const s=e(o.build.args),t=a(o.build.options);o.build.command&&o.build.command(s,t)}if(n.includes("create")){const s=e(o.create.args),t=a(o.create.options);s.name||(console.log(c.red("Must pass a <name> for your app to joystick create. Run joystick --help for examples.")),process.exit(0)),o.create.command&&o.create.command(s,t)}if(n.includes("help")){const s=e(o.help.args),t=a(o.help.options);o.help.command&&o.help.command(s,t)}if(n.includes("logout")){const s=e(o.logout.args),t=a(o.logout.options);o.logout.command&&o.logout.command(s,t)}if(n.includes("push")){const s=e(o.push.args),t=a(o.push.options);o.push.command&&o.push.command(s,t)}if(n.includes("start")){const s=e(o.start.args),t=a(o.start.options);o.start.command&&o.start.command(s,t)}if(n.includes("test")){const s=e(o.test.args),t=a(o.test.options);o.test.command&&o.test.command(s,t)}if(n.includes("update")){const s=e(o.update.args),t=a(o.update.options);o.update.command&&o.update.command(s,t)}if(n.includes("use")){const s=e(o.use.args),t=a(o.use.options);o.use.command&&o.use.command(s,t)}
|
|
2
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/cli.js"],
|
|
4
|
+
"sourcesContent": ["import chalk from 'chalk';\nimport commands from './commands/index.js';\nimport parse_args from './lib/parse_args.js';\nimport parse_options from './lib/parse_options.js';\n\nconst command_names = Object.keys(commands);\nconst commands_called = process.argv.filter((arg) => command_names.includes(arg));\n\nconst show_help = process.argv.some((arg) => ['-h', '--help'].includes(arg));\n\nif (show_help || commands_called.length === 0) {\n commands.help.command();\n process.exit(0);\n}\n\nif (commands_called.length > 1) {\n console.log(chalk.red('Only one command can be called at a time.'));\n process.exit(0); \n}\n\nif (commands_called.includes('build')) {\n const args = parse_args(commands.build.args);\n const options = parse_options(commands.build.options);\n\n if (commands.build.command) {\n commands.build.command(args, options);\n }\n}\n\nif (commands_called.includes('create')) {\n const args = parse_args(commands.create.args);\n const options = parse_options(commands.create.options);\n \n if (!args.name) {\n console.log(chalk.red('Must pass a <name> for your app to joystick create. Run joystick --help for examples.'));\n process.exit(0);\n }\n\n if (commands.create.command) {\n commands.create.command(args, options);\n }\n}\n\nif (commands_called.includes('help')) {\n const args = parse_args(commands.help.args);\n const options = parse_options(commands.help.options);\n\n if (commands.help.command) {\n commands.help.command(args, options);\n }\n}\n\nif (commands_called.includes('logout')) {\n const args = parse_args(commands.logout.args);\n const options = parse_options(commands.logout.options);\n\n if (commands.logout.command) {\n commands.logout.command(args, options);\n }\n}\n\nif (commands_called.includes('push')) {\n const args = parse_args(commands.push.args);\n const options = parse_options(commands.push.options);\n\n if (commands.push.command) {\n commands.push.command(args, options);\n }\n}\n\n// NOTE: Temporary. Eventually will replace block above.\n// if (commands_called.includes('push_v2')) {\n// const args = parse_args(commands.push_v2.args);\n// const options = parse_options(commands.push_v2.options);\n\n// if (commands.push_v2.command) {\n// commands.push_v2.command(args, options);\n// }\n// }\n\nif (commands_called.includes('start')) {\n const args = parse_args(commands.start.args);\n const options = parse_options(commands.start.options);\n\n if (commands.start.command) {\n commands.start.command(args, options);\n }\n}\n\nif (commands_called.includes('test')) {\n const args = parse_args(commands.test.args);\n const options = parse_options(commands.test.options);\n\n if (commands.test.command) {\n commands.test.command(args, options);\n }\n}\n\nif (commands_called.includes('update')) {\n const args = parse_args(commands.update.args);\n const options = parse_options(commands.update.options);\n\n if (commands.update.command) {\n commands.update.command(args, options);\n }\n}\n\nif (commands_called.includes('use')) {\n const args = parse_args(commands.use.args);\n const options = parse_options(commands.use.options);\n\n if (commands.use.command) {\n commands.use.command(args, options);\n }\n}"],
|
|
5
|
+
"mappings": "AAAA,OAAOA,MAAW,QAClB,OAAOC,MAAc,sBACrB,OAAOC,MAAgB,sBACvB,OAAOC,MAAmB,yBAE1B,MAAMC,EAAgB,OAAO,KAAKH,CAAQ,EACpCI,EAAkB,QAAQ,KAAK,OAAQC,GAAQF,EAAc,SAASE,CAAG,CAAC,EAE1EC,EAAY,QAAQ,KAAK,KAAMD,GAAQ,CAAC,KAAM,QAAQ,EAAE,SAASA,CAAG,CAAC,EAY3E,IAVIC,GAAaF,EAAgB,SAAW,KAC1CJ,EAAS,KAAK,QAAQ,EACtB,QAAQ,KAAK,CAAC,GAGZI,EAAgB,OAAS,IAC3B,QAAQ,IAAIL,EAAM,IAAI,2CAA2C,CAAC,EAClE,QAAQ,KAAK,CAAC,GAGZK,EAAgB,SAAS,OAAO,EAAG,CACrC,MAAMG,EAAON,EAAWD,EAAS,MAAM,IAAI,EACrCQ,EAAUN,EAAcF,EAAS,MAAM,OAAO,EAEhDA,EAAS,MAAM,SACjBA,EAAS,MAAM,QAAQO,EAAMC,CAAO,CAExC,CAEA,GAAIJ,EAAgB,SAAS,QAAQ,EAAG,CACtC,MAAMG,EAAON,EAAWD,EAAS,OAAO,IAAI,EACtCQ,EAAUN,EAAcF,EAAS,OAAO,OAAO,EAEhDO,EAAK,OACR,QAAQ,IAAIR,EAAM,IAAI,uFAAuF,CAAC,EAC9G,QAAQ,KAAK,CAAC,GAGZC,EAAS,OAAO,SAClBA,EAAS,OAAO,QAAQO,EAAMC,CAAO,CAEzC,CAEA,GAAIJ,EAAgB,SAAS,MAAM,EAAG,CACpC,MAAMG,EAAON,EAAWD,EAAS,KAAK,IAAI,EACpCQ,EAAUN,EAAcF,EAAS,KAAK,OAAO,EAE/CA,EAAS,KAAK,SAChBA,EAAS,KAAK,QAAQO,EAAMC,CAAO,CAEvC,CAEA,GAAIJ,EAAgB,SAAS,QAAQ,EAAG,CACtC,MAAMG,EAAON,EAAWD,EAAS,OAAO,IAAI,EACtCQ,EAAUN,EAAcF,EAAS,OAAO,OAAO,EAEjDA,EAAS,OAAO,SAClBA,EAAS,OAAO,QAAQO,EAAMC,CAAO,CAEzC,CAEA,GAAIJ,EAAgB,SAAS,MAAM,EAAG,CACpC,MAAMG,EAAON,EAAWD,EAAS,KAAK,IAAI,EACpCQ,EAAUN,EAAcF,EAAS,KAAK,OAAO,EAE/CA,EAAS,KAAK,SAChBA,EAAS,KAAK,QAAQO,EAAMC,CAAO,CAEvC,CAYA,GAAIJ,EAAgB,SAAS,OAAO,EAAG,CACrC,MAAMG,EAAON,EAAWD,EAAS,MAAM,IAAI,EACrCQ,EAAUN,EAAcF,EAAS,MAAM,OAAO,EAEhDA,EAAS,MAAM,SACjBA,EAAS,MAAM,QAAQO,EAAMC,CAAO,CAExC,CAEA,GAAIJ,EAAgB,SAAS,MAAM,EAAG,CACpC,MAAMG,EAAON,EAAWD,EAAS,KAAK,IAAI,EACpCQ,EAAUN,EAAcF,EAAS,KAAK,OAAO,EAE/CA,EAAS,KAAK,SAChBA,EAAS,KAAK,QAAQO,EAAMC,CAAO,CAEvC,CAEA,GAAIJ,EAAgB,SAAS,QAAQ,EAAG,CACtC,MAAMG,EAAON,EAAWD,EAAS,OAAO,IAAI,EACtCQ,EAAUN,EAAcF,EAAS,OAAO,OAAO,EAEjDA,EAAS,OAAO,SAClBA,EAAS,OAAO,QAAQO,EAAMC,CAAO,CAEzC,CAEA,GAAIJ,EAAgB,SAAS,KAAK,EAAG,CACnC,MAAMG,EAAON,EAAWD,EAAS,IAAI,IAAI,EACnCQ,EAAUN,EAAcF,EAAS,IAAI,OAAO,EAE9CA,EAAS,IAAI,SACfA,EAAS,IAAI,QAAQO,EAAMC,CAAO,CAEtC",
|
|
6
|
+
"names": ["chalk", "commands", "parse_args", "parse_options", "command_names", "commands_called", "arg", "show_help", "args", "options"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from"./index.js";const[u,o,...e]=process.argv,n={description:"Build an existing Joystick app.",args:{},options:{environment:{flags:{"-e":{set:!!e.includes("-e"),value:!!e.includes("-e")&&e[e.indexOf("-e")+1],parent:"build"},"--environment":{set:!!e.includes("--environment"),value:!!e.includes("--environment")&&e[e.indexOf("--environment")+1],parent:"build"}},description:"The NODE_ENV you want to use for your build (default: production)."},outputPath:{flags:{"-o":{set:!!e.includes("-o"),value:!!e.includes("-o")&&e[e.indexOf("-o")+1],parent:"build"},"--outputPath":{set:!!e.includes("--outputPath"),value:!!e.includes("--outputPath")&&e[e.indexOf("--outputPath")+1],parent:"build"}},description:"The path you want to build the output to."},type:{flags:{"-t":{set:!!e.includes("-t"),value:!!e.includes("-t")&&e[e.indexOf("-t")+1],parent:"build"},"--type":{set:!!e.includes("--type"),value:!!e.includes("--type")&&e[e.indexOf("--type")+1],parent:"build"}},description:"The type of build you want to generate (tar or folder)."}},command:t};var d=n;export{d as default};
|
|
2
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/commands/build/definition.js"],
|
|
4
|
+
"sourcesContent": ["import build from './index.js';\n\nconst [_node, _bin, ...raw_args] = process.argv;\n\nconst definition = {\n description: 'Build an existing Joystick app.',\n args: {},\n options: {\n environment: {\n flags: {\n '-e': {\n set: !!raw_args.includes('-e'),\n value: !!raw_args.includes('-e') && raw_args[raw_args.indexOf('-e') + 1],\n parent: 'build',\n },\n '--environment': {\n set: !!raw_args.includes('--environment'),\n value: !!raw_args.includes('--environment') && raw_args[raw_args.indexOf('--environment') + 1],\n parent: 'build',\n },\n },\n description: 'The NODE_ENV you want to use for your build (default: production).',\n },\n outputPath: {\n flags: {\n '-o': {\n set: !!raw_args.includes('-o'),\n value: !!raw_args.includes('-o') && raw_args[raw_args.indexOf('-o') + 1],\n parent: 'build',\n },\n '--outputPath': {\n set: !!raw_args.includes('--outputPath'),\n value: !!raw_args.includes('--outputPath') && raw_args[raw_args.indexOf('--outputPath') + 1],\n parent: 'build',\n },\n },\n description: 'The path you want to build the output to.',\n },\n type: {\n flags: {\n '-t': {\n set: !!raw_args.includes('-t'),\n value: !!raw_args.includes('-t') && raw_args[raw_args.indexOf('-t') + 1],\n parent: 'build',\n },\n '--type': {\n set: !!raw_args.includes('--type'),\n value: !!raw_args.includes('--type') && raw_args[raw_args.indexOf('--type') + 1],\n parent: 'build',\n },\n },\n description: 'The type of build you want to generate (tar or folder).',\n },\n },\n command: build,\n};\n\nexport default definition;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAOA,MAAW,aAElB,KAAM,CAACC,EAAOC,EAAM,GAAGC,CAAQ,EAAI,QAAQ,KAErCC,EAAa,CACjB,YAAa,kCACb,KAAM,CAAC,EACP,QAAS,CACP,YAAa,CACX,MAAO,CACL,KAAM,CACJ,IAAK,CAAC,CAACD,EAAS,SAAS,IAAI,EAC7B,MAAO,CAAC,CAACA,EAAS,SAAS,IAAI,GAAKA,EAASA,EAAS,QAAQ,IAAI,EAAI,CAAC,EACvE,OAAQ,OACV,EACA,gBAAiB,CACf,IAAK,CAAC,CAACA,EAAS,SAAS,eAAe,EACxC,MAAO,CAAC,CAACA,EAAS,SAAS,eAAe,GAAKA,EAASA,EAAS,QAAQ,eAAe,EAAI,CAAC,EAC7F,OAAQ,OACV,CACF,EACA,YAAa,oEACf,EACA,WAAY,CACV,MAAO,CACL,KAAM,CACJ,IAAK,CAAC,CAACA,EAAS,SAAS,IAAI,EAC7B,MAAO,CAAC,CAACA,EAAS,SAAS,IAAI,GAAKA,EAASA,EAAS,QAAQ,IAAI,EAAI,CAAC,EACvE,OAAQ,OACV,EACA,eAAgB,CACd,IAAK,CAAC,CAACA,EAAS,SAAS,cAAc,EACvC,MAAO,CAAC,CAACA,EAAS,SAAS,cAAc,GAAKA,EAASA,EAAS,QAAQ,cAAc,EAAI,CAAC,EAC3F,OAAQ,OACV,CACF,EACA,YAAa,2CACf,EACA,KAAM,CACJ,MAAO,CACL,KAAM,CACJ,IAAK,CAAC,CAACA,EAAS,SAAS,IAAI,EAC7B,MAAO,CAAC,CAACA,EAAS,SAAS,IAAI,GAAKA,EAASA,EAAS,QAAQ,IAAI,EAAI,CAAC,EACvE,OAAQ,OACV,EACA,SAAU,CACR,IAAK,CAAC,CAACA,EAAS,SAAS,QAAQ,EACjC,MAAO,CAAC,CAACA,EAAS,SAAS,QAAQ,GAAKA,EAASA,EAAS,QAAQ,QAAQ,EAAI,CAAC,EAC/E,OAAQ,OACV,CACF,EACA,YAAa,yDACf,CACF,EACA,QAASH,CACX,EAEA,IAAOK,EAAQD",
|
|
6
|
+
"names": ["build", "_node", "_bin", "raw_args", "definition", "definition_default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/commands/build/index.js"],
|
|
4
|
+
"sourcesContent": ["import build_app from '../../lib/build/index.js';\n\nconst build = (_args = {}, options = {}) => {\n\tbuild_app(options);\n};\n\nexport default build;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAOA,MAAe,2BAEtB,MAAMC,EAAQ,CAACC,EAAQ,CAAC,EAAGC,EAAU,CAAC,IAAM,CAC3CH,EAAUG,CAAO,CAClB,EAEA,IAAOC,EAAQH",
|
|
6
|
+
"names": ["build_app", "build", "_args", "options", "index_default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/commands/create/build_package_json.js"],
|
|
4
|
+
"sourcesContent": ["const build_package_json = (project_name = \"\") => {\n const package_json = {\n type: \"module\",\n name: project_name,\n version: \"0.0.1\",\n description: \"\",\n main: \"index.js\",\n scripts: {\n start: \"joystick start\",\n test: \"joystick test\",\n },\n keywords: [],\n author: \"\",\n license: \"ISC\",\n };\n\n return JSON.stringify(package_json, null, 2);\n};\n\nexport default build_package_json;\n"],
|
|
5
|
+
"mappings": "AAAA,MAAMA,EAAqB,CAACC,EAAe,KAgBlC,KAAK,UAfS,CACnB,KAAM,SACN,KAAMA,EACN,QAAS,QACT,YAAa,GACb,KAAM,WACN,QAAS,CACP,MAAO,iBACP,KAAM,eACR,EACA,SAAU,CAAC,EACX,OAAQ,GACR,QAAS,KACX,EAEoC,KAAM,CAAC,EAG7C,IAAOC,EAAQF",
|
|
6
|
+
"names": ["build_package_json", "project_name", "build_package_json_default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r from"./index.js";const[n,s,...e]=process.argv,a={description:"Create a new Joystick app.",args:{name:{set:!!e.includes("create")&&!!e[e.indexOf("create")+1],parent:"create",value:!!e.includes("create")&&e[e.indexOf("create")+1],description:"The name of the app to create."}},options:{release:{flags:{"-r":{set:!!e.includes("-r"),value:!!e.includes("-r")&&e[e.indexOf("-r")+1],parent:"create"},"--release":{set:!!e.includes("--release"),value:!!e.includes("--release")&&e[e.indexOf("--release")+1],parent:"create"}},description:"The release of Joystick to use (production or canary)."}},command:r};var c=a;export{c as default};
|
|
2
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/commands/create/definition.js"],
|
|
4
|
+
"sourcesContent": ["import create from './index.js';\n\nconst [_node, _bin, ...raw_args] = process.argv;\n\nconst definition = {\n description: 'Create a new Joystick app.',\n args: {\n name: {\n set: !!raw_args.includes('create') && !!raw_args[raw_args.indexOf('create') + 1],\n parent: 'create',\n value: !!raw_args.includes('create') && raw_args[raw_args.indexOf('create') + 1],\n description: 'The name of the app to create.',\n },\n },\n options: {\n release: {\n flags: {\n '-r': {\n set: !!raw_args.includes('-r'),\n value: !!raw_args.includes('-r') && raw_args[raw_args.indexOf('-r') + 1],\n parent: 'create',\n },\n '--release': {\n set: !!raw_args.includes('--release'),\n value: !!raw_args.includes('--release') && raw_args[raw_args.indexOf('--release') + 1],\n parent: 'create',\n },\n },\n description: 'The release of Joystick to use (production or canary).',\n },\n },\n command: create,\n};\n\nexport default definition;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAOA,MAAY,aAEnB,KAAM,CAACC,EAAOC,EAAM,GAAGC,CAAQ,EAAI,QAAQ,KAErCC,EAAa,CACjB,YAAa,6BACb,KAAM,CACJ,KAAM,CACJ,IAAK,CAAC,CAACD,EAAS,SAAS,QAAQ,GAAK,CAAC,CAACA,EAASA,EAAS,QAAQ,QAAQ,EAAI,CAAC,EAC/E,OAAQ,SACR,MAAO,CAAC,CAACA,EAAS,SAAS,QAAQ,GAAKA,EAASA,EAAS,QAAQ,QAAQ,EAAI,CAAC,EAC/E,YAAa,gCACf,CACF,EACA,QAAS,CACP,QAAS,CACP,MAAO,CACL,KAAM,CACJ,IAAK,CAAC,CAACA,EAAS,SAAS,IAAI,EAC7B,MAAO,CAAC,CAACA,EAAS,SAAS,IAAI,GAAKA,EAASA,EAAS,QAAQ,IAAI,EAAI,CAAC,EACvE,OAAQ,QACV,EACA,YAAa,CACX,IAAK,CAAC,CAACA,EAAS,SAAS,WAAW,EACpC,MAAO,CAAC,CAACA,EAAS,SAAS,WAAW,GAAKA,EAASA,EAAS,QAAQ,WAAW,EAAI,CAAC,EACrF,OAAQ,QACV,CACF,EACA,YAAa,wDACf,CACF,EACA,QAASH,CACX,EAEA,IAAOK,EAAQD",
|
|
6
|
+
"names": ["create", "_node", "_bin", "raw_args", "definition", "definition_default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import c from"fs";import i from"chalk";import s from"child_process";import o from"util";import n from"./build_package_json.js";import l from"../../lib/cli_log.js";import m from"../../lib/loader.js";import u from"../../lib/node_path_polyfills.js";import t from"../../lib/replace_in_files.js";const{cp:p,writeFile:d,mkdir:a}=c.promises,y=o.promisify(s.exec),$=(e="")=>d(`./${e}/package.json`,n(e)),j=async(e={},r={})=>{process.loader=new m,process.loader.print("Creating app..."),r?.release&&!["production","canary"].includes(r.release)&&(l("Must pass either production or canary for --release.",{level:"danger",docs:"https://docs.cheatcode.co/joystick/cli/create"}),process.exit(0)),await p(`${u?.__package}/commands/create/template`,`./${e.name}`,{recursive:!0}),await $(e.name),await a(`./${e?.name}/.joystick`,{recursive:!0}),await a(`./${e?.name}/fixtures`,{recursive:!0}),await a(`./${e?.name}/indexes`,{recursive:!0}),await a(`./${e?.name}/lib`,{recursive:!0}),await a(`./${e?.name}/private`,{recursive:!0}),await a(`./${e?.name}/queues`,{recursive:!0}),await a(`./${e?.name}/routes`,{recursive:!0}),await a(`./${e?.name}/uploaders`,{recursive:!0}),await a(`./${e?.name}/tests`,{recursive:!0}),await a(`./${e?.name}/websockets`,{recursive:!0}),r?.release==="canary"&&(await t(`${process.cwd()}/${e?.name}`,{match:[/\.js$/],exclude:[/node_modules/],replace_regex:/(@joystick.js\/node)(?!-)/g,replace_with:"@joystick.js/node-canary"}),await t(`${process.cwd()}/${e?.name}`,{match:[/\.js$/],exclude:[/node_modules/],replace_regex:/(@joystick.js\/ui)(?!-)/g,replace_with:"@joystick.js/ui-canary"})),setTimeout(async()=>{process.loader.print("Installing dependencies..."),await y(`cd ./${e?.name} && npm install --save @joystick.js/ui${r?.release==="canary"?"-canary":""}@latest @joystick.js/node${r?.release==="canary"?"-canary":""}@latest @joystick.js/test${r?.release==="canary"?"-canary":""}@latest`),console.log(`${i.green("Project created! To get started, run:")}
|
|
2
|
+
cd ${e?.name} && joystick${r?.release==="canary"?"-canary":""} start`)},1e3)};var q=j;export{q as default};
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/commands/create/index.js"],
|
|
4
|
+
"sourcesContent": ["import fs from 'fs';\nimport chalk from 'chalk';\nimport child_process from 'child_process';\nimport util from 'util';\nimport build_package_json from \"./build_package_json.js\";\nimport cli_log from '../../lib/cli_log.js';\nimport Loader from \"../../lib/loader.js\";\nimport node_path_polyfills from '../../lib/node_path_polyfills.js';\nimport replace_in_files from '../../lib/replace_in_files.js';\n\nconst { cp: copy_directory, writeFile, mkdir } = fs.promises;\nconst exec = util.promisify(child_process.exec);\n\nconst create_package_json = (project_name = \"\") => {\n return writeFile(`./${project_name}/package.json`, build_package_json(project_name));\n};\n\nconst create = async (args = {}, options = {}) => {\n process.loader = new Loader();\n process.loader.print(\"Creating app...\");\n\n if (options?.release && !['production', 'canary'].includes(options.release)) {\n cli_log('Must pass either production or canary for --release.', {\n level: 'danger',\n docs: 'https://docs.cheatcode.co/joystick/cli/create',\n });\n process.exit(0);\n }\n\n await copy_directory(`${node_path_polyfills?.__package}/commands/create/template`, `./${args.name}`, { recursive: true });\n await create_package_json(args.name);\n \n await mkdir(`./${args?.name}/.joystick`, { recursive: true });\n await mkdir(`./${args?.name}/fixtures`, { recursive: true });\n await mkdir(`./${args?.name}/indexes`, { recursive: true });\n await mkdir(`./${args?.name}/lib`, { recursive: true });\n await mkdir(`./${args?.name}/private`, { recursive: true });\n await mkdir(`./${args?.name}/queues`, { recursive: true });\n await mkdir(`./${args?.name}/routes`, { recursive: true });\n await mkdir(`./${args?.name}/uploaders`, { recursive: true });\n await mkdir(`./${args?.name}/tests`, { recursive: true });\n await mkdir(`./${args?.name}/websockets`, { recursive: true });\n\n if (options?.release === 'canary') {\n await replace_in_files(`${process.cwd()}/${args?.name}`, {\n match: [/\\.js$/],\n exclude: [/node_modules/],\n replace_regex: /(@joystick.js\\/node)(?!-)/g,\n replace_with: '@joystick.js/node-canary',\n });\n\n await replace_in_files(`${process.cwd()}/${args?.name}`, {\n match: [/\\.js$/],\n exclude: [/node_modules/],\n replace_regex: /(@joystick.js\\/ui)(?!-)/g,\n replace_with: '@joystick.js/ui-canary',\n });\n }\n\n // NOTE: Pure aesthetics. Above step completes so quickly that it almost looks like\n // it's skipped. Add a buffer of 1s here to make for a better dev experience.\n setTimeout(async () => {\n process.loader.print(\"Installing dependencies...\");\n await exec(`cd ./${args?.name} && npm install --save @joystick.js/ui${options?.release === 'canary' ? '-canary' : ''}@latest @joystick.js/node${options?.release === 'canary' ? '-canary' : ''}@latest @joystick.js/test${options?.release === 'canary' ? '-canary' : ''}@latest`);\n console.log(\n `${chalk.green(\"Project created! To get started, run:\")}\\ncd ${args?.name} && joystick${options?.release === 'canary' ? '-canary' : ''} start`\n );\n }, 1000);\n};\n\nexport default create;"],
|
|
5
|
+
"mappings": "AAAA,OAAOA,MAAQ,KACf,OAAOC,MAAW,QAClB,OAAOC,MAAmB,gBAC1B,OAAOC,MAAU,OACjB,OAAOC,MAAwB,0BAC/B,OAAOC,MAAa,uBACpB,OAAOC,MAAY,sBACnB,OAAOC,MAAyB,mCAChC,OAAOC,MAAsB,gCAE7B,KAAM,CAAE,GAAIC,EAAgB,UAAAC,EAAW,MAAAC,CAAM,EAAIX,EAAG,SAC9CY,EAAOT,EAAK,UAAUD,EAAc,IAAI,EAExCW,EAAsB,CAACC,EAAe,KACnCJ,EAAU,KAAKI,CAAY,gBAAiBV,EAAmBU,CAAY,CAAC,EAG/EC,EAAS,MAAOC,EAAO,CAAC,EAAGC,EAAU,CAAC,IAAM,CAChD,QAAQ,OAAS,IAAIX,EACrB,QAAQ,OAAO,MAAM,iBAAiB,EAElCW,GAAS,SAAW,CAAC,CAAC,aAAc,QAAQ,EAAE,SAASA,EAAQ,OAAO,IACxEZ,EAAQ,uDAAwD,CAC9D,MAAO,SACP,KAAM,+CACR,CAAC,EACD,QAAQ,KAAK,CAAC,GAGhB,MAAMI,EAAe,GAAGF,GAAqB,SAAS,4BAA6B,KAAKS,EAAK,IAAI,GAAI,CAAE,UAAW,EAAK,CAAC,EACxH,MAAMH,EAAoBG,EAAK,IAAI,EAEnC,MAAML,EAAM,KAAKK,GAAM,IAAI,aAAc,CAAE,UAAW,EAAK,CAAC,EAC5D,MAAML,EAAM,KAAKK,GAAM,IAAI,YAAa,CAAE,UAAW,EAAK,CAAC,EAC3D,MAAML,EAAM,KAAKK,GAAM,IAAI,WAAY,CAAE,UAAW,EAAK,CAAC,EAC1D,MAAML,EAAM,KAAKK,GAAM,IAAI,OAAQ,CAAE,UAAW,EAAK,CAAC,EACtD,MAAML,EAAM,KAAKK,GAAM,IAAI,WAAY,CAAE,UAAW,EAAK,CAAC,EAC1D,MAAML,EAAM,KAAKK,GAAM,IAAI,UAAW,CAAE,UAAW,EAAK,CAAC,EACzD,MAAML,EAAM,KAAKK,GAAM,IAAI,UAAW,CAAE,UAAW,EAAK,CAAC,EACzD,MAAML,EAAM,KAAKK,GAAM,IAAI,aAAc,CAAE,UAAW,EAAK,CAAC,EAC5D,MAAML,EAAM,KAAKK,GAAM,IAAI,SAAU,CAAE,UAAW,EAAK,CAAC,EACxD,MAAML,EAAM,KAAKK,GAAM,IAAI,cAAe,CAAE,UAAW,EAAK,CAAC,EAEzDC,GAAS,UAAY,WACvB,MAAMT,EAAiB,GAAG,QAAQ,IAAI,CAAC,IAAIQ,GAAM,IAAI,GAAI,CACvD,MAAO,CAAC,OAAO,EACf,QAAS,CAAC,cAAc,EACxB,cAAe,6BACf,aAAc,0BAChB,CAAC,EAED,MAAMR,EAAiB,GAAG,QAAQ,IAAI,CAAC,IAAIQ,GAAM,IAAI,GAAI,CACvD,MAAO,CAAC,OAAO,EACf,QAAS,CAAC,cAAc,EACxB,cAAe,2BACf,aAAc,wBAChB,CAAC,GAKH,WAAW,SAAY,CACrB,QAAQ,OAAO,MAAM,4BAA4B,EACjD,MAAMJ,EAAK,QAAQI,GAAM,IAAI,yCAAyCC,GAAS,UAAY,SAAW,UAAY,EAAE,4BAA4BA,GAAS,UAAY,SAAW,UAAY,EAAE,4BAA4BA,GAAS,UAAY,SAAW,UAAY,EAAE,SAAS,EACjR,QAAQ,IACN,GAAGhB,EAAM,MAAM,uCAAuC,CAAC;AAAA,KAAQe,GAAM,IAAI,eAAeC,GAAS,UAAY,SAAW,UAAY,EAAE,QACxI,CACF,EAAG,GAAI,CACT,EAEA,IAAOC,EAAQH",
|
|
6
|
+
"names": ["fs", "chalk", "child_process", "util", "build_package_json", "cli_log", "Loader", "node_path_polyfills", "replace_in_files", "copy_directory", "writeFile", "mkdir", "exec", "create_package_json", "project_name", "create", "args", "options", "index_default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import ui from '@joystick.js/ui';
|
|
2
|
+
|
|
3
|
+
const ResetPassword = ui.component({
|
|
4
|
+
css: {
|
|
5
|
+
min: {
|
|
6
|
+
width: {
|
|
7
|
+
0: `
|
|
8
|
+
`,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
render: ({ props }) => {
|
|
13
|
+
return `
|
|
14
|
+
<div>
|
|
15
|
+
</div>
|
|
16
|
+
`;
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export default ResetPassword;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const en_US = {
|
|
2
|
+
'ui/pages/index/index.js': {
|
|
3
|
+
buttons: {
|
|
4
|
+
get_started: 'Get Started',
|
|
5
|
+
view_on_github: '<span>{{stars}}</span> View on Github',
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
'ui/pages/error/index.js': {
|
|
9
|
+
page_not_found: 'Page Not Found',
|
|
10
|
+
double_check_url: 'Double-check the URL and try again.'
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default en_US;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// Add analytics, metrics, etc. here.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--brand: #ffcc00;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*,
|
|
6
|
+
*:before,
|
|
7
|
+
*:after {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
position: relative;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body {
|
|
16
|
+
min-height: 100dvh;
|
|
17
|
+
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
line-height: 1.5em;
|
|
20
|
+
background: #000;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
h1,
|
|
24
|
+
h2,
|
|
25
|
+
h3,
|
|
26
|
+
h4,
|
|
27
|
+
h5,
|
|
28
|
+
h6 {
|
|
29
|
+
text-wrap: balance;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
p {
|
|
33
|
+
text-wrap: pretty;
|
|
34
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<html class="no-js" lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
<title>
|
|
6
|
-
<meta name="description" content="
|
|
5
|
+
<title>App</title>
|
|
6
|
+
<meta name="description" content="A new Joystick app.">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<meta name="theme-color" content="#FFCC00">
|
|
9
9
|
<link rel="apple-touch-icon" href="/apple-touch-icon-152x152.png">
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="app"></div>
|
|
16
|
-
${scripts}
|
|
17
16
|
<script>
|
|
18
17
|
if ("serviceWorker" in navigator) {
|
|
19
18
|
navigator.serviceWorker.register("/service-worker.js");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import api from "./api";
|
|
1
|
+
import joystick from "@joystick.js/node";
|
|
2
|
+
import api from "./api/index.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
joystick.app({
|
|
5
5
|
api,
|
|
6
6
|
routes: {
|
|
7
|
-
"/": (req, res) => {
|
|
7
|
+
"/": (req = {}, res = {}) => {
|
|
8
8
|
res.render("ui/pages/index/index.js", {
|
|
9
9
|
layout: "ui/layouts/app/index.js",
|
|
10
10
|
});
|
|
11
11
|
},
|
|
12
|
-
"*": (req, res) => {
|
|
12
|
+
"*": (req = {}, res = {}) => {
|
|
13
13
|
res.render("ui/pages/error/index.js", {
|
|
14
14
|
layout: "ui/layouts/app/index.js",
|
|
15
15
|
props: {
|
|
16
|
-
|
|
16
|
+
status_code: 404,
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
19
|
},
|
|
Binary file
|
|
Binary file
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"short_name": "app",
|
|
4
4
|
"start_url": ".",
|
|
5
5
|
"display": "standalone",
|
|
6
|
-
"background_color": "#
|
|
7
|
-
"theme_color": "#
|
|
8
|
-
"description": "
|
|
6
|
+
"background_color": "#000000",
|
|
7
|
+
"theme_color": "#000000",
|
|
8
|
+
"description": "A new Joystick app.",
|
|
9
9
|
"icons": [{
|
|
10
10
|
"src": "favicon.ico",
|
|
11
|
-
"sizes": "
|
|
11
|
+
"sizes": "32x32",
|
|
12
12
|
"type": "image/x-icon"
|
|
13
13
|
}, {
|
|
14
14
|
"purpose": "any",
|
|
Binary file
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import
|
|
1
|
+
import joystick from "@joystick.js/ui";
|
|
2
2
|
|
|
3
|
-
const Button =
|
|
3
|
+
const Button = joystick.component({
|
|
4
4
|
css: `
|
|
5
5
|
.button {
|
|
6
6
|
display: inline-block;
|
|
7
7
|
background: #eee;
|
|
8
|
-
padding:
|
|
8
|
+
padding: 12px 20px;
|
|
9
|
+
font-size: 15px;
|
|
10
|
+
font-weight: 400;
|
|
9
11
|
border-radius: 3px;
|
|
10
12
|
text-decoration: none;
|
|
11
13
|
color: #333;
|
|
14
|
+
white-space: nowrap;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
.button.brand {
|
|
15
18
|
background: var(--brand);
|
|
19
|
+
border: 2px solid var(--brand);
|
|
16
20
|
color: #333;
|
|
21
|
+
font-size: 15px;
|
|
22
|
+
font-weight: 500;
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
.button.github {
|
|
20
|
-
background: #
|
|
26
|
+
background: #111;
|
|
21
27
|
color: #fff;
|
|
22
28
|
padding: 0px 20px 0px 0px;
|
|
23
29
|
}
|
|
@@ -25,10 +31,12 @@ const Button = ui.component({
|
|
|
25
31
|
.button.github span {
|
|
26
32
|
display: inline-block;
|
|
27
33
|
margin-right: 20px;
|
|
28
|
-
font-weight:
|
|
34
|
+
font-weight: 600;
|
|
29
35
|
background: #000;
|
|
30
|
-
padding:
|
|
36
|
+
padding: 12px 18px;
|
|
31
37
|
border-radius: 3px 0px 0px 3px;
|
|
38
|
+
color: #fff;
|
|
39
|
+
border: 2px solid #111;
|
|
32
40
|
}
|
|
33
41
|
`,
|
|
34
42
|
render: ({ props, when }) => {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import joystick from "@joystick.js/ui";
|
|
2
|
+
|
|
3
|
+
const Error = joystick.component({
|
|
4
|
+
css: `
|
|
5
|
+
.error {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
height: 100vh;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.error > header {
|
|
13
|
+
text-align: center;
|
|
14
|
+
margin: 50px 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
h1 {
|
|
18
|
+
color: #444;
|
|
19
|
+
font-size: 64px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
letter-spacing: 0.03em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
h4 {
|
|
25
|
+
color: #fff;
|
|
26
|
+
font-size: 20px;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
margin-top: 40px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
p {
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
color: #888;
|
|
34
|
+
margin-top: 10px;
|
|
35
|
+
}
|
|
36
|
+
`,
|
|
37
|
+
render: ({ i18n, props }) => {
|
|
38
|
+
return `
|
|
39
|
+
<div class="error">
|
|
40
|
+
<header>
|
|
41
|
+
<h1>${props.status_code}</h1>
|
|
42
|
+
<h4>${i18n('page_not_found')}</h4>
|
|
43
|
+
<p>${i18n('double_check_url')}</p>
|
|
44
|
+
</header>
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export default Error;
|