{"id":16145128,"url":"https://github.com/kenny-hui/github-image-uploader","last_synced_at":"2025-04-06T20:18:51.087Z","repository":{"id":256994317,"uuid":"857035343","full_name":"Kenny-Hui/github-image-uploader","owner":"Kenny-Hui","description":"Frontend webpage to use GitHub as an image repository","archived":false,"fork":false,"pushed_at":"2024-09-13T17:16:51.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T02:21:39.822Z","etag":null,"topics":["image-uploader","image-uploading"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kenny-Hui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-13T17:11:25.000Z","updated_at":"2024-09-13T17:17:45.000Z","dependencies_parsed_at":"2024-09-14T08:25:21.084Z","dependency_job_id":null,"html_url":"https://github.com/Kenny-Hui/github-image-uploader","commit_stats":null,"previous_names":["kenny-hui/github-image-uploader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny-Hui%2Fgithub-image-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny-Hui%2Fgithub-image-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny-Hui%2Fgithub-image-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny-Hui%2Fgithub-image-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kenny-Hui","download_url":"https://codeload.github.com/Kenny-Hui/github-image-uploader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543615,"owners_count":20955865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-uploader","image-uploading"],"created_at":"2024-10-10T00:15:01.512Z","updated_at":"2025-04-06T20:18:51.066Z","avatar_url":"https://github.com/Kenny-Hui.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Image Uploader\nThis is a frontend webpage to quickly upload and manage images to a public GitHub repository.  \n\n## Deploying\n### Building\nRun the following in this project\n```\nnpm i\nnpm run build\n```\n\nThe compiled files will be located in the `dist/` directory.\n\n## Environment variable\nEnvironment variables can be changed for a custom branding, as well as setting up OAuth Authentication.\n\n### Files\n- The `.env` file is used to store environment variable. (For generic config)\n- Variables in the `.env.local` file overrides those in `.env`, and is ignored by git.\n- Variables in the `.env.development` file overrides those in `.env` when in dev mode (`npm run dev`).\n- Variables in the `.env.development.local` file overrides those in `.env.development` file, and is ignored by git.\n- See https://vitejs.dev/guide/env-and-mode for further details\n\n### Variables List\n| Variable                | Description                             | Default                                                 |\n|-------------------------|-----------------------------------------|---------------------------------------------------------|\n| VITE_BRAND              | The website name displayed to the user. | GitHub Image Uploader                                   |\n| VITE_FAVICON            | The website favicon displayed.          | vue.svg (Files named custom_favicon* is ignored by git) |\n| VITE_GH_SCOPE           | The scope/permission to grant in GH.    | public_repo,user:read_user,user:email                   |\n| VITE_GH_OAUTH_CLIENT_ID | The Client ID of your GitHub OAuth App. | (N/A)                                                   |\n| VITE_GH_OAUTH_REDIRECT  | The redirect URL of your OAuth App.     | (N/A)                                                   |\n| VITE_GH_OAUTH_TOKEN_URL | The endpoint to obtain token.           | (N/A)                                                   |\n\n## OAuth Authentication\nBy default you will be asked to login with a GitHub Personal Access Token (PAT). To setup OAuth, please see the following example, as well as [GitHub documentation](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#device-flow).\n\n### Example Setup\nEndpoints:\n- GET `https://www.example.com/auth/prod`\n- - Redirect to `https://www.example.com/#/auth` (Passes `code` query, `www.example.com` is location deployed for production use)\n- GET `https://www.example.com/auth/dev`\n- - Redirect to `https://localhost:5173/#/auth` (Passes `code` query, `localhost:5173` is the location of dev server via npm dev)\n- GET `https://www.example.com/get_access_token`\n- - POST request to `https://github.com/login/oauth/access_token` and return the result in json\n- - Body type: `application/x-www-form-urlencoded`\n- - Body Content:\n- - - `client_id`: Obtained from your OAuth App\n- - - `client_secret`: obtained from your OAuth app, must not be leaked elsewhere!\n- - - `code`: Passed as query param (In PHP use `$_GET[\"code\"]`)\n\nEnvironment variables:\n`.env.local`:\n- VITE_GH_OAUTH_CLIENT_ID=ABCDEFG\n- VITE_GH_OAUTH_REDIRECT=https://www.example.com/auth/prod\n- VITE_GH_OAUTH_TOKEN_URL=https://www.example.com/get_access_token\n\n`.env.development.local`:\n- VITE_GH_OAUTH_REDIRECT=https://www.example.com/auth/dev\n\n## License\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny-hui%2Fgithub-image-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenny-hui%2Fgithub-image-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny-hui%2Fgithub-image-uploader/lists"}