-
Notifications
You must be signed in to change notification settings - Fork 1
Prefill data based on gitea issue #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
juancolchete
wants to merge
61
commits into
teambtcmap:main
Choose a base branch
from
UAIBIT:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
fb4b542
chore: configure base env to run it on NIXOS
juancolchete b7c5018
feat: add GetURLParameter
juancolchete 20b252b
feat: mount issue get data request
juancolchete 8ca521f
feat: add gitea route
juancolchete 7e37fbf
feat: add api route to fetch from gitea
juancolchete 5bc9ee9
feat: return base structure
juancolchete 0eb82b4
feat: process issue data to get community name
juancolchete 19fd07f
feat: add icon
juancolchete 94b03c0
feat: add lightning tips
juancolchete 9010a84
feat: add contact
juancolchete 99c174a
feat: add description
juancolchete 6c8964e
feat: prefil name on tags form
juancolchete d850019
feat: add suggested logo
juancolchete 468a7ae
feat: prefill lightning tips on tags form
juancolchete c99e13d
fix: cannot set value of undefined
juancolchete 91fb972
feat: add discord contact
juancolchete 2f4f80d
feat: add email contact
juancolchete 4927234
feat: add facebook contact
juancolchete 27f8413
feat: add geyser contact
juancolchete bb8fb77
feat: add github contact
juancolchete 1d16fc5
feat: add instagram contact
juancolchete 53c797d
feat: add linkedin contact
juancolchete 7755562
feat: add matrix contact
juancolchete 6246f18
feat: add meetup contact
juancolchete 9e17df5
feat: add nostr contact
juancolchete be28ab3
feat: add phone contact
juancolchete 3df5a27
feat: add rss contact
juancolchete 6a5d071
feat: add signal contact
juancolchete 631d8f4
feat: add telegram contact
juancolchete 8390724
feat: add twitter contact
juancolchete 7b099d8
feat: add website contact
juancolchete 03de405
feat: add whatsapp contact
juancolchete 065196f
feat: add youtube contact
juancolchete 354672d
feat: add description to tags form
juancolchete b74f979
feat: validate lightning tips length
juancolchete 14db297
feat: validate description length
juancolchete 6aa661b
feat: add url alias
juancolchete 636f6b7
refactor: prefill issue data logic
juancolchete 6231861
refactor: gitea get-issue API error handle
juancolchete f034e62
fix: 2. Frontend: Inconsistent Session Handling
juancolchete 1f083bf
fix: 3. XSS Vulnerability: Unescaped HTML Injection
juancolchete 1e13cce
fix: 4. Fragile String Parsing
juancolchete 4cb4431
fix: 6. URL Parameter Not Decoded
juancolchete b16e7e8
refactor: remove comment
juancolchete 7e1e9d0
fix: 7. Weak Contact Field Detection
juancolchete 16c548f
fix: 8. Inefficient String Replacement
juancolchete f14f16d
fix: 9. Magic Numbers Without Explanation
juancolchete 4a57514
fix: Enhance Existing Server-Side Validation
juancolchete 3c6049f
fix: not getting community name
juancolchete e5b7f5f
fix: fill fields id passing issue execution order
juancolchete 7991f80
refactor: 11. Inconsistent Naming Conventions
juancolchete 9c296f0
refactor: 12. Missing Documentation
juancolchete aeef449
fix: remove arbitrary innerhtml
juancolchete bbeb608
fix: Fragile string parsing — The indexOf() chain parsing approach fa…
juancolchete 6f47c42
fix: inner html xss injection on createTagRow
juancolchete 43fcc34
Merge branch 'main' into main
juancolchete 6dc9302
chore: ignore venv
juancolchete 12a79ef
chore: apply cosmetic AI changes
juancolchete 5dc3d10
feat: apply copilot sugestions
juancolchete bf87e30
chore: simplify requirements
juancolchete 538cf7f
fix: Gitea issue fetching to use base URL config based on rabbit sugg…
juancolchete File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| GITEA_BASE_URL=https://gitea.btcmap.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| use flake | ||
|
|
||
| printf 'GITEA_BASE_URL=%s\n' "${GITEA_BASE_URL-}" > .direnv/.env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| description = "BTCMAP Admin page"; | ||
|
|
||
| inputs = { | ||
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; | ||
| }; | ||
|
|
||
| outputs = { self, nixpkgs }: | ||
| let | ||
| system = "x86_64-linux"; | ||
| pkgs = import nixpkgs { inherit system; }; | ||
| in { | ||
| devShells.${system}.default = pkgs.mkShell { | ||
| name = "btcmap-admin"; | ||
|
|
||
| buildInputs = with pkgs; [ | ||
| python311 | ||
| python311Packages.virtualenv | ||
| geos | ||
| ]; | ||
| LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ | ||
| pkgs.stdenv.cc.cc.lib | ||
| pkgs.zlib | ||
| ]; | ||
| }; | ||
| }; | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| flask | ||
| flask_session | ||
| Flask-Login | ||
| requests | ||
| geojson_rewind | ||
| shapely | ||
| pyproj | ||
| nostr-sdk | ||
| cryptography | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /** | ||
| * Passing the name of URL parameter we get its value | ||
| * @param {string} sParam - The search string also known as URL parameter | ||
| * @returns {string} - The URL parameter content | ||
| * @throws {} | ||
| */ | ||
| function getURLParameter(sParam) { | ||
| const params = new URLSearchParams(window.location.search) | ||
| return params.get(sParam) | ||
| } | ||
| /** | ||
| * Passing a text without formatation, this text is normalized to get its main data | ||
| * @param {string} text - Unformated text | ||
| * @returns {string} - Formatted text | ||
| * @throws {} | ||
| */ | ||
| function cleanIssueText(text) { | ||
| return text?.replace(/\n/g, ' ').trim() || '' | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.