diff --git a/.env.deploy.example b/.env.deploy.example new file mode 100644 index 0000000..e10fad2 --- /dev/null +++ b/.env.deploy.example @@ -0,0 +1,6 @@ +# Beget SSH access (Beget control panel → SSH) +DEPLOY_HOST= +DEPLOY_USER= +DEPLOY_PASS= +# Site folder on the server, with trailing slash +DEPLOY_PATH=githubify.sacret.ru/public_html/ diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e042a28 --- /dev/null +++ b/.env.example @@ -0,0 +1,6 @@ +# Firebase project settings (Project settings → General → Your apps → Web app) +VITE_FIREBASE_API_KEY= +VITE_FIREBASE_AUTH_DOMAIN=.firebaseapp.com +VITE_FIREBASE_DATABASE_URL=https://.firebaseio.com +VITE_FIREBASE_PROJECT_ID= +VITE_FIREBASE_APP_ID= diff --git a/.gitignore b/.gitignore index 31c622d..aa49581 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # alphabetized -build/ +.DS_Store +.env.deploy +.env.local +dist/ node_modules/ -js/config/Config.js - -# ctags-generated tags -tags diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 235f68a..0000000 --- a/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ -Copyright (c) 2015, Anastasia Kozaeva -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of githubify.me nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/README.md b/README.md index 9dad8a7..627a7a4 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,16 @@ -Githubify.me +Githubify ======================= -Place where you can easily manage and organize tags for your Github repositories. You will have ability to set tags for your own repos, forks, repositories that you have been added to as a collaborator and even starred repos! +A place where you can easily manage and organize tags for your GitHub repositories. You can tag your own repos, forks, repositories you've been added to as a collaborator, and even starred ones! -![Image of Githubify](http://sacret.ru/sites/default/files/styles/gallery_image_full/public/portfolio/githubifyme_0.png) +Live site: https://githubify.sacret.ru + +![Githubify](public/og-image.jpg) Installation ------------ -To install the application you need npm and gulp +To install the application, you need Node.js 20+ and npm. - Clone the repository: @@ -23,16 +25,39 @@ To install the application you need npm and gulp npm install ``` -- Setup `Config`: +- Set up the Firebase config: + + ```bash + cp .env.example .env.local + ``` + + and put your Firebase web app settings into `.env.local` + +- In the Firebase console, enable the **GitHub** sign-in provider and apply + the database rules from `database.rules.json` + +- Run the dev server: ```bash - cp js/config/Config.example.js js/config/Config.js + npm run dev ``` -- Put actual firebase path to `Config.js` +- Build for production (result is in `dist/`): + + ```bash + npm run build + ``` + +Deployment +---------- + +The site is deployed to Beget hosting with `rsync` over SSH. You need +`sshpass` (`brew install sshpass`). + +- Fill in SSH credentials in `.env.deploy` (see `.env.deploy.example`) -- Run `gulp`: +- Build and upload `dist/` to the server: ```bash - gulp + npm run deploy ``` diff --git a/database.rules.json b/database.rules.json new file mode 100644 index 0000000..f821be6 --- /dev/null +++ b/database.rules.json @@ -0,0 +1,15 @@ +{ + "rules": { + "users": { + "$user": { + ".read": true, + ".write": "auth != null && auth.token.firebase.identities['github.com'] != null && $user === 'github:' + auth.token.firebase.identities['github.com'][0]", + "tags": { + "$tag": { + ".validate": "$tag.length <= 50" + } + } + } + } + } +} diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..0282c0a --- /dev/null +++ b/deploy.sh @@ -0,0 +1,37 @@ +#!/bin/bash +set -e + +# Load deploy settings. The file is parsed line by line, not sourced, +# so the password may contain any characters +if [ -f .env.deploy ]; then + while IFS='=' read -r key value || [ -n "$key" ]; do + if [[ $key =~ ^DEPLOY_[A-Z_]+$ ]]; then + export "$key=${value%$'\r'}" + fi + done < .env.deploy +else + echo "Error: .env.deploy file not found. Copy .env.deploy.example and fill DEPLOY_HOST, DEPLOY_USER, DEPLOY_PASS, DEPLOY_PATH." + exit 1 +fi + +if [ ! -f .env.local ]; then + echo "Error: .env.local file with Firebase config not found." + exit 1 +fi + +echo "==> Building site..." +npm run build + +echo "==> Deploying to ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}..." +# .well-known is kept on the server for SSL certificate validation +sshpass -p "${DEPLOY_PASS}" rsync -avz --delete --exclude=.well-known --exclude=.DS_Store \ + dist/ \ + "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}" || RSYNC_EXIT=$? + +# rsync exit code 23 = partial transfer (usually just permission warnings), treat as success +if [ "${RSYNC_EXIT:-0}" -ne 0 ] && [ "${RSYNC_EXIT:-0}" -ne 23 ]; then + echo "Error: rsync failed with exit code ${RSYNC_EXIT}" + exit 1 +fi + +echo "==> Done! Site deployed to ${DEPLOY_HOST}" diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index 029c221..0000000 Binary files a/favicon.ico and /dev/null differ diff --git a/gulp/config.js b/gulp/config.js deleted file mode 100644 index 614f44b..0000000 --- a/gulp/config.js +++ /dev/null @@ -1,44 +0,0 @@ -var build = './build'; - -var locations = { - js: './js', - less: './less', - images: './img' -} - -module.exports = { - locations: locations, - browserify: { - files: [ - locations.js + '/routers/Router.js' - ], - dest: build, - name: 'app.js' - }, - css: { - files: [ - build + '/css/app.css' - ], - name: 'app.css', - dest: build + '/css/' - }, - less: { - src: locations.less + '/app.less', - watch: locations.less + '/**', - dest: build + '/css/' - }, - fonts: { - src: [ - //src + '/fonts/**', - './node_modules/bootstrap/fonts/**', - './node_modules/font-awesome/fonts/**' - ], - dest: build + '/fonts/' - }, - images: { - src: [ - locations.images + '/**' - ], - dest: build + '/img' - } -}; diff --git a/gulp/tasks/browserify.js b/gulp/tasks/browserify.js deleted file mode 100644 index e7a10f1..0000000 --- a/gulp/tasks/browserify.js +++ /dev/null @@ -1,89 +0,0 @@ -// jshint node: true -'use strict'; - -var browserify = require('browserify'); -var buffer = require('vinyl-buffer'); -var gulp = require('gulp'); -// var babel = require('gulp-babel'); -var babelify = require('babelify'); -var plumber = require('gulp-plumber'); -var gutil = require('gulp-util'); -// var reactify = require('reactify'); -var rename = require('gulp-rename'); -var source = require('vinyl-source-stream'); -var uglify = require('gulp-uglify'); -var watchify = require('watchify'); - -var config = require('../config').browserify; -var locations = require('../config').locations; - -gulp.task('browserify', [], function() { - return browserifyTask({ watch: false, debug: true }); -}); - -gulp.task('watchify', [], function() { - return browserifyTask({ watch: true, debug: true }); -}); - -gulp.task('uglify', [], function() { - function uglifyTapIn(stream) { - return stream.pipe(uglify()); - } - return browserifyTask({ watch: false, uglify: true }); -}); - -// Browserify client-side scripts. -function browserifyTask(params) { - if (params == null) params = {}; - if (params.watch == null) params.watch = false; - if (params.debug == null) params.debug = false; - if (params.uglify == null) params.uglify = false; - - var b = browserify({ - extensions: ['.js'], - debug: true //params.debug - }); - - // b.transform(reactify); - b.transform('babelify', { - presets: ['es2015', 'react'] - }); - - config.files.map(function(file) { - b.add(file); - }); - - b.on('log', gutil.log); - - function bundle() { - var stream = b.bundle() - .pipe(source(config.name)) - .pipe(buffer()); - if (params.debug === true) { - stream = stream.pipe(plumber(errorHandler)) - } - // stream = stream.pipe(babel({ - // presets: ['es2015', 'react'] - // })); - if (params.uglify === true) { - stream = stream.pipe(uglify()) - } - return stream - .pipe(gulp.dest(config.dest)); - } - - if (params.watch) { - b = watchify(b); - b.on('update', function() { - gutil.log('Watchify detected a change'); - bundle(); - }); - } - - return bundle(); -} - -function errorHandler (err) { - gutil.log(err.toString()); - this.emit('end'); -} diff --git a/gulp/tasks/css.js b/gulp/tasks/css.js deleted file mode 100644 index 1a00b24..0000000 --- a/gulp/tasks/css.js +++ /dev/null @@ -1,23 +0,0 @@ -var gulp = require('gulp'); -var concat = require('gulp-concat'); -var cssmin = require('gulp-cssmin'); -var sourcemaps = require('gulp-sourcemaps'); -var livereload = require('gulp-livereload'); - -var handleErrors = require('../utils/handleErrors'); -var config = require('../config').css; - -// Combines all css together, after less -gulp.task('css', ['less'], function () { - - 'use strict'; - - return gulp.src(config.files) - .pipe(sourcemaps.init()) - .pipe(concat(config.name)) - .pipe(cssmin()) - .on('error', handleErrors) - .pipe(sourcemaps.write()) - .pipe(gulp.dest(config.dest)) - .pipe(livereload({basePath: 'build/'})); -}); \ No newline at end of file diff --git a/gulp/tasks/default.js b/gulp/tasks/default.js deleted file mode 100644 index eab0c16..0000000 --- a/gulp/tasks/default.js +++ /dev/null @@ -1,3 +0,0 @@ -var gulp = require('gulp'); - -gulp.task('default', ['css', 'fonts', 'images', 'uglify']); diff --git a/gulp/tasks/fonts.js b/gulp/tasks/fonts.js deleted file mode 100644 index ae765ee..0000000 --- a/gulp/tasks/fonts.js +++ /dev/null @@ -1,12 +0,0 @@ -var gulp = require('gulp'); -var size = require('gulp-filesize'); - -var config = require('../config').fonts; - -gulp.task('fonts', function () { - - 'use strict'; - - return gulp.src(config.src) - .pipe(gulp.dest(config.dest)); -}); \ No newline at end of file diff --git a/gulp/tasks/images.js b/gulp/tasks/images.js deleted file mode 100644 index 2d7dacf..0000000 --- a/gulp/tasks/images.js +++ /dev/null @@ -1,15 +0,0 @@ -var gulp = require('gulp'); -var changed = require('gulp-changed'); - -var handleErrors = require('../utils/handleErrors'); -var config = require('../config').images; - -gulp.task('images', function () { - - 'use strict'; - - return gulp.src(config.src) - .pipe(changed(config.dest)) // Ignore unchanged files - .on('error', handleErrors) - .pipe(gulp.dest(config.dest)); -}); diff --git a/gulp/tasks/less.js b/gulp/tasks/less.js deleted file mode 100644 index 97dcaa0..0000000 --- a/gulp/tasks/less.js +++ /dev/null @@ -1,27 +0,0 @@ -var gulp = require('gulp'); -var less = require('gulp-less'); -var size = require('gulp-filesize'); - -var handleErrors = require('../utils/handleErrors'); -var config = require('../config').less; - -//var LessPluginCleanCSS = require("less-plugin-clean-css"), -// cleancss = new LessPluginCleanCSS({advanced: true}); - -var LessPluginAutoPrefix = require('less-plugin-autoprefix'), - autoprefix = new LessPluginAutoPrefix({browsers: ['last 2 versions']}); - -// combines all less together -gulp.task('less', function () { - - 'use strict'; - - return gulp.src(config.src) - .pipe(less({ - //plugins: [autoprefix, cleancss] - plugins: [autoprefix] - })) - .on('error', handleErrors) - .pipe(gulp.dest(config.dest)) - .pipe(size()); -}); \ No newline at end of file diff --git a/gulp/tasks/watch.js b/gulp/tasks/watch.js deleted file mode 100644 index 30a87c1..0000000 --- a/gulp/tasks/watch.js +++ /dev/null @@ -1,11 +0,0 @@ -var gulp = require('gulp'); -var config = require('../config'); -var livereload = require('gulp-livereload'); - -gulp.task('watch', ['watchify'], function () { - - 'use strict'; - - livereload.listen(); - gulp.watch(config.less.watch, ['css']); -}); \ No newline at end of file diff --git a/gulp/utils/bundleLogger.js b/gulp/utils/bundleLogger.js deleted file mode 100644 index decd7d7..0000000 --- a/gulp/utils/bundleLogger.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var gutil = require('gulp-util'); -var prettyHrtime = require('pretty-hrtime'); -var startTime; - -module.exports = { - start: function(filepath) { - startTime = process.hrtime(); - gutil.log('Bundling', gutil.colors.green(filepath) + '...'); - }, - - watch: function(bundleName) { - gutil.log('Watching files required by', gutil.colors.yellow(bundleName)); - }, - - end: function(filepath) { - //noinspection JSCheckFunctionSignatures - var taskTime = process.hrtime(startTime); - var prettyTime = prettyHrtime(taskTime); - gutil.log('Bundled', gutil.colors.green(filepath), 'in', gutil.colors.magenta(prettyTime)); - } -}; \ No newline at end of file diff --git a/gulp/utils/handleErrors.js b/gulp/utils/handleErrors.js deleted file mode 100644 index 1ccbd49..0000000 --- a/gulp/utils/handleErrors.js +++ /dev/null @@ -1,17 +0,0 @@ -var notify = require('gulp-notify'); - -module.exports = function () { - - 'use strict'; - - var args = Array.prototype.slice.call(arguments); - - // Send error to notification center with gulp-notify - notify.onError({ - title: 'Compile Error', - message: '<%= error %>' - }).apply(this, args); - - // Keep gulp from hanging on this task - this.emit('end'); -}; \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index a36ca72..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - gulpfile.js - =========== - Rather than manage one giant configuration file responsible - for creating multiple tasks, each task has been broken out into - its own file in gulp/tasks. Any files in that directory get - automatically required below. - To add a new task, simply add a new task file that directory. - gulp/tasks/default.js specifies the default set of tasks to run - when you run `gulp`. - */ - -var requireDir = require('require-dir'); - -// Require all tasks in gulp/tasks, including sub-folders -requireDir('./gulp/tasks', { recurse: true }); \ No newline at end of file diff --git a/img/line.png b/img/line.png deleted file mode 100644 index 2410e9f..0000000 Binary files a/img/line.png and /dev/null differ diff --git a/img/line_vertical.png b/img/line_vertical.png deleted file mode 100644 index 0e0793f..0000000 Binary files a/img/line_vertical.png and /dev/null differ diff --git a/index.html b/index.html index 29669af..fe1a2cc 100644 --- a/index.html +++ b/index.html @@ -1,28 +1,36 @@ - + - - - - + + + Githubify.me - - + + + + + + + + + + + + + + + + + + + + +
- - - + diff --git a/js/actions/FilterActions.js b/js/actions/FilterActions.js deleted file mode 100644 index ab8a4cb..0000000 --- a/js/actions/FilterActions.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; - -/** - * List of actions for filter optionss - */ -const FilterActions = Reflux.createActions([ - 'getFilters', - 'getDefaultFilters', - 'setFilter', - 'setTags', - 'setTagsReposIds', - 'setLanguages', - 'setSearch', - 'setSorting', - 'setFilters', - 'setDefaultFilters' -]); - -export default FilterActions; diff --git a/js/actions/ModalActions.js b/js/actions/ModalActions.js deleted file mode 100644 index 7e9670c..0000000 --- a/js/actions/ModalActions.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; - -/** - * List of actions for modals - */ -const ModalActions = Reflux.createActions([ - 'showModal', - 'hideModal' -]); - -export default ModalActions; diff --git a/js/actions/ReposActions.js b/js/actions/ReposActions.js deleted file mode 100644 index 621b822..0000000 --- a/js/actions/ReposActions.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; - -/** - * List of actions for github user's repos - */ -const ReposActions = Reflux.createActions([ - 'initRepos', - 'getRepos', - 'filterRepos' -]); - -export default ReposActions; diff --git a/js/actions/UserActions.js b/js/actions/UserActions.js deleted file mode 100644 index 13930bc..0000000 --- a/js/actions/UserActions.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; - -/** - * List of actions for github user - */ -const UserActions = Reflux.createActions([ - 'login', - 'isLoggedIn', - 'logout', - 'getUser' -]); - -export default UserActions; diff --git a/js/components/blocks/ClearFiltersBlock.js b/js/components/blocks/ClearFiltersBlock.js deleted file mode 100644 index e4acf87..0000000 --- a/js/components/blocks/ClearFiltersBlock.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -// -import FilterActions from '../../actions/FilterActions'; -import ReposActions from '../../actions/ReposActions'; -// -import FilterStore from '../../stores/FilterStore'; - -/** - * ClearFiltersBlock contains link to clear all filters - */ -const ClearFiltersBlock = React.createClass({ - - mixins: [Reflux.connect(FilterStore, 'filterStore')], - - clearFilters() { - FilterActions.getFilters(); - ReposActions.initRepos(); - ReposActions.getRepos(this.props.uname, 1, 'all'); - }, - - render() { - const filterStore = this.state.filterStore; - // - const isFiltered = filterStore && - ( - filterStore.filter !== 'all' || - filterStore.tags && filterStore.tags.length || - filterStore.languages && filterStore.languages.length || - filterStore.searchStr.length - ); - // - return ( -
- { isFiltered ? - - Clear filters - : - null - } -
- ); - } -}); - -export default ClearFiltersBlock; diff --git a/js/components/blocks/EmptyUserBlock.js b/js/components/blocks/EmptyUserBlock.js deleted file mode 100644 index d100473..0000000 --- a/js/components/blocks/EmptyUserBlock.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; - -import React from 'react'; - -/** - * Empty user block contains message and links - */ -const EmptyUserBlock = React.createClass({ - - render() { - return ( -
-
-

- Github user {this.props.uname} doesn't exist -

- { this.props.info && this.props.info.login ? -

You can visit your page

: -

You can visit home page

- } -
-
- ); - } -}); - -export default EmptyUserBlock; diff --git a/js/components/blocks/FilterBlock.js b/js/components/blocks/FilterBlock.js deleted file mode 100644 index 438d7ac..0000000 --- a/js/components/blocks/FilterBlock.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import _ from 'lodash'; -// -import { Button, Alert } from 'react-bootstrap'; -// -import FilterActions from '../../actions/FilterActions'; -// -import FilterStore from '../../stores/FilterStore'; - -/** - * FilterBlock contains list of all filters - */ -const FilterBlock = React.createClass({ - - mixins: [Reflux.connect(FilterStore, 'filterStore')], - - filterRepos(filter) { - FilterActions.setFilter(this.props.uname, filter); - }, - - render() { - const filterStore = this.state.filterStore; - const activeFilter = filterStore ? filterStore.filter : 'all'; - // - const filters = ['all', 'owner', 'forks', 'member', 'starred']; - // - let filterBlock = 'There are no filters for now!'; - filterBlock = _.map(filters, (filter, index) => { - return ( - this.filterRepos(filter)} - > - {filter} - - ); - }); - // - return ( -
- {filterBlock} -
- ); - } -}); - -export default FilterBlock; diff --git a/js/components/blocks/LanguagesBlock.js b/js/components/blocks/LanguagesBlock.js deleted file mode 100644 index cdf3ae9..0000000 --- a/js/components/blocks/LanguagesBlock.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import _ from 'lodash'; -// -import { Button, Alert } from 'react-bootstrap'; -// -import FontAwesome from 'react-fontawesome'; -// -import FilterActions from '../../actions/FilterActions'; -// -import ReposStore from '../../stores/ReposStore'; -import FilterStore from '../../stores/FilterStore'; -// -import Config from '../../config/Config'; - -/** - * LanguagesBlock contains list of all languages - */ -const LanguagesBlock = React.createClass({ - - mixins: [ - Reflux.connect(ReposStore, 'reposStore'), - Reflux.connect(FilterStore, 'filterStore') - ], - - filterReposByLanguages(language) { - const filterStore = this.state.filterStore; - const activeLanguages = _.xor(filterStore.languages, [language]); - FilterActions.setLanguages(activeLanguages); - }, - - render() { - const reposStore = this.state.reposStore; - const filterStore = this.state.filterStore; - // - let languagesBlock =

There are no languages for now!

; - if (reposStore) { - const sortedLanguages = _.sortBy(reposStore.languages); - languagesBlock = _.map(sortedLanguages, (language) => { - let activeClass = filterStore && _.includes(filterStore.languages, language) ? - ' active' : - ''; - // - return ( - this.filterReposByLanguages(language)} - > - {language} - - ); - }); - } - // - return ( -
- {languagesBlock} -
- ); - } -}); - -export default LanguagesBlock; diff --git a/js/components/blocks/LoadingBlock.js b/js/components/blocks/LoadingBlock.js deleted file mode 100644 index e9746c7..0000000 --- a/js/components/blocks/LoadingBlock.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -import React from 'react'; - -/** - * Loading block contains loading icon - */ -const LoadingBlock = React.createClass({ - - render() { - return ( -
- -
- ); - } -}); - -export default LoadingBlock; diff --git a/js/components/blocks/LoginForm.js b/js/components/blocks/LoginForm.js deleted file mode 100644 index 39d20c1..0000000 --- a/js/components/blocks/LoginForm.js +++ /dev/null @@ -1,70 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -// -import { Button, Alert } from 'react-bootstrap'; -import FontAwesome from 'react-fontawesome'; -// -import ShareBlock from './ShareBlock'; -// -import UserActions from '../../actions/UserActions'; -// -import UserStore from '../../stores/UserStore'; - -/** - * LoginForm contains authorization form - */ -const LoginForm = React.createClass({ - - mixins: [Reflux.connect(UserStore, 'userStore')], - - handleLoginClick() { - UserActions.login(); - }, - - render() { - const userStore = this.state.userStore; - // - return ( -
-

- GITHUBIFY.me -

-

- Welcome to the place where you can easily manage and organize tags for your Github repositories. You will have ability to set tags for your own repos, repositories that you have been added to as a member and even starred repos! -

-

- Note: maximum count of tags per user is 50, max length of tag title is 50 -

- -
- { - !userStore || userStore && !userStore.isLoggedIn ? -
- - Tell your friends: - - : - null - } -
-
- ); - } -}); - -export default LoginForm; diff --git a/js/components/blocks/ReposBlock.js b/js/components/blocks/ReposBlock.js deleted file mode 100644 index b5276dc..0000000 --- a/js/components/blocks/ReposBlock.js +++ /dev/null @@ -1,261 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import Rebase from 're-base'; -import _ from 'lodash'; -import moment from 'moment'; -import createFragment from 'react-addons-create-fragment'; -import { Typeahead } from 'react-typeahead'; -import Highlight from 'react-highlighter'; -// -import { Row, Col, Thumbnail } from 'react-bootstrap'; -import FontAwesome from 'react-fontawesome'; -import MasonryMixin from 'react-masonry-mixin'; -// -import SortingBlock from './SortingBlock'; -// -import ReposActions from '../../actions/ReposActions'; -import UserActions from '../../actions/UserActions'; -import FilterActions from '../../actions/FilterActions'; -import ModalActions from '../../actions/ModalActions'; -// -import ReposStore from '../../stores/ReposStore'; -import FilterStore from '../../stores/FilterStore'; -// -import Config from '../../config/Config'; -// -import History from '../../history/History'; - -const base = Rebase.createClass(Config.FirebaseUrl); - -const masonryOptions = { - transitionDuration: 0 -}; - -/** - * ReposBlock contains authorization form - */ -const ReposBlock = React.createClass({ - - mixins: [ - Reflux.connect(ReposStore, 'reposStore'), - Reflux.connect(FilterStore, 'filterStore'), - MasonryMixin(React)('masonryContainer', masonryOptions) - ], - - addTag(tagName, repoID) { - const userID = this.props.openUser.id; - const tagsStore = this.props.tags; - if (tagsStore.length <= 50) { - const newTag = base.push('users/github:' + userID + '/tags/' + tagName + '/repos', { - data: { - id: repoID - } - }); - } - else { - ModalActions.showModal(); - } - }, - - addRepoTag(index, repo) { - const tagsStore = this.props.tags; - const _this = this; - const tagNames = _this.refs['typeahead' + index].refs.entry.value.trim(); - const tagNamesArray = tagNames.split(','); - // - _.forEach(tagNamesArray, (tagName) => { - let correctTagName = _.trunc(tagName.trim(), { - length: 50, - omission: '' - }); - if (correctTagName.length && !_.includes(repo.tags, correctTagName)) { - _this.addTag(correctTagName.replace(/<|>/g, ''), repo.id); - } - }); - // - _this.typeaheadBlur(null, index, true); - }, - - removeRepoTag(tagKey, tagRepos, repoID) { - const tagIndex = _.findIndex(this.props.tags, (tag) => { - return tag.key == tagKey; - }); - const repoKey = _.findKey(tagRepos, (tagRepo) => { - return tagRepo.id == repoID; - }); - if (tagKey && repoKey) { - const newList = _.reject(this.props.tags[tagIndex].repos, { id: repoID }); - this.props.setFirebaseTagRepos(tagKey, newList); - } - }, - - getSuggestions() { - const tagsStore = this.props.tags; - const suburbs = _.map(tagsStore, (tag) => { - return tag.key; - }); - return suburbs; - }, - - typeaheadKeyUp(e, index, repo) { - if (e.keyCode == 13) { - this.addRepoTag(index, repo); - } - }, - - typeaheadBlur(e, index, isSetEmpty) { - if (!(e && e.relatedTarget && e.relatedTarget.className == 'typeahead-option')) { - const newState = { - selection: null, - selectionIndex: null, - visible: [] - }; - if (isSetEmpty) { - newState.entryValue = ''; - } - this.refs['typeahead' + index].setState(newState); - } - }, - - handleUsernameClick(username) { - History.pushState(null, username); - }, - - render() { - const reposStore = this.state.reposStore; - const reposLength = reposStore ? reposStore.filteredRepos.length : 0; - const tagsStore = this.props.tags; - // - let reposBlock = null; - if (reposStore && this.props.openUser) { - const isCurrentUser = this.props.isLoggedIn && - ('github:' + this.props.openUser.id == this.props.uid); - reposBlock = _.map(reposStore.filteredRepos, (repo, index) => { - let fragmentTags = {}; - if (tagsStore) { - let tags = _.filter(tagsStore, (tag) => { - return _.find(tag.repos, {id: repo.id}); - }); - let sortedTags = _.sortBy(tags, 'key'); - let appliedTags = []; - _.forEach(sortedTags, (tag, tagIndex) => { - appliedTags.push(tag.key); - fragmentTags['repo-' + repo.id + '-tags-' + tagIndex] = - - {tag.key} - { isCurrentUser ? - this.removeRepoTag(tag.key, tag.repos, repo.id)} - /> : - null - } - ; - }); - repo.tags = appliedTags; - } - if (repo.language && repo.language.length) { - fragmentTags['repo-tags-language'] = - - {repo.language} - ; - } - let tagsBlock = createFragment(fragmentTags); - // - let options = this.getSuggestions(); - let inputProps = { - ref: 'repoTagInput' - }; - let typeaheadRef = 'typeahead' + index; - // - const searchStr = this.state.filterStore ? - this.state.filterStore.searchStr : - ''; - // - return ( - - - - -

- - {repo.name} - -

-
- { reposStore.isShowingOwner ? -

- by this.handleUsernameClick(repo.owner.login)} - > - {repo.owner.login} - -

: - null - } - - Updated on {moment(repo.updated_at).format('MMM D, YYYY')} - - -  {repo.stargazers_count} - - -
- {tagsBlock} -
- { isCurrentUser ? -
- this.typeaheadKeyUp(e, index, repo)} - onOptionSelected={() => this.addRepoTag(index, repo)} - onBlur={(e) => this.typeaheadBlur(e, index)} - /> -
: - null - } - -
- - ); - }); - } - // - return ( -
- - -

- {reposLength} repo{reposLength !== 1 ? 's' : ''} -

- - - - -
- - {reposBlock} - -
- ); - } -}); - -export default ReposBlock; diff --git a/js/components/blocks/SearchBlock.js b/js/components/blocks/SearchBlock.js deleted file mode 100644 index 09b1477..0000000 --- a/js/components/blocks/SearchBlock.js +++ /dev/null @@ -1,76 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import _ from 'lodash'; -// -import { Grid, Row, Col } from 'react-bootstrap'; -import { Input, Button, Glyphicon } from 'react-bootstrap'; -// -import FilterActions from '../../actions/FilterActions'; -// -import FilterStore from '../../stores/FilterStore'; - -/** - * SearchBlock contains list of all filters - */ -const SearchBlock = React.createClass({ - - mixins: [Reflux.connect(FilterStore, 'filterStore')], - - handleKeyPress(e) { - if (e.key === 'Enter') { - e.preventDefault(); - } - }, - - handleChange() { - const searchStr = this.refs.search.getValue().trim(); - FilterActions.setSearch(searchStr); - }, - - clearSearch() { - FilterActions.setSearch(''); - }, - - render() { - const innerButton = ; - const searchStr = this.state.filterStore ? - this.state.filterStore.searchStr : - ''; - // - return ( - - - -
-
- this.handleKeyPress(e)} - onChange={this.handleChange} - /> - { searchStr.length ? -
- -
-
- ); - } -}); - -export default SearchBlock; diff --git a/js/components/blocks/ShareBlock.js b/js/components/blocks/ShareBlock.js deleted file mode 100644 index bbcfe70..0000000 --- a/js/components/blocks/ShareBlock.js +++ /dev/null @@ -1,159 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import queryString from 'query-string'; -// -import FontAwesome from 'react-fontawesome'; -// -import { OverlayTrigger, Popover, Input } from 'react-bootstrap'; -// -import { - ShareButtons, - ShareCounts, - generateShareIcon -} from 'react-share'; -// -import FilterStore from '../../stores/FilterStore'; - -const { - FacebookShareButton, - GooglePlusShareButton, - LinkedinShareButton, - TwitterShareButton, - PinterestShareButton -} = ShareButtons; - -const FacebookIcon = generateShareIcon('facebook'); -const TwitterIcon = generateShareIcon('twitter'); -const GooglePlusIcon = generateShareIcon('google'); -const LinkedinIcon = generateShareIcon('linkedin'); -const PinterestIcon = generateShareIcon('pinterest'); - -/** - * ShareBlock contains user info - */ -const ShareBlock = React.createClass({ - - mixins: [ - Reflux.connect(FilterStore, 'filterStore') - ], - - handleFocus(e) { - e.target.select(); - }, - - render() { - const filterStore = this.state.filterStore; - // - let appliedFilter = ''; - if (filterStore) { - const { filter, searchStr, tags, languages, sort, direction } = filterStore; - const [ isFilter, isTags, isLanguages, isSearch, isSort ] = [ - filter !== 'all', - tags && tags.length, - languages && languages.length, - searchStr.length, - sort && direction && !(sort == 'name' && direction == 'asc') - ]; - const isFiltered = isFilter || isTags || isLanguages || isSearch || isSort; - if (isFiltered) { - const filters = {}; - if (isFilter) { - filters.filter = filter; - } - if (isSearch) { - filters.searchStr = searchStr; - } - if (isTags) { - filters.tags = tags; - } - if (isLanguages) { - filters.languages = languages; - } - if (isSort) { - filters.sort = sort; - filters.direction = direction; - } - appliedFilter = '?' + queryString.stringify(filters); - } - } - // - const shareUrl = 'https://githubify.me/' + - (this.props.name || '') + appliedFilter; - const title = 'Githubify.me (place to manage and organize tags for your repos)'; - // - return ( -
-
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - - } - > - - -
-
- ); - } -}); - -export default ShareBlock; diff --git a/js/components/blocks/SocialLinksBlock.js b/js/components/blocks/SocialLinksBlock.js deleted file mode 100644 index 4938967..0000000 --- a/js/components/blocks/SocialLinksBlock.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -import React from 'react'; -// -import FontAwesome from 'react-fontawesome'; - -/** - * Social links block contains github and twitter links - */ -const SocialLinksBlock = React.createClass({ - - render() { - return ( -
-
- - - - Follow @Githubifyme - - -
-
- - - - Fork repo on Github - - -
-
- ); - } -}); - -export default SocialLinksBlock; diff --git a/js/components/blocks/SortingBlock.js b/js/components/blocks/SortingBlock.js deleted file mode 100644 index ef6ee8b..0000000 --- a/js/components/blocks/SortingBlock.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -import React from 'react'; -// -import { Input } from 'react-bootstrap'; -// -import FilterActions from '../../actions/FilterActions'; - -/** - * Sorting block displays select element for sorting - */ -const SortingBlock = React.createClass({ - - handleSortSelect() { - const sort = this.refs.sort.getValue(); - let sorting = {}; - switch(sort) { - case 'titleAsc': - sorting = { - sort: 'name', - direction: 'asc' - }; - break; - case 'titleDesc': - sorting = { - sort: 'name', - direction: 'desc' - }; - break; - case 'createdAsc': - sorting = { - sort: 'created_at', - direction: 'asc' - }; - break; - case 'createdDesc': - sorting = { - sort: 'created_at', - direction: 'desc' - }; - break; - case 'updatedAsc': - sorting = { - sort: 'updated_at', - direction: 'asc' - }; - break; - case 'updatedDesc': - sorting = { - sort: 'updated_at', - direction: 'desc' - }; - break; - case 'starsAsc': - sorting = { - sort: 'stargazers_count', - direction: 'asc' - }; - break; - case 'starsDesc': - sorting = { - sort: 'stargazers_count', - direction: 'desc' - }; - break; - } - FilterActions.setSorting(sorting); - }, - - render() { - return ( -
- - - - - - - - - - -
- ); - } -}); - -export default SortingBlock; diff --git a/js/components/blocks/TagsBlock.js b/js/components/blocks/TagsBlock.js deleted file mode 100644 index ffd0c71..0000000 --- a/js/components/blocks/TagsBlock.js +++ /dev/null @@ -1,211 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import Rebase from 're-base'; -import _ from 'lodash'; -// -import { Input, Button, Alert } from 'react-bootstrap'; -// -import FontAwesome from 'react-fontawesome'; -// -import FilterActions from '../../actions/FilterActions'; -// -import ReposStore from '../../stores/ReposStore'; -import FilterStore from '../../stores/FilterStore'; -// -import Config from '../../config/Config'; - -const base = Rebase.createClass(Config.FirebaseUrl); - -/** - * TagsBlock contains list of all tags - */ -const TagsBlock = React.createClass({ - - mixins: [ - Reflux.connect(ReposStore, 'reposStore'), - Reflux.connect(FilterStore, 'filterStore') - ], - - getInitialState() { - return({ - tagEditingKey: '' - }); - }, - - componentDidMount() { - const userID = this.props.openUser.id; - const query = this.props.query; - const _this = this; - base.listenTo('users/github:' + userID + '/tags', { - context: this, - asArray: true, - then(tags) { - if (query.tags && query.tags.length) { - const queryTags = !_.isArray(query.tags) ? [query.tags] : query.tags; - const tagReposIds = _this.getTagReposIds(tags, queryTags); - FilterActions.setTagsReposIds(tagReposIds); - } - FilterActions.setDefaultFilters(false, true); - } - }); - }, - - getTagReposIds(tags, activeTags) { - const reposStore = this.state.reposStore; - const tagReposIds = reposStore && activeTags.length ? - _(tags) - .filter((tag) => { - return _.includes(activeTags, tag.key); - }) - .map((tag) => { - return _(tag.repos).values().pluck('id').value(); - }) - .flatten() - .uniq() - .value() : - _(reposStore.repos) - .pluck('id') - .value(); - return tagReposIds; - }, - - filterReposByTags(event, tag) { - const filterStore = this.state.filterStore; - let activeTags = filterStore ? - filterStore.tags : - []; - // - const openUserName = this.props.openUser.login; - const tagKey = tag.key; - const targetClassName = event.target.className; - const isRemoving = ~targetClassName.indexOf('tag-remove-icon'); - const isEditing = ~targetClassName.indexOf('tag-edit-icon'); - if (~targetClassName.indexOf('tag-edit-input')) { - return; - } - if (isRemoving) { - this.props.setFirebaseTags(tagKey); - activeTags = _.difference(activeTags, [tagKey]); - } - else if (isEditing) { - this.setState({ - tagEditingKey: tag.key - }); - } - else { - activeTags = _.xor(activeTags, [tagKey]); - } - // - if (!isEditing) { - const tagReposIds = this.getTagReposIds(this.props.tags, activeTags); - FilterActions.setTagsReposIds(tagReposIds); - FilterActions.setTags(activeTags); - } - }, - - handleKeyUp(e, tag) { - if (e.keyCode == 13) { - this.submitTagEdit(tag); - } - }, - - submitTagEdit(tag) { - const tagName = this.refs.inputTagEdit.getValue().trim(); - this.props.editTag(this.state.tagEditingKey, tagName, tag, () => { - const filterStore = this.state.filterStore; - let activeTags = filterStore ? - filterStore.tags : - []; - activeTags = _.difference(activeTags, [this.state.tagEditingKey]); - const tagReposIds = this.getTagReposIds(this.props.tags, activeTags); - FilterActions.setTagsReposIds(tagReposIds); - FilterActions.setTags(activeTags); - }); - }, - - render() { - const tagsList = this.props.tags ? - _.sortBy(this.props.tags, 'key') : - null; - const filterStore = this.state.filterStore; - // - let tagsBlock = null; - const isCurrentUser = this.props.isLoggedIn && this.props.openUser && - ('github:' + this.props.openUser.id == this.props.uid); - const isTagsListEmpty = tagsList && !tagsList.length; - if (isCurrentUser && isTagsListEmpty) { - tagsBlock =

You don't have any tags yet. Fell free to add them

; - } - else if (!isCurrentUser && isTagsListEmpty) { - tagsBlock =

- Unfortunately this user doesn't have any tags on githubify. - { this.props.openUser.email ? -  Let him/her know about it on email:  - - {this.props.openUser.email} - - : - null - } -

; - } - if (tagsList && tagsList.length && this.props.openUser) { - tagsBlock = _.map(tagsList, (tag) => { - let activeClass = filterStore && _.includes(filterStore.tags, tag.key) ? - ' active' : - ''; - let editingClass = (this.state.tagEditingKey === tag.key) ? - ' active editing-tag' : - ''; - // - return ( - this.filterReposByTags(e, tag)} - > - { this.state.tagEditingKey !== tag.key ? - tag.key : - this.handleKeyUp(e, tag)} - /> - } - { isCurrentUser ? - [ - , - - ]: - null - } - - ); - }); - } - // - return ( -
- {tagsBlock} -
- ); - } -}); - -export default TagsBlock; diff --git a/js/components/blocks/UserBlock.js b/js/components/blocks/UserBlock.js deleted file mode 100644 index 14ef7e0..0000000 --- a/js/components/blocks/UserBlock.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -import React from 'react'; -// -import { Row, Col } from 'react-bootstrap'; -// -import ShareBlock from './ShareBlock'; -import SocialLinksBlock from './SocialLinksBlock'; - -/** - * UserBlock contains user info - */ -const UserBlock = React.createClass({ - - render() { - const openUser = this.props.openUser; - // - return ( -
- { - openUser ? - - - - - - - - -

{openUser.name}

-

{openUser.login}

- - - - -
: - null - } -
- ); - } -}); - -export default UserBlock; diff --git a/js/components/menus/UserMenu.js b/js/components/menus/UserMenu.js deleted file mode 100644 index b94238e..0000000 --- a/js/components/menus/UserMenu.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; - -import React from 'react'; -import Rebase from 're-base'; -import _ from 'lodash'; -// -import UserActions from '../../actions/UserActions'; -// -import Config from '../../config/Config'; -// -import History from '../../history/History'; - -const base = Rebase.createClass(Config.FirebaseUrl); - -/** - * User menu displays user links - */ -const UserMenu = React.createClass({ - - componentDidMount() { - if (this.props.isLoggedIn) { - const userID = this.props.info.id; - this.ref = base.syncState('users/github:' + userID, { - context: this, - state: 'user', - asObject: true, - then() { - if (!this.state.user.active) { - this.setState({ - user: { - active: true, - username: this.props.info.login - } - }); - } - } - }); - } - }, - - handleUsernameClick() { - History.pushState(null, this.props.info.login); - }, - - handleLogoutClick() { - UserActions.logout(); - }, - - handleLoginClick() { - UserActions.login(); - }, - - render() { - return ( -
- { this.props.isLoggedIn ? - [ - - {this.props.info.login} - , - , - - Logout - - ] : - - Login - - } -
- ); - } -}); - -export default UserMenu; diff --git a/js/components/modals/TagLimitModal.js b/js/components/modals/TagLimitModal.js deleted file mode 100644 index 490a5b1..0000000 --- a/js/components/modals/TagLimitModal.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -// -import { Modal, Button } from 'react-bootstrap'; -// -import ModalActions from '../../actions/ModalActions'; -// -import ModalStore from '../../stores/ModalStore'; - -/** - * User menu displays user links - */ -const TagLimitModal = React.createClass({ - - mixins: [Reflux.connect(ModalStore, 'modalStore')], - - render() { - const showModal = this.state.modalStore; - // - return ( - - - Oops... - - -

Unfortunatelly you can't add more than 50 tags

-
- - - -
- ); - } -}); - -export default TagLimitModal; diff --git a/js/config/Config.example.js b/js/config/Config.example.js deleted file mode 100644 index 33cf8fe..0000000 --- a/js/config/Config.example.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - FirebaseUrl: 'https://.firebaseio.com/', - GithubApiUrl: 'https://api.github.com/', - PerPage: 60 -}; diff --git a/js/history/History.js b/js/history/History.js deleted file mode 100644 index 103d0c9..0000000 --- a/js/history/History.js +++ /dev/null @@ -1,3 +0,0 @@ -import createBrowserHistory from 'history/lib/createBrowserHistory'; - -export default createBrowserHistory({ forceRefresh: true }); diff --git a/js/pages/LoginPage.js b/js/pages/LoginPage.js deleted file mode 100644 index 8d111b3..0000000 --- a/js/pages/LoginPage.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import moment from 'moment'; -// -import { Grid, Row, Col } from 'react-bootstrap'; -// -import LoginForm from '../components/blocks/LoginForm'; -import LoadingBlock from '../components/blocks/LoadingBlock'; -import UserBlock from '../components/blocks/UserBlock'; -import ReposBlock from '../components/blocks/ReposBlock'; -import TagsBlock from '../components/blocks/TagsBlock'; -import FilterBlock from '../components/blocks/FilterBlock'; -// -import UserActions from '../actions/UserActions'; -// -import UserStore from '../stores/UserStore'; -// -import History from '../history/History'; - -/** - * Login page contains login form - */ -const LoginPage = React.createClass({ - - mixins: [Reflux.connect(UserStore, 'userStore')], - - componentDidMount() { - UserActions.isLoggedIn(); - }, - - componentWillUpdate(nextProps, nextState) { - if (nextState.userStore && nextState.userStore.isLoggedIn) { - History.pushState(null, nextState.userStore.info.login); - } - }, - - render() { - const userStore = this.state.userStore; - // - return ( - - - - { - userStore ? - : - - } - - - - ); - } -}); - -export default LoginPage; diff --git a/js/pages/MainPage.js b/js/pages/MainPage.js deleted file mode 100644 index b8ce380..0000000 --- a/js/pages/MainPage.js +++ /dev/null @@ -1,192 +0,0 @@ -'use strict'; - -import React from 'react'; -import Reflux from 'reflux'; -import Rebase from 're-base'; -import moment from 'moment'; -// -import { Grid, Row, Col } from 'react-bootstrap'; -// -import ClearFiltersBlock from '../components/blocks/ClearFiltersBlock'; -import EmptyUserBlock from '../components/blocks/EmptyUserBlock'; -import FilterBlock from '../components/blocks/FilterBlock'; -import LanguagesBlock from '../components/blocks/LanguagesBlock'; -import LoadingBlock from '../components/blocks/LoadingBlock'; -import LoginForm from '../components/blocks/LoginForm'; -import ReposBlock from '../components/blocks/ReposBlock'; -import SearchBlock from '../components/blocks/SearchBlock'; -import TagsBlock from '../components/blocks/TagsBlock'; -import UserBlock from '../components/blocks/UserBlock'; -import UserMenu from '../components/menus/UserMenu'; -import TagLimitModal from '../components/modals/TagLimitModal'; -// -import FilterActions from '../actions/FilterActions'; -import ReposActions from '../actions/ReposActions'; -import UserActions from '../actions/UserActions'; -// -import UserStore from '../stores/UserStore'; -// -import Config from '../config/Config'; - -const base = Rebase.createClass(Config.FirebaseUrl); - -/** - * Main page contains tags, filters and repos - */ -const MainPage = React.createClass({ - - mixins: [Reflux.connect(UserStore, 'userStore')], - - componentDidMount() { - UserActions.isLoggedIn(); - UserActions.getUser(this.props.params.uname); - // - const filter = this.props.location.query.filter || 'all'; - ReposActions.getRepos(this.props.params.uname, 1, filter); - FilterActions.getFilters(); - FilterActions.getDefaultFilters(this.props.location.query); - }, - - componentDidUpdate(prevProps, prevState) { - const userStore = prevState.userStore; - if (userStore && userStore.openUser && !this.state.tags) { - const userID = userStore.openUser.id; - this.ref = base.syncState('users/github:' + userID + '/tags', { - context: this, - state: 'tags', - asArray: true - }); - } - }, - - componentWillUnmount() { - base.removeBinding(this.ref); - }, - - setFirebaseTagRepos(tagKey, newReposList) { - const userStore = this.state.userStore; - const userID = userStore.openUser.id; - base.post('users/github:' + userID + '/tags/' + tagKey, { - data: { repos: newReposList } - }); - }, - - setFirebaseTags(tagKey) { - const userStore = this.state.userStore; - const userID = userStore.openUser.id; - base.post('users/github:' + userID + '/tags/' + tagKey, { - data: null - }); - }, - - editTag(oldTagKey, newTagKey, tag, callback) { - const userStore = this.state.userStore; - const userID = userStore.openUser.id; - base.post('users/github:' + userID + '/tags/' + newTagKey, { - data: { repos: tag.repos }, - then() { - base.post('users/github:' + userID + '/tags/' + oldTagKey, { - data: null, - then() { - callback(); - } - }); - } - }); - }, - - render() { - const userStore = this.state.userStore; - // - return ( - - - - { - userStore && userStore.openUser ? - userStore.openUser.isActive ? - [ - -
- - -

GITHUBIFY.me

- - -
- -
- -
- -
-
, - -
- -
-
, - -
- -
-
, - -
- -
-
, - -
- -
-
, - -
- -
-
, - -
- -
-
- ] : - : - - } - - -
-
- ); - } -}); - -export default MainPage; diff --git a/js/routers/Router.js b/js/routers/Router.js deleted file mode 100644 index 3f12216..0000000 --- a/js/routers/Router.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -import React from 'react'; -import { render } from 'react-dom'; -import { Router, Route } from 'react-router'; -// -import LoginPage from '../pages/LoginPage'; -import MainPage from '../pages/MainPage'; -// -import History from '../history/History'; - -render(( - - - - -), document.getElementById('content')); diff --git a/js/stores/FilterStore.js b/js/stores/FilterStore.js deleted file mode 100644 index d3756ef..0000000 --- a/js/stores/FilterStore.js +++ /dev/null @@ -1,118 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; -import request from 'superagent'; -import _ from 'lodash'; -// -import Config from '../config/Config'; -// -import FilterActions from '../actions/FilterActions'; -import ReposActions from '../actions/ReposActions'; - -/** - * FilterStore processes filter options info - */ -const FilterStore = Reflux.createStore({ - listenables: [FilterActions], - filterInfo: { - filter: 'all', - tags: [], - languages: [], - searchStr: '', - // - sort: 'name', - direction: 'asc', - // - defaultFilters: null, - tagReposIds: [], - isAllRepos: false, - isAllTags: false - }, - - getFilters(filter) { - this.filterInfo = { - filter: filter || 'all', - tags: [], - languages: [], - searchStr: '', - // - sort: this.filterInfo.sort || 'name', - direction: this.filterInfo.direction || 'asc', - // - defaultFilters: this.filterInfo.defaultFilters - }; - this.trigger(this.filterInfo); - }, - - getDefaultFilters(defaultFilters) { - this.filterInfo.defaultFilters = defaultFilters; - }, - - setFilter(username, filter) { - ReposActions.initRepos(); - ReposActions.getRepos(username, 1, filter); - this.getFilters(filter); - }, - - setTags(tags) { - this.filterInfo.tags = tags; - this.setFilters(); - }, - - setTagsReposIds(tagReposIds) { - this.filterInfo.tagReposIds = tagReposIds; - }, - - setLanguages(languages) { - this.filterInfo.languages = languages; - this.setFilters(); - }, - - setSearch(searchStr) { - this.filterInfo.searchStr = searchStr; - this.setFilters(); - }, - - setSorting(sorting) { - this.filterInfo.sort = sorting.sort; - this.filterInfo.direction = sorting.direction; - this.setFilters(); - }, - - setFilters() { - ReposActions.filterRepos(this.filterInfo); - this.trigger(this.filterInfo); - }, - - setDefaultFilters(isAllRepos, isAllTags) { - if (isAllRepos) { - this.filterInfo.isAllRepos = true; - } - if (isAllTags) { - this.filterInfo.isAllTags = true; - } - this.trigger(this.filterInfo); - if (this.filterInfo.isAllRepos && this.filterInfo.isAllTags && this.filterInfo.defaultFilters) { - const { filter, searchStr, sort, direction } = this.filterInfo.defaultFilters; - let { languages, tags } = this.filterInfo.defaultFilters; - if (tags && !_.isArray(tags)) { - tags = [tags]; - } - if (languages && !_.isArray(languages)) { - languages = [languages]; - } - // - this.filterInfo.filter = filter || 'all'; - this.filterInfo.languages = languages || []; - this.filterInfo.tags = tags || []; - this.filterInfo.searchStr = searchStr || ''; - this.filterInfo.sort = sort || 'name'; - this.filterInfo.direction = direction || 'asc'; - this.setFilters(); - this.filterInfo.defaultFilters = null; - } - } - -}); - -export default FilterStore; diff --git a/js/stores/ModalStore.js b/js/stores/ModalStore.js deleted file mode 100644 index 13ae19c..0000000 --- a/js/stores/ModalStore.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; -// -import ModalActions from '../actions/ModalActions'; - -/** - * ModalStore processes user info - */ -const ModalStore = Reflux.createStore({ - listenables: [ModalActions], - showModal: false, - - showModal() { - this.showModal = true; - this.trigger(this.showModal); - }, - - hideModal() { - this.showModal = false; - this.trigger(this.showModal); - } - -}); - -export default ModalStore; diff --git a/js/stores/ReposStore.js b/js/stores/ReposStore.js deleted file mode 100644 index 34736d1..0000000 --- a/js/stores/ReposStore.js +++ /dev/null @@ -1,117 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; -import request from 'superagent'; -import _ from 'lodash'; -// -import Config from '../config/Config'; -// -import ReposActions from '../actions/ReposActions'; -import FilterActions from '../actions/FilterActions'; - -/** - * ReposStore processes repos info - */ -const ReposStore = Reflux.createStore({ - listenables: [ReposActions], - reposInfo: { - repos: [], - filteredRepos: [], - languages: [], - isShowingOwner: false, - username: null, - // - sort: 'name', - direction: 'asc' - }, - - initRepos() { - this.reposInfo.repos = []; - this.reposInfo.filteredRepos = []; - }, - - getRepos(username, page, filter) { - const _this = this; - let reposUrl = 'repos'; - if (filter == 'starred') { - reposUrl = 'starred'; - } - this.reposInfo.isShowingOwner = _.includes(['starred', 'member'], filter); - const includeForks = filter == 'forks'; - // - const requestUrl = Config.GithubApiUrl + 'users/' + username + '/' + reposUrl; - const qs = { - per_page: Config.PerPage, - page: page, - type: filter - }; - // - request - .get(requestUrl, qs) - .end(function(err, res) { - if (err != null) { - console.error(requestUrl, res.status, err.toString()); - _this.trigger(_this.reposInfo); - return; - } - console.log('success GET-request: ' + requestUrl, res); - // - let newRepos = res.body; - if (_.includes(['owner', 'forks'], filter)) { - newRepos = _.filter(newRepos, (repo) => { - return includeForks ? repo.fork : !repo.fork; - }); - } - // - _this.reposInfo.repos = _.union(_this.reposInfo.repos, newRepos); - _this.reposInfo.repos = _.sortByOrder(_this.reposInfo.repos, _this.reposInfo.sort, _this.reposInfo.direction); - _this.reposInfo.filteredRepos = _this.reposInfo.repos; - // - // - const languages = _.chain(_this.reposInfo.repos) - .pluck('language') - .uniq() - .compact() - .value(); - _this.reposInfo.languages = languages; - _this.trigger(_this.reposInfo); - // - if (res.body.length == Config.PerPage) { - _this.getRepos(username, page + 1, filter); - } - else { - FilterActions.setDefaultFilters(true, false); - } - }); - }, - - filterRepos(filters) { - const { tags, tagReposIds, languages, searchStr, sort, direction } = filters; - let newRepos = this.reposInfo.repos; - if (tags && tags.length) { - newRepos = _.filter(newRepos, (repo) => { - return _.includes(tagReposIds, repo.id); - }); - } - if (languages && languages.length) { - newRepos = _.filter(newRepos, (repo) => { - return _.includes(languages, repo.language); - }); - } - if (searchStr && searchStr.length) { - newRepos = _.filter(newRepos, (repo) => { - return _.includes(repo.name.toLowerCase(), searchStr.toLowerCase()); - }); - } - if (sort) { - newRepos = _.sortByOrder(newRepos, sort, direction); - this.reposInfo.sort = sort; - this.reposInfo.direction = direction; - } - this.reposInfo.filteredRepos = newRepos; - this.trigger(this.reposInfo); - } - -}); - -export default ReposStore; diff --git a/js/stores/UserStore.js b/js/stores/UserStore.js deleted file mode 100644 index dade3c3..0000000 --- a/js/stores/UserStore.js +++ /dev/null @@ -1,94 +0,0 @@ -'use strict'; - -import Reflux from 'reflux'; -import Rebase from 're-base'; -import request from 'superagent'; -import _ from 'lodash'; -// -import UserActions from '../actions/UserActions'; -import FilterActions from '../actions/FilterActions'; -import ReposActions from '../actions/ReposActions'; -// -import Config from '../config/Config'; - -const base = Rebase.createClass(Config.FirebaseUrl); - -/** - * UserStore processes user info - */ -const UserStore = Reflux.createStore({ - listenables: [UserActions], - user: { - isLoggedIn: false, - info: {}, - uid: null, - openUser: null - }, - - login() { - const _this = this; - base.authWithOAuthPopup('github', (error, authData) => { - if (error) { - console.log('Login Failed!', error); - _this.user.isLoggedIn = false; - _this.trigger(_this.user); - } else { - console.log('Authenticated successfully with payload:', authData); - _this.user.isLoggedIn = true; - _this.user.info = authData.github.cachedUserProfile; - _this.user.uid = authData.uid; - _this.trigger(_this.user); - } - }); - }, - - isLoggedIn() { - const authData = base.getAuth(); - // - if (authData) { - console.log('User ' + authData.uid + ' is logged in with ' + authData.provider); - this.user = { - isLoggedIn: true, - info: authData.github.cachedUserProfile, - uid: authData.uid - }; - } else { - console.log('User is logged out'); - this.user.isLoggedIn = false; - } - this.trigger(this.user); - }, - - logout() { - base.unauth(); - // - this.user.isLoggedIn = false; - this.trigger(this.user); - }, - - getUser(username) { - const _this = this; - const requestUrl = Config.GithubApiUrl + 'users/' + username; - // - request - .get(requestUrl) - .end(function(err, res) { - if (err != null) { - console.error(requestUrl, res.status, err.toString()); - _this.user.openUser = { - isActive: false - }; - _this.trigger(_this.user); - return; - } - console.log('success GET-request: ' + requestUrl, res); - // - _this.user.openUser = res.body; - _this.user.openUser.isActive = true; - _this.trigger(_this.user); - }); - } - -}); - -export default UserStore; diff --git a/less/app.less b/less/app.less deleted file mode 100644 index 388cc36..0000000 --- a/less/app.less +++ /dev/null @@ -1,11 +0,0 @@ -// Bootstrap library. -@import '../node_modules/bootstrap/less/bootstrap.less'; -@import '../node_modules/font-awesome/less/font-awesome.less'; - -// Base-theme overrides. -//@import 'overrides.less'; - -// Theme specific. -@import 'mixins.less'; -@import 'general.less'; -@import 'components.less'; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..a86b499 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2338 @@ +{ + "name": "githubify.me", + "version": "4.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "githubify.me", + "version": "4.0.0", + "dependencies": { + "bootstrap": "^3.4.1", + "firebase": "^12.19.0", + "font-awesome": "^4.7.0", + "masonry-layout": "^4.2.2", + "react": "^19.3.0", + "react-dom": "^19.3.0", + "react-router": "^8.4.0" + }, + "devDependencies": { + "@vitejs/plugin-react": "^6.1.2", + "less": "^4.9.1", + "vite": "^8.3.3" + } + }, + "node_modules/@firebase/ai": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@firebase/ai/-/ai-2.16.0.tgz", + "integrity": "sha512-WRVxl58B61Orwf7st7949ZIW2L4huV80Gpaum1z8v2eH+m2xaxWtC8mOjQyVAOirr6O/yf89cBjlPvoyBpBfTg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.5", + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-types": "0.x" + } + }, + "node_modules/@firebase/analytics": { + "version": "0.10.25", + "resolved": "https://registry.npmjs.org/@firebase/analytics/-/analytics-0.10.25.tgz", + "integrity": "sha512-oDagV3PHeNXBdxemksZCdj+GmUT19eCnTOcLdQePIIovFXlm3zWy3Gjeaokt9Nqx24kc4ljK8lU0XGcGmmKZ1A==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/installations": "0.6.24", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/analytics-compat": { + "version": "0.2.31", + "resolved": "https://registry.npmjs.org/@firebase/analytics-compat/-/analytics-compat-0.2.31.tgz", + "integrity": "sha512-msTlG9REujk5rjtOHNLngiuPmvaWGQte8ugL4/F6ZCMb+92Ue7SgjSEpNxINkM8ZtTrbGS83j5SZkt0r+M1Tjw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/analytics": "0.10.25", + "@firebase/analytics-types": "0.8.5", + "@firebase/component": "0.7.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/analytics-types": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/@firebase/analytics-types/-/analytics-types-0.8.5.tgz", + "integrity": "sha512-kdnooE7Bis2jEnsqcerRwn/UQpH5D3uvHpku7OdUM9TJN3omlu6iYtbyAQ6XkAJRgJtO0aNf9OOkW8J6D59oCA==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/app": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.16.2.tgz", + "integrity": "sha512-fyCLPahl3r0Zb7Wzm+JLWcOOH3SaDgAyJzJ8EWIDiv51aNiv+2Pjbpa6myEuP7iXxjmJqrcbVm0GUF7h229T1Q==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "idb": "7.1.1", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/app-check": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@firebase/app-check/-/app-check-0.13.1.tgz", + "integrity": "sha512-l8y3dmnhodXks/APAwx4tWqRl3tk8b9874KF1FJyKg1DIU+kMD0l52iz7S9/MW+eK8k6cjJg0G0iJ5KQAsQpow==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/app-check-compat": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@firebase/app-check-compat/-/app-check-compat-0.4.7.tgz", + "integrity": "sha512-fBb/xSMyIKv1nDmccfzz3IAGBzx/cQOxmZai66rJzifb1hMMkztf824Xx7LhpTUe7HNUbXwY90IvJ66fi8q6yg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check": "0.13.1", + "@firebase/app-check-types": "0.5.5", + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/app-check-interop-types": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.3.5.tgz", + "integrity": "sha512-qId34pVZ2CXTmtu4ofW5leiI93DvnOvIcr/5GT7MZPw5WXAi6nZoU+g9cNRgl7K90UJSbK0cXxten4meYMPyZg==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/app-check-types": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@firebase/app-check-types/-/app-check-types-0.5.5.tgz", + "integrity": "sha512-+DF4gzFrlwGFyky38o4T/YN/r51l70yCtJ2HTkwmRj8FCMwPjm4hLH4fQbj6BUvzkiFqliBkitFsRpf1/YZkWA==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/app-compat": { + "version": "0.5.18", + "resolved": "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.5.18.tgz", + "integrity": "sha512-77H57WuGEsgrv59HdtuhHG+eQdP8di6myz7O93yW6yTZlR/tLSmsCxCq5vHp6AWWDwSV0EVtKUvizXQiQZVBWA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app": "0.16.2", + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/app-types": { + "version": "0.9.6", + "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.6.tgz", + "integrity": "sha512-yPLahy7Esfu2w/yme3msVK4xTkDXQqq6szfQn8yVOQpCKiT5GVFjqNpLbuz6NkX0WuTwUidkmPewW3r4xkvpeg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/logger": "0.5.2" + } + }, + "node_modules/@firebase/auth": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/@firebase/auth/-/auth-1.13.6.tgz", + "integrity": "sha512-MKRLvF72HJ/irNn2fJR0Gv5FOZNtqv1IBeJHRwK8l8pZ/wi9vuUw8ecyCMvQDDNxfS6uW0MWACL5KC4Y8Pp+fA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@react-native-async-storage/async-storage": "^2.2.0 || ^3.0.0" + }, + "peerDependenciesMeta": { + "@react-native-async-storage/async-storage": { + "optional": true + } + } + }, + "node_modules/@firebase/auth-compat": { + "version": "0.6.11", + "resolved": "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.6.11.tgz", + "integrity": "sha512-L+xp3DTJQrBV08Vt0UhcL/ofUOSjXom7JOJfbT6oas4o7gCrQnTYFKs8wfiuKLmHoo8BxMr5LdgjAs7o6aAsqQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/auth": "1.13.6", + "@firebase/auth-types": "0.13.2", + "@firebase/component": "0.7.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/auth-interop-types": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.2.6.tgz", + "integrity": "sha512-FgwZqDrBqgK0BHI70QTv1v/5wmuDF9f8fsJFvKSxoRlK2PPfSQtZAk2jhXu4pe9BZzFi/e4UYusU/bEQHdf6Qg==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/auth-types": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/@firebase/auth-types/-/auth-types-0.13.2.tgz", + "integrity": "sha512-OU+miuoSxIWYN7GT291d2ylVJBL3k/OePo7/JDSoQtkFQoEiGBc4AHuMjj/seqFIsHrqnjrAfRCk4pfufoJolQ==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x", + "@firebase/util": "1.x" + } + }, + "node_modules/@firebase/component": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.7.5.tgz", + "integrity": "sha512-vuFDcL91Q+2ZuBJkyOh86T4q0B4ffNTDjc/A38tybO56odQABxRTFLTIowCWqAKeIcgo37GowWMVgFF73gD8Qw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/data-connect": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/@firebase/data-connect/-/data-connect-0.7.4.tgz", + "integrity": "sha512-su1aGWlzhxb+xtggCUSsufJn1FDa06SBDK71y+fpQ+g2zMhMExik6FUv/odkKzOF/xfWVjabCbWBcjJY3MceDA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/auth-interop-types": "0.2.6", + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/database": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@firebase/database/-/database-1.1.5.tgz", + "integrity": "sha512-/JGpvszLoNXNgzilRXocigGfFF4hbcPA9wN1i1kjJx6oKkXgkHteZYl3lQs1lJX3ETDf6bv7zI15lPMVUp4sAQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.5", + "@firebase/auth-interop-types": "0.2.6", + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "faye-websocket": "0.11.4", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/database-compat": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-2.1.7.tgz", + "integrity": "sha512-lBq9sJm8MnJINKJnkAKSOj2MbC66xGoSVCcGkPtstl+lkoKEBtD46qHLbuDgW/WbLPoKVm17RIN8BxHj+Z2F2w==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/database": "1.1.5", + "@firebase/database-types": "1.0.22", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + }, + "peerDependenciesMeta": { + "@firebase/app": { + "optional": true + }, + "@firebase/app-compat": { + "optional": true + } + } + }, + "node_modules/@firebase/database-types": { + "version": "1.0.22", + "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-1.0.22.tgz", + "integrity": "sha512-YAZNXsjY9EQQ+pKw/3ax8n5FgolHC7Qew7EY5RceYdl0R2ZP+kCv1O0DkKlcceue8uQCOreHCNN7PWVFpY1Nug==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-types": "0.9.6", + "@firebase/util": "1.15.3" + } + }, + "node_modules/@firebase/firestore": { + "version": "4.17.2", + "resolved": "https://registry.npmjs.org/@firebase/firestore/-/firestore-4.17.2.tgz", + "integrity": "sha512-SiyQEK1dYPOjItFVA+kZGdvOoRAtMebDBvUaSxJPNZMkKcRwYYK2kzWo5UXTZZj523uMxJnkr+KKVySEMme3kQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "@firebase/webchannel-wrapper": "1.0.7", + "@grpc/grpc-js": "~1.9.0", + "@grpc/proto-loader": "^0.7.8", + "re2js": "^2.8.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/firestore-compat": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.4.14.tgz", + "integrity": "sha512-HJ2HBNgNPrRsWIJ4E+Kc0u0h1U7HlF7If8AtYjie9HZXlMUmwYSJaXBj9VFm6gkSj5dlKZNcOQ0Ou25CVVG6rA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/firestore": "4.17.2", + "@firebase/firestore-types": "3.0.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/firestore-types": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@firebase/firestore-types/-/firestore-types-3.0.5.tgz", + "integrity": "sha512-dbdMAQkMd5dwWc48eupz/Y6/E9ruat3+gY5lhVKscvvT/HnDBEEMzJW38zdKhgdnglZHGk2vUsJMOHAphMHGMA==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x", + "@firebase/util": "1.x" + } + }, + "node_modules/@firebase/functions": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@firebase/functions/-/functions-0.14.0.tgz", + "integrity": "sha512-DhuYFr0eMhp+s/PNEk6SiMsYkc00+XVOUeKbrl8MOzQNZI3SKQpqoDR1d+keNDAutwmHRWTUAdXBoVPD+xxVUw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.5", + "@firebase/auth-interop-types": "0.2.6", + "@firebase/component": "0.7.5", + "@firebase/messaging-interop-types": "0.2.6", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/functions-compat": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@firebase/functions-compat/-/functions-compat-0.5.0.tgz", + "integrity": "sha512-T3BDIToESZUHt7438wyKYMkRjKg3m1xAIux5fVpNvTRQlDOFLukWniQWBDhJ2znpU9kxMTR6+e31TVo8P15PZw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/functions": "0.14.0", + "@firebase/functions-types": "0.6.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/functions-types": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@firebase/functions-types/-/functions-types-0.6.5.tgz", + "integrity": "sha512-Zc0pURjthHXzSj54ZivCkzKDSV1r/wIpnmHdhq82q2yFFPVoncG/ZJjnVMiANvQfeww/QnElhzODpfwUucVwdA==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/installations": { + "version": "0.6.24", + "resolved": "https://registry.npmjs.org/@firebase/installations/-/installations-0.6.24.tgz", + "integrity": "sha512-Ui52ey8wHoWqkBbXRKJEKYWylI0JZogZmoLS+o8Anh1bxWtK27ZYjLla1UJAAdC5DCKLJ2qAp0VpJOjg8VOX1g==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/util": "1.15.3", + "idb": "7.1.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/installations-compat": { + "version": "0.2.24", + "resolved": "https://registry.npmjs.org/@firebase/installations-compat/-/installations-compat-0.2.24.tgz", + "integrity": "sha512-8M5nlcWwYt881x83COP2odq5vgf+NgwJh+RMd4LRSv8JI1pxwDfgrDJOERrjTgfC9J5Z0vnQX4b1pdN914e0Zw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/installations": "0.6.24", + "@firebase/installations-types": "0.5.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/installations-types": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@firebase/installations-types/-/installations-types-0.5.5.tgz", + "integrity": "sha512-e9UYcju3puDl1vdrcKIi5dExzHLameOT/Tc61Q48PYwxtsM1NzZh/ikGbdBQTsbRgg0EMZqdPr0/m5ODUBobrg==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x" + } + }, + "node_modules/@firebase/logger": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.5.2.tgz", + "integrity": "sha512-J2VO4NFTc0xQFrxV1B/lm5balicm9cwuX2acR9Yn41fN8KgUeQFo+VJV222IqW2FPSXKDu9uo5WdQFWf9TPbYg==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/messaging": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.13.3.tgz", + "integrity": "sha512-nRXPAp+z0kA3KziJtRY9kktHECvRwaaONzHvislFgllhCwJMscW7icWNQA5IjyP8Uc2+GS/4px8Uz6rx6ftTag==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/installations": "0.6.24", + "@firebase/messaging-interop-types": "0.2.6", + "@firebase/util": "1.15.3", + "idb": "7.1.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/messaging-compat": { + "version": "0.2.30", + "resolved": "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.30.tgz", + "integrity": "sha512-m1DPT2ET5x0qYqXLoHwKMAyf1mgZZOhuoE6H6/H4OPsp8zSxMIDEFPaW7MaffPJsCA5J7kHzo+BHVNXK4ZoV+w==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/messaging": "0.13.3", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/messaging-interop-types": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/@firebase/messaging-interop-types/-/messaging-interop-types-0.2.6.tgz", + "integrity": "sha512-MVzvkKe2V4H2dHu5oOxRfeKQcfTwWmCgnzsC4V1q3ixun5iiL8riCZ2qI35rDhCL4glPGiu0jHxDbpVNuTKfow==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/performance": { + "version": "0.7.14", + "resolved": "https://registry.npmjs.org/@firebase/performance/-/performance-0.7.14.tgz", + "integrity": "sha512-9PH1XEZVHErxGdbXluvGz4Uyjw4W955H8v7Mv9rHIybRrg5F2Ac2tvf5+mSf5EtnxWNmxrD2WLnvMFaZP4sMrQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/installations": "0.6.24", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0", + "web-vitals": "^4.2.4" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/performance-compat": { + "version": "0.2.27", + "resolved": "https://registry.npmjs.org/@firebase/performance-compat/-/performance-compat-0.2.27.tgz", + "integrity": "sha512-O/ozTf/EbChN94Pk7bd1eUC0PAC36726AwsaiJyC0bZzSBWfLGSWASGPH5pebUWXQPJtGxIJYRkkbX5l0Qa+Hw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/performance": "0.7.14", + "@firebase/performance-types": "0.2.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/performance-types": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@firebase/performance-types/-/performance-types-0.2.5.tgz", + "integrity": "sha512-PRzOgB+/M+6AKlEkY8a9xy5Ff5SfZPIh4iShXhn2WAcL/euSbK7bdLqWysHduunNJhGFsXa22Ag3ixqL6rQtYg==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/remote-config": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/@firebase/remote-config/-/remote-config-0.9.2.tgz", + "integrity": "sha512-Rii93DkXjM+RE/ytHdYa7EIiQLJbdBr+W8EEiqd/vbLCOC+1FdkDuRiumJBp6t3yewHGbdqbpjB3fk3z0cZ+8g==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/installations": "0.6.24", + "@firebase/logger": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/remote-config-compat": { + "version": "0.2.29", + "resolved": "https://registry.npmjs.org/@firebase/remote-config-compat/-/remote-config-compat-0.2.29.tgz", + "integrity": "sha512-mY7JtTISK6F4g4T0x3kVepr5cp0NXL7f5yjIUXXGaTrg4qUlFBWRbENaHaqZ78dwmNcLm24h/yPsOVRlDXEXhA==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/logger": "0.5.2", + "@firebase/remote-config": "0.9.2", + "@firebase/remote-config-types": "0.5.2", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/remote-config-types": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@firebase/remote-config-types/-/remote-config-types-0.5.2.tgz", + "integrity": "sha512-i8k1omVfoAnaT1ZPv2FFjxMZrATYsO/GnFgHEj5+7fAJLzi8wLnGGv1WK06oEAD6ltrWXSO1HzeNyajn/NjMWw==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/storage": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/@firebase/storage/-/storage-0.14.5.tgz", + "integrity": "sha512-r2tozN/BlEewLi70tJNUQPzWwbex9GM7NgXZsamHKQrjKEfcR0i4jGgHBKAKA4hbwiPE9eNMb3hcxWnDpeJZwg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x" + } + }, + "node_modules/@firebase/storage-compat": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@firebase/storage-compat/-/storage-compat-0.4.5.tgz", + "integrity": "sha512-vO0tFPxXbKDKdlTu8tYT08S9t9ezUTJYEdLCULpWxWq2aq6zojwN1QmAB+1a50AI/g47GlWUJn1XPncm/PDZsw==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.7.5", + "@firebase/storage": "0.14.5", + "@firebase/storage-types": "0.8.5", + "@firebase/util": "1.15.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@firebase/app": "0.x", + "@firebase/app-compat": "0.x" + } + }, + "node_modules/@firebase/storage-types": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/@firebase/storage-types/-/storage-types-0.8.5.tgz", + "integrity": "sha512-GEDs5P+rNUfNcS+wxIdOLAHficife2YXtvTJnyi3ssrX11AAtBg+nDUdbYh8vuBzWehVQZPmztGUUnud4L+4yg==", + "license": "Apache-2.0", + "peerDependencies": { + "@firebase/app-types": "0.x", + "@firebase/util": "1.x" + } + }, + "node_modules/@firebase/util": { + "version": "1.15.3", + "resolved": "https://registry.npmjs.org/@firebase/util/-/util-1.15.3.tgz", + "integrity": "sha512-c/z/gaIlaaLZEuGbE6sLUuJ61tskg1JghvhcNQzW948ASBinbVBBRnZTC4b4yt4LaEtJQkYlyzqLHcutFwEIvA==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@firebase/webchannel-wrapper": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@firebase/webchannel-wrapper/-/webchannel-wrapper-1.0.7.tgz", + "integrity": "sha512-phBFwieDLvkZGYN9CE9ZFNEIoBVksprzsnCzQejCmCHtgwCXReeuRpoEGN9C4EbhONztv8NRV1tau6Rb9pONwQ==", + "license": "Apache-2.0" + }, + "node_modules/@grpc/grpc-js": { + "version": "1.9.16", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.16.tgz", + "integrity": "sha512-wE4Ut/olIzfKqp631XrG+wbF0v1vWFN4YL9FyXC2LJiG33DsV7PLzURjrCvY/6je2ntdRkeLpPDluzSRGaVltQ==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.7.8", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.152.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.152.0.tgz", + "integrity": "sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz", + "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz", + "integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz", + "integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz", + "integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==", + "license": "BSD-3-Clause" + }, + "node_modules/@remix-run/route-pattern": { + "version": "0.22.1", + "resolved": "https://registry.npmjs.org/@remix-run/route-pattern/-/route-pattern-0.22.1.tgz", + "integrity": "sha512-czdGJWh09Lapvcqt7Vb09KlrU2PhRJ8xQaI+AItTuD9aDJ5MAgxnS38lnys6Ll+6RJEqPiaUqTwIQhVLwFvv+w==", + "license": "MIT" + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.12.tgz", + "integrity": "sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.12.tgz", + "integrity": "sha512-7KHFgQ5VJxIHcLlrwrc3Xbds7oTNQT7Pgi9gQCJKrd2VGab/UksIOYp6VD8MzCstGxOKMgNamPwUCfxPdP1OHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.12.tgz", + "integrity": "sha512-3YIhqHD96nA5SaYNRBR16HnGv4oavZvXfD/ayHM+oYZ0WD/8lBAtf6zQua4kEyAvpqrluKXl0lnOBoiNby7x9w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.12.tgz", + "integrity": "sha512-UuuJ35MFw4gmFOrE9pEqIV+K3syIKveph+Qc1/ljHZVdoDW4pz/JHR/eMVom+TZGl/5OOvGJOWaOCVt3ZfqhxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.12.tgz", + "integrity": "sha512-uMvssit0a4W+/7D8CbHUvG719mH3R2jwXAlh/XcPvuHTE0g++LymF88DCGNX0HM2rBOn0xrzgXktIB6fLSJBTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.12.tgz", + "integrity": "sha512-XcFu0R0xWnwzSf4IQgFH1rJIckPN1pLy2R+4r9IDB7Yfu/ys9cVqfa4pBrMHj7a3gl8mIR4nRNPg0e5IvEVs6g==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.12.tgz", + "integrity": "sha512-260UrKgn8tz39ak+SMDOirKzr7V04M9dWPw5llW00SwBivCZoWcRBKV1d8cXnRkUmSZA3BdiUmBHWk7734Ulpw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.12.tgz", + "integrity": "sha512-5YK1I9SqDkbPgc1IA8BgDl34suqUS2q0KWnBrirm0E51YjOs6eo6dV6jbQfNE/argHRSvd0QUGgtpIoYx+WWpw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.12.tgz", + "integrity": "sha512-Rkcrmp7eFRg74yL5fXEU91JEWbdEPLevWwGtXpmhbjlD1StScbWTmO94Bhly+Mo+ketKYkdmM1vNUKeWSlx8cQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.12.tgz", + "integrity": "sha512-qvK4DuAsQc2BSjlx+Xr+IzOIvvxbGZqxFwdWfG6F518Erj0GGISyQbJ6pIappnOxlNPzNHvo/L0BwB30GZ+zVw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.12.tgz", + "integrity": "sha512-Q9uLBO53Xd4QIq1WOycVQyPP1O4HhraEV2qqb3uTrnVw6QZih9duY4vNXOivL1xoUS1/z+W8eF4NMfl2a8Sdjw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.12.tgz", + "integrity": "sha512-3IBxWFMjbOZskDPKv8Lf9BCnahlKuHthWkYnyIxOH/QcJrFcS4EmcenthApkwr/5+nEqZlLzeYbxeMaX7A5u4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.12.tgz", + "integrity": "sha512-xtX61xg4LKPkPWilZU1ynKClz5Gj4bf74LML4r3eVLWumKnGjoEr1OSHQhMdbBDoYTi+yjrujvpZe2pUnqCrrA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.12.tgz", + "integrity": "sha512-At7fPB6PCaIjzgIhEZFxuT+BBFqiQibJDT4d3PhiR3f4E7bbMZF4aKblbFfEM3sETRDd1YiQx/+U/g/B/ou5Ew==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.12.tgz", + "integrity": "sha512-WIw2haVKwjuYdXkHaoC0mF8Le71TuCBxjrdKqLbJGctbBABj+ClfmNvtbOnzpq3RokNo5+V1qhtSzJyXorsklQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "26.6.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.4.tgz", + "integrity": "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg==", + "license": "MIT", + "dependencies": { + "undici-types": "~8.9.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.2.tgz", + "integrity": "sha512-fhJNGUdscQa4HkI0xFxwonWyhnVReCPDbXI7FH7jmzpnVCrFQI7PRrhWecO263610vOrs9tr2Y4xcf8uAdFxbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": "^0.152.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/bootstrap": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-3.4.1.tgz", + "integrity": "sha512-yN5oZVmRCwe5aKwzRj6736nSmKDX7pLYwsXiCj/EYmo16hODaBiT4En5btW/jhBF/seV+XMx3aYwukYC3A49DA==", + "deprecated": "This version of Bootstrap is no longer supported. Please upgrade to the latest version.", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/cookie-es": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-3.1.1.tgz", + "integrity": "sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==", + "license": "MIT" + }, + "node_modules/copy-anything": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-3.0.5.tgz", + "integrity": "sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-what": "^4.1.8" + }, + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/desandro-matches-selector": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/desandro-matches-selector/-/desandro-matches-selector-2.0.2.tgz", + "integrity": "sha512-+1q0nXhdzg1IpIJdMKalUwvvskeKnYyEe3shPRwedNcWtnhEKT3ZxvFjzywHDeGcKViIxTCAoOYQWP1qD7VNyg==", + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/errno": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", + "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "prr": "~1.0.1" + }, + "bin": { + "errno": "cli.js" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/ev-emitter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ev-emitter/-/ev-emitter-1.1.1.tgz", + "integrity": "sha512-ipiDYhdQSCZ4hSbX4rMW+XzNKMD1prg/sTvoVmSLkuQ1MVlwjJQQA+sW8tMYR3BLUr9KjodFV4pvzunvRhd33Q==", + "license": "MIT" + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "license": "Apache-2.0", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/firebase": { + "version": "12.19.0", + "resolved": "https://registry.npmjs.org/firebase/-/firebase-12.19.0.tgz", + "integrity": "sha512-kwXCLcI0ly2lkwygkbuRx6SsX3DSO96355YrWh9SWZ5ncsxK/y5cirn3sY6nZVSiBVE++2nL6Hchzu1EB8uohQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/ai": "2.16.0", + "@firebase/analytics": "0.10.25", + "@firebase/analytics-compat": "0.2.31", + "@firebase/app": "0.16.2", + "@firebase/app-check": "0.13.1", + "@firebase/app-check-compat": "0.4.7", + "@firebase/app-compat": "0.5.18", + "@firebase/app-types": "0.9.6", + "@firebase/auth": "1.13.6", + "@firebase/auth-compat": "0.6.11", + "@firebase/data-connect": "0.7.4", + "@firebase/database": "1.1.5", + "@firebase/database-compat": "2.1.7", + "@firebase/firestore": "4.17.2", + "@firebase/firestore-compat": "0.4.14", + "@firebase/functions": "0.14.0", + "@firebase/functions-compat": "0.5.0", + "@firebase/installations": "0.6.24", + "@firebase/installations-compat": "0.2.24", + "@firebase/messaging": "0.13.3", + "@firebase/messaging-compat": "0.2.30", + "@firebase/performance": "0.7.14", + "@firebase/performance-compat": "0.2.27", + "@firebase/remote-config": "0.9.2", + "@firebase/remote-config-compat": "0.2.29", + "@firebase/storage": "0.14.5", + "@firebase/storage-compat": "0.4.5", + "@firebase/util": "1.15.3" + } + }, + "node_modules/fizzy-ui-utils": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/fizzy-ui-utils/-/fizzy-ui-utils-2.0.7.tgz", + "integrity": "sha512-CZXDVXQ1If3/r8s0T+v+qVeMshhfcuq0rqIFgJnrtd+Bu8GmDmqMjntjUePypVtjHXKJ6V4sw9zeyox34n9aCg==", + "license": "MIT", + "dependencies": { + "desandro-matches-selector": "^2.0.0" + } + }, + "node_modules/font-awesome": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz", + "integrity": "sha512-U6kGnykA/6bFmg1M/oT9EkFeIYv7JlX3bozwQJWiiLz6L0w3F5vBVPxHlwyX/vtNq1ckcpRKOB9f2Qal/VtFpg==", + "license": "(OFL-1.1 AND MIT)", + "engines": { + "node": ">=0.10.3" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-size": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/get-size/-/get-size-2.0.3.tgz", + "integrity": "sha512-lXNzT/h/dTjTxRbm9BXb+SGxxzkm97h/PCIKtlN/CBCxxmkkIVV21udumMS93MuVTDX583gqc94v3RjuHmI+2Q==", + "license": "MIT" + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC", + "optional": true + }, + "node_modules/http-parser-js": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.10.tgz", + "integrity": "sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA==", + "license": "MIT" + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/idb": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", + "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==", + "license": "ISC" + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-what": { + "version": "4.1.16", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.16.tgz", + "integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/less": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/less/-/less-4.9.1.tgz", + "integrity": "sha512-orp15PfJvvNDIqJdVWzMI9Sjpjp3VTiw3sfvbB+67LlISTEn8uVT2EdYSuyl02BLvaftv6sdk9Umnxmm5rckmg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "copy-anything": "^3.0.5", + "parse-node-version": "^1.0.1" + }, + "bin": { + "lessc": "bin/lessc" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "errno": "^0.1.1", + "graceful-fs": "^4.1.2", + "make-dir": "^5.1.0", + "mime": "^1.4.1", + "needle": "^3.1.0", + "probe-image-size": "^7.2.3", + "source-map": "~0.6.0" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "node_modules/make-dir": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-5.1.0.tgz", + "integrity": "sha512-IfpFq6UM39dUNiphpA6uDezNx/AvWyhwfICWPR3t1VspkgkMZrL+Rk1RbN1bx+aeNYwOrqGJgEgV3yotk+ZUVw==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/masonry-layout": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/masonry-layout/-/masonry-layout-4.2.2.tgz", + "integrity": "sha512-iGtAlrpHNyxaR19CvKC3npnEcAwszXoyJiI8ARV2ePi7fmYhIud25MHK8Zx4P0LCC4d3TNO9+rFa1KoK1OEOaA==", + "license": "MIT", + "dependencies": { + "get-size": "^2.0.2", + "outlayer": "^2.1.0" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "license": "MIT", + "optional": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/needle": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/needle/-/needle-3.5.0.tgz", + "integrity": "sha512-jaQyPKKk2YokHrEg+vFDYxXIHTCBgiZwSHOoVx/8V3GIBS8/VN6NdVRmg8q1ERtPkMvmOvebsgga4sAj5hls/w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.3", + "sax": "^1.2.4" + }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/outlayer": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/outlayer/-/outlayer-2.1.1.tgz", + "integrity": "sha512-+GplXsCQ3VrbGujAeHEzP9SXsBmJxzn/YdDSQZL0xqBmAWBmortu2Y9Gwdp9J0bgDQ8/YNIPMoBM13nTwZfAhw==", + "license": "MIT", + "dependencies": { + "ev-emitter": "^1.0.0", + "fizzy-ui-utils": "^2.0.0", + "get-size": "^2.0.2" + } + }, + "node_modules/parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.29", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.29.tgz", + "integrity": "sha512-49cGhUbXj8Qenv0iTMxA1cFBzxXoctpC9Ujd77t1WcbJIr6nF/eI7g/8MgxrYldFRuAXvja7xQRwavoW7kgrxQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.19", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/probe-image-size": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/probe-image-size/-/probe-image-size-7.4.0.tgz", + "integrity": "sha512-cdEprVtZxV+awMde9X+4jILBFYh4CARxVrQaMl4wY4YcPWbul9jntXrIW95NInBDyJwcVUP3U0T6yukN8rMBaQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "optional": true, + "dependencies": { + "lodash.merge": "^4.6.2", + "needle": "^2.5.2", + "stream-parser": "~0.3.1" + } + }, + "node_modules/probe-image-size/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/probe-image-size/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/probe-image-size/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/probe-image-size/node_modules/needle": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz", + "integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "^3.2.6", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/protobufjs": { + "version": "7.6.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz", + "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.5", + "@protobufjs/eventemitter": "^1.1.1", + "@protobufjs/fetch": "^1.1.1", + "@protobufjs/float": "^1.0.2", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.1", + "@types/node": ">=13.7.0", + "long": "^5.3.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/re2js": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/re2js/-/re2js-2.8.6.tgz", + "integrity": "sha512-xLgQil4kIUCrAzVk9fRSkxkFNwmygLFjVxXrLc65aE1F0+Zsb8rxumFBy4XKyvgMCTL6kilDq3EZ0piE2dP/Dg==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/react": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz", + "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.28.0" + }, + "peerDependencies": { + "react": "^19.3.0" + } + }, + "node_modules/react-router": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-8.4.0.tgz", + "integrity": "sha512-JtydAkBvU9UTEe5qNC+POhu+ZBNM7rlKY2IegwXc7Idj7xfRG16x5RZrw3mju+XlqBxfvb2ky9P3jUp9WyWC1g==", + "license": "MIT", + "dependencies": { + "@remix-run/route-pattern": "^0.22.1", + "cookie-es": "^3.1.1" + }, + "engines": { + "node": ">=22.22.0" + }, + "peerDependencies": { + "react": ">=19.2.7", + "react-dom": ">=19.2.7" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rolldown": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.12.tgz", + "integrity": "sha512-8wafseiaG80xmXSfqidUNqZcylTlhmPZZt+za2m+js2sFZ8dTNlhIOV2WcbIPx2hgwPBJpEUGFAMZ9bgBBLTSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.152.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.12", + "@rolldown/binding-android-arm64": "1.2.12", + "@rolldown/binding-darwin-arm64": "1.2.12", + "@rolldown/binding-darwin-x64": "1.2.12", + "@rolldown/binding-freebsd-x64": "1.2.12", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.12", + "@rolldown/binding-linux-arm64-gnu": "1.2.12", + "@rolldown/binding-linux-arm64-musl": "1.2.12", + "@rolldown/binding-linux-ppc64-gnu": "1.2.12", + "@rolldown/binding-linux-s390x-gnu": "1.2.12", + "@rolldown/binding-linux-x64-gnu": "1.2.12", + "@rolldown/binding-linux-x64-musl": "1.2.12", + "@rolldown/binding-openharmony-arm64": "1.2.12", + "@rolldown/binding-win32-arm64-msvc": "1.2.12", + "@rolldown/binding-win32-x64-msvc": "1.2.12" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/sax": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "optional": true, + "engines": { + "node": ">=11.0.0" + } + }, + "node_modules/scheduler": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stream-parser": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/stream-parser/-/stream-parser-0.3.1.tgz", + "integrity": "sha512-bJ/HgKq41nlKvlhccD5kaCr/P+Hu0wPNKPJOH7en+YrJu/9EgqUF+88w5Jb6KNcjOFMhfX4B2asfeAtIGuHObQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "2" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/undici-types": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", + "license": "MIT" + }, + "node_modules/vite": { + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.3.tgz", + "integrity": "sha512-cTAldKPImjg6c+gk48U19POPn3GCBzZwpdsN8ZMEEcbpes+6/wvfqUd0C2y3qYY4wsj8PwgFwrZ/1jBPVttMSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.11", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/web-vitals": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.4.tgz", + "integrity": "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==", + "license": "Apache-2.0" + }, + "node_modules/websocket-driver": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.5.tgz", + "integrity": "sha512-ZL2+3c7kMBdIRCMz6l8jQMHyGVxj+UL+xVk74Ombiciboca8rHa15L86B19E5oh1pL9Ii/uj54gtsIrZGMo6zA==", + "license": "Apache-2.0", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/package.json b/package.json index 742bb2e..c8554e6 100644 --- a/package.json +++ b/package.json @@ -1,54 +1,26 @@ { "name": "githubify.me", - "version": "3.2.5", + "version": "4.0.0", "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "deploy": "./deploy.sh" + }, + "dependencies": { + "bootstrap": "^3.4.1", + "firebase": "^12.19.0", + "font-awesome": "^4.7.0", + "masonry-layout": "^4.2.2", + "react": "^19.3.0", + "react-dom": "^19.3.0", + "react-router": "^8.4.0" + }, "devDependencies": { - "babel-preset-es2015": "6.1.18", - "babel-preset-react": "6.1.18", - "babelify": "7.2.0", - "bootstrap": "3.3.5", - "browserify": "11.2.0", - "font-awesome": "4.5.0", - "gulp": "3.9.0", - "gulp-babel": "6.1.0", - "gulp-changed": "1.3.0", - "gulp-concat": "2.4.3", - "gulp-cssmin": "0.1.6", - "gulp-filesize": "0.0.6", - "gulp-less": "3.0.1", - "gulp-livereload": "3.6.0", - "gulp-notify": "2.1.0", - "gulp-plumber": "1.0.1", - "gulp-react": "3.0.1", - "gulp-rename": "1.2.2", - "gulp-sourcemaps": "1.3.0", - "gulp-uglify": "1.1.0", - "gulp-util": "3.0.6", - "history": "1.17.0", - "less-plugin-autoprefix": "1.3.0", - "lodash": "3.10.1", - "moment": "2.10.6", - "react": "0.14.6", - "react-addons-create-fragment": "0.14.2", - "react-addons-update": "0.14.2", - "react-bootstrap": "0.28.5", - "react-dom": "0.14.2", - "react-fontawesome": "0.3.3", - "react-highlighter": "0.3.1", - "react-masonry-mixin": "2.1.0", - "query-string": "4.1.0", - "react-router": "1.0.3", - "react-share": "1.4.0", - "re-base": "1.5.1", - "react-timer-mixin": "0.13.3", - "react-typeahead": "1.1.5", - "reactfire": "0.5.1", - "reactify": "1.1.1", - "reflux": "0.3.0", - "require-dir": "0.1.0", - "superagent": "1.3.0", - "vinyl-buffer": "1.0.0", - "vinyl-source-stream": "1.1.0", - "watchify": "3.4.0" + "@vitejs/plugin-react": "^6.1.2", + "less": "^4.9.1", + "vite": "^8.3.3" } } diff --git a/.htaccess b/public/.htaccess similarity index 100% rename from .htaccess rename to public/.htaccess diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..0f5da6b Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..31d3c4d Binary files /dev/null and b/public/favicon.ico differ diff --git a/img/animated_loading_icon.gif b/public/img/animated_loading_icon.gif similarity index 100% rename from img/animated_loading_icon.gif rename to public/img/animated_loading_icon.gif diff --git a/img/bg_all.png b/public/img/bg_all.png similarity index 100% rename from img/bg_all.png rename to public/img/bg_all.png diff --git a/img/example.png b/public/img/example.png similarity index 100% rename from img/example.png rename to public/img/example.png diff --git a/public/logo.svg b/public/logo.svg new file mode 100644 index 0000000..01dff02 --- /dev/null +++ b/public/logo.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/og-image.jpg b/public/og-image.jpg new file mode 100644 index 0000000..76d5d5a Binary files /dev/null and b/public/og-image.jpg differ diff --git a/src/auth.jsx b/src/auth.jsx new file mode 100644 index 0000000..a34e9b6 --- /dev/null +++ b/src/auth.jsx @@ -0,0 +1,77 @@ +import { createContext, useContext, useEffect, useState } from 'react'; +import { + GithubAuthProvider, + getAdditionalUserInfo, + onAuthStateChanged, + signInWithPopup, + signOut +} from 'firebase/auth'; +import { get, ref, update } from 'firebase/database'; +// +import { auth, db, userPath } from './firebase'; +import { getUserById } from './github'; + +const AuthContext = createContext(null); + +function getGithubId(firebaseUser) { + const github = firebaseUser.providerData.find((p) => p.providerId === 'github.com'); + return github ? github.uid : null; +} + +/** + * Github login is not part of Firebase user, so it's stored + * in the database on login and restored from there + */ +async function getGithubLogin(githubId) { + const snapshot = await get(ref(db, userPath(githubId) + '/username')); + if (snapshot.exists()) { + return snapshot.val(); + } + const user = await getUserById(githubId); + return user.login; +} + +export function AuthProvider({ children }) { + // undefined while auth state is unknown, null for anonymous user + const [user, setUser] = useState(undefined); + + useEffect(() => onAuthStateChanged(auth, async (firebaseUser) => { + const githubId = firebaseUser && getGithubId(firebaseUser); + if (!githubId) { + setUser(null); + return; + } + try { + setUser({ id: githubId, login: await getGithubLogin(githubId) }); + } catch (error) { + console.error('Unable to restore github login', error); + setUser(null); + } + }), []); + + return {children}; +} + +export function useAuth() { + return useContext(AuthContext); +} + +/** + * Returns github login of signed in user or null if login failed + */ +export async function login() { + try { + const result = await signInWithPopup(auth, new GithubAuthProvider()); + const githubId = getGithubId(result.user); + const username = getAdditionalUserInfo(result).username; + await update(ref(db, userPath(githubId)), { active: true, username }); + return username; + } catch (error) { + console.error('Login failed', error); + return null; + } +} + +export function logout() { + return signOut(auth); +} diff --git a/src/components/ClearFiltersBlock.jsx b/src/components/ClearFiltersBlock.jsx new file mode 100644 index 0000000..962b270 --- /dev/null +++ b/src/components/ClearFiltersBlock.jsx @@ -0,0 +1,23 @@ +import { useFilters } from '../filters'; + +/** + * ClearFiltersBlock contains link to clear all filters + */ +export default function ClearFiltersBlock() { + const { clearFilters, isFiltered } = useFilters(); + + return ( +
+ {isFiltered ? + : + null + } +
+ ); +} diff --git a/src/components/EmptyUserBlock.jsx b/src/components/EmptyUserBlock.jsx new file mode 100644 index 0000000..cf3c93c --- /dev/null +++ b/src/components/EmptyUserBlock.jsx @@ -0,0 +1,18 @@ +import { Link } from 'react-router'; + +/** + * Empty user block contains message and links + */ +export default function EmptyUserBlock({ user, message }) { + return ( +
+
+

{message}

+ {user ? +

You can visit your page

: +

You can visit the home page

+ } +
+
+ ); +} diff --git a/src/components/FilterBlock.jsx b/src/components/FilterBlock.jsx new file mode 100644 index 0000000..ca72711 --- /dev/null +++ b/src/components/FilterBlock.jsx @@ -0,0 +1,22 @@ +import { REPO_FILTERS, useFilters } from '../filters'; + +/** + * FilterBlock contains list of all filters + */ +export default function FilterBlock() { + const { filters, clearFilters } = useFilters(); + + return ( +
+ {REPO_FILTERS.map((filter) => ( + clearFilters(filter)} + > + {filter} + + ))} +
+ ); +} diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx new file mode 100644 index 0000000..5f7a7bf --- /dev/null +++ b/src/components/Footer.jsx @@ -0,0 +1,26 @@ +/** + * Copyright with link to the author + */ +export function Author() { + return ( + + © 2015–{new Date().getFullYear()}  + + Anastasia Abakumova + + + ); +} + +/** + * Footer contains info about the author + */ +export default function Footer() { + return ( +
+
+ +
+
+ ); +} diff --git a/src/components/Highlight.jsx b/src/components/Highlight.jsx new file mode 100644 index 0000000..796d3d8 --- /dev/null +++ b/src/components/Highlight.jsx @@ -0,0 +1,21 @@ +/** + * Highlights all case-insensitive occurrences of search in text + */ +export default function Highlight({ text, search }) { + if (!search) { + return text; + } + const lowerText = text.toLowerCase(); + const lowerSearch = search.toLowerCase(); + const result = []; + let start = 0; + let index = lowerText.indexOf(lowerSearch); + while (index !== -1) { + result.push(text.slice(start, index)); + result.push({text.slice(index, index + search.length)}); + start = index + search.length; + index = lowerText.indexOf(lowerSearch, start); + } + result.push(text.slice(start)); + return result; +} diff --git a/src/components/LanguagesBlock.jsx b/src/components/LanguagesBlock.jsx new file mode 100644 index 0000000..1d0a024 --- /dev/null +++ b/src/components/LanguagesBlock.jsx @@ -0,0 +1,22 @@ +import { toggle, useFilters } from '../filters'; + +/** + * LanguagesBlock contains list of all languages + */ +export default function LanguagesBlock({ languages }) { + const { filters, setFilters } = useFilters(); + + return ( +
+ {languages.map((language) => ( + setFilters({ languages: toggle(filters.languages, language) })} + > + {language} + + ))} +
+ ); +} diff --git a/src/components/LoadingBlock.jsx b/src/components/LoadingBlock.jsx new file mode 100644 index 0000000..213d944 --- /dev/null +++ b/src/components/LoadingBlock.jsx @@ -0,0 +1,14 @@ +/** + * Loading block contains loading icon + */ +export default function LoadingBlock({ inline }) { + return ( +
+ Loading +
+ ); +} diff --git a/src/components/LoginForm.jsx b/src/components/LoginForm.jsx new file mode 100644 index 0000000..5121d2d --- /dev/null +++ b/src/components/LoginForm.jsx @@ -0,0 +1,70 @@ +import { Link, useNavigate } from 'react-router'; +// +import { login } from '../auth'; +import { MAX_TAGS, MAX_TAG_LENGTH } from '../tags'; +import { Author } from './Footer'; +import ShareBlock from './ShareBlock'; + +/** + * LoginForm contains authorization form + */ +export default function LoginForm({ user }) { + const navigate = useNavigate(); + + async function handleLogin() { + const username = await login(); + if (username) { + navigate('/' + username); + } + } + + return ( + <> +
+
+

+ + GITHUBIFY.me +

+

+ Welcome to the place where you can easily manage and organize tags for your GitHub repositories. You can tag your own repos, repositories you've been added to as a member, and even starred ones! +

+

+ Note: the maximum number of tags per user is {MAX_TAGS}, and a tag name can be up to {MAX_TAG_LENGTH} characters long. +

+

+ A bit of history: this project was created in December 2015 to make it easier to work with a large number of repositories. In February 2017 GitHub introduced topics, which provide the same functionality, so the project has lost its relevance. Still, I've kept it in working order as a memento. +

+ Example of tags +
+
+
+ {user ? + + Go to my tags + + : + + } +
+ Tell your friends: + +
+
+ +
+
+ + ); +} diff --git a/src/components/ReposBlock.jsx b/src/components/ReposBlock.jsx new file mode 100644 index 0000000..2ed8192 --- /dev/null +++ b/src/components/ReposBlock.jsx @@ -0,0 +1,144 @@ +import { useLayoutEffect, useRef, useState } from 'react'; +import { useNavigate } from 'react-router'; +import Masonry from 'masonry-layout'; +// +import { useFilters } from '../filters'; +import { + MAX_TAGS, + addRepoTags, + normalizeTagName, + removeRepoTag, + tagRepoIds +} from '../tags'; +import Highlight from './Highlight'; +import SortingBlock from './SortingBlock'; +import TagLimitModal from './TagLimitModal'; +import Typeahead from './Typeahead'; + +const dateFormat = new Intl.DateTimeFormat('en-US', { + month: 'short', + day: 'numeric', + year: 'numeric' +}); + +/** + * ReposBlock contains list of repos with their tags + */ +export default function ReposBlock({ repos, tags, openUser, isOwner, isShowingOwner }) { + const { filters } = useFilters(); + const navigate = useNavigate(); + const container = useRef(null); + const [isLimitModalShown, setIsLimitModalShown] = useState(false); + const tagKeys = (tags || []).map((tag) => tag.key); + + useLayoutEffect(() => { + const masonry = new Masonry(container.current, { + itemSelector: '.repo-item', + transitionDuration: 0 + }); + return () => masonry.destroy(); + }, [repos, tags]); + + function addTags(repo, repoTags, value) { + const names = [...new Set(value.split(',').map(normalizeTagName))] + .filter((name) => name && !repoTags.includes(name)); + const newTagsCount = names.filter((name) => !tagKeys.includes(name)).length; + if (tagKeys.length + newTagsCount > MAX_TAGS) { + setIsLimitModalShown(true); + return; + } + if (names.length) { + addRepoTags(openUser.id, names, repo.id); + } + } + + return ( +
+
+
+

+ {repos.length} repo{repos.length !== 1 ? 's' : ''} +

+
+
+ +
+
+
+ {repos.map((repo) => { + const repoTags = (tags || []).filter((tag) => tagRepoIds(tag).includes(repo.id)); + const repoTagKeys = repoTags.map((tag) => tag.key); + return ( +
+
+
+
+ +

+ +

+
+ {isShowingOwner ? +

+ by { + e.preventDefault(); + navigate('/' + repo.owner.login); + }} + > + {repo.owner.login} + +

: + null + } + + Updated on {dateFormat.format(new Date(repo.updated_at))} + + +  {repo.stargazers_count} + + +
+ {repoTags.map((tag) => ( + + {tag.key} + {isOwner ? + removeRepoTag(openUser.id, tag, repo.id)} + /> : + null + } + + ))} + {repo.language ? + {repo.language} : + null + } +
+ {isOwner ? +
+ !repoTagKeys.includes(key))} + placeholder="Type comma-separated tags" + onSubmit={(value) => addTags(repo, repoTagKeys, value)} + /> +
: + null + } +
+
+
+
+ ); + })} +
+ {isLimitModalShown ? + setIsLimitModalShown(false)} /> : + null + } +
+ ); +} diff --git a/src/components/SearchBlock.jsx b/src/components/SearchBlock.jsx new file mode 100644 index 0000000..f1fe754 --- /dev/null +++ b/src/components/SearchBlock.jsx @@ -0,0 +1,45 @@ +import { useFilters } from '../filters'; + +/** + * SearchBlock contains search by repo name + */ +export default function SearchBlock() { + const { filters, setFilters } = useFilters(); + + function setSearch(searchStr) { + setFilters({ searchStr }, { replace: true }); + } + + return ( +
+
+
e.preventDefault()}> +
+
+ setSearch(e.target.value)} + /> + + + +
+ {filters.searchStr ? +