Skip to content

Commit

Permalink
Merge pull request #6 from StarManTheGamer/main
Browse files Browse the repository at this point in the history
PRETTIER MY BELOVED!!!!!!!!!!!!!!!!!!!!!!
  • Loading branch information
indexxing authored May 28, 2024
2 parents d63760e + 0ff8fac commit 28e483b
Show file tree
Hide file tree
Showing 42 changed files with 22,047 additions and 6,136 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Prettier Format and Commit

on:
push:
branches:
- main
- 'refs/heads/*'

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'

- name: Install dependencies
run: npm install

- name: Pull latest changes
run: git pull

- name: Run Prettier
run: npx prettier --write .

- name: Commit changes
id: commit
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
if git diff-index --quiet HEAD; then
echo "No changes to commit."
echo "changes_committed=false" >> $GITHUB_ENV
else
git commit -m "chore: format code with Prettier"
echo "changes_committed=true" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push changes
if: env.changes_committed == 'true'
run: git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.DS_Store
/node_modules/
17 changes: 17 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"arrowParens": "always",
"bracketSpacing": false,
"printWidth": 200,
"singleQuote": true,
"trailingComma": "none",
"useTabs": true,
"plugins": ["prettier-plugin-jinja-template"],
"overrides": [
{
"files": "*.html",
"options": {
"parser": "jinja-template"
}
}
]
}
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@ Poly+ is an upcoming quality-of-life browser extension for the Polytoria website
- Multi-Cancel Outbound Trades
- Item Wishlist
- Outfit Cost

And there is more to come!

# Supported Browsers

As of right now, Poly+ only works on Chromium-based browsers. Currently, there are no plans to bring it to other browsers in the future.

> TL;DR Chromium-based browsers
## Examples of Browsers that are Chromium-based

- Google Chrome
- Chromium
- Edge
Expand All @@ -56,12 +58,12 @@ As of right now, Poly+ only works on Chromium-based browsers. Currently, there a
## How to Download - Stable Build?

1. Go to the releases section of this GitHub repository
3. Go to the latest release and download the .ZIP file for that release
4. Extract the .ZIP
5. Enable developer mode on your browser (developer mode allows you to load unpacked extensions)
6. Click the "Load Unpacked" button
7. When the file selector comes up, open the unzipped folder from this GitHub repository
8. Go to Polytoria and you should see some changes!
2. Go to the latest release and download the .ZIP file for that release
3. Extract the .ZIP
4. Enable developer mode on your browser (developer mode allows you to load unpacked extensions)
5. Click the "Load Unpacked" button
6. When the file selector comes up, open the unzipped folder from this GitHub repository
7. Go to Polytoria and you should see some changes!

## How to Download - Pre-Release Build?

Expand All @@ -73,6 +75,6 @@ As of right now, Poly+ only works on Chromium-based browsers. Currently, there a
4. Extract the .ZIP
5. Enable developer mode on your browser (developer mode allows you to load unpacked extensions)
6. Go to your browsers extensions page (usually `browserName://extensions`)
8. Click the "Load Unpacked" button
9. When the file selector comes up, open the unzipped folder of this repository's source code
10. Go to Polytoria and you should see some changes!
7. Click the "Load Unpacked" button
8. When the file selector comes up, open the unzipped folder of this repository's source code
9. Go to Polytoria and you should see some changes!
15,656 changes: 15,653 additions & 3 deletions css/polytoria.css

Large diffs are not rendered by default.

107 changes: 58 additions & 49 deletions css/specific.css
Original file line number Diff line number Diff line change
@@ -1,49 +1,58 @@
/*
FRONTEND FIXES / SPACING IMPROVEMENTS
*/

body[data-URL^="/my/friends"] .col-lg-3 {
margin-bottom: 20px;
}

body[data-URL^="/create/"] .mt-2.mt-lg-0.col-lg.d-flex.align-content-between.flex-wrap {
width: 50%;
}

body[data-URL^="/create/"] .col.d-flex.align-content-between.flex-wrap {
width: 50%;
}

.text-truncate {
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}

/* ------------------------------------------ */

/*
INLINE EDITING
*/

body[data-polyplus-inlineEditing="true"] .polyplus-inlineEditing-visible {display: block !important;}
.polyplus-inlineEditing-visible {display: none;}

body[data-polyplus-inlineEditing="true"] .polyplus-inlineEditing-hidden {display: none !important;}
.polyplus-inlineEditing-hidden {display: block;}

/* ------------------------------------------ */

/*
MODALS
*/

html:has(.polyplus-modal[open]), body:has(.polyplus-modal[open]) {
overflow: hidden;
}

.polyplus-modal::backdrop {
background: rgba(0, 0, 0, 0.73);
}

/* ------------------------------------------ */
/*
FRONTEND FIXES / SPACING IMPROVEMENTS
*/

body[data-URL^='/my/friends'] .col-lg-3 {
margin-bottom: 20px;
}

body[data-URL^='/create/'] .mt-2.mt-lg-0.col-lg.d-flex.align-content-between.flex-wrap {
width: 50%;
}

body[data-URL^='/create/'] .col.d-flex.align-content-between.flex-wrap {
width: 50%;
}

.text-truncate {
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}

/* ------------------------------------------ */

/*
INLINE EDITING
*/

body[data-polyplus-inlineEditing='true'] .polyplus-inlineEditing-visible {
display: block !important;
}
.polyplus-inlineEditing-visible {
display: none;
}

body[data-polyplus-inlineEditing='true'] .polyplus-inlineEditing-hidden {
display: none !important;
}
.polyplus-inlineEditing-hidden {
display: block;
}

/* ------------------------------------------ */

/*
MODALS
*/

html:has(.polyplus-modal[open]),
body:has(.polyplus-modal[open]) {
overflow: hidden;
}

.polyplus-modal::backdrop {
background: rgba(0, 0, 0, 0.73);
}

/* ------------------------------------------ */
Loading

0 comments on commit 28e483b

Please sign in to comment.