Skip to content

Commit

Permalink
Merge branch 'master' into addUserInfo-naturalcrit#1908
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ambatte committed Aug 29, 2023
2 parents 52e475d + 3ba15a0 commit 6d4104a
Show file tree
Hide file tree
Showing 190 changed files with 12,282 additions and 20,098 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- image: cimg/node:16.11.0

working_directory: ~/homebrewery
parallelism: 4
parallelism: 1

steps:
- attach_workspace:
Expand All @@ -61,15 +61,15 @@ jobs:
- run:
name: Test - Basic
command: npm run test:basic
- run:
name: Test - Coverage
command: npm run test:coverage
- run:
name: Test - Mustache Spans
command: npm run test:mustache-span
command: npm run test:mustache-syntax
- run:
name: Test - Routes
command: npm run test:route
- run:
name: Test - Coverage
command: npm run test:coverage

workflows:
build_and_test:
Expand Down
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ module.exports = {
browser : true,
node : true
},
plugins : ['react'],
plugins : ['react', 'jest'],
rules : {
/** Errors **/
'camelcase' : ['error', { properties: 'never' }],
'func-style' : ['error', 'expression', { allowArrowFunctions: true }],
//'func-style' : ['error', 'expression', { allowArrowFunctions: true }],
'no-array-constructor' : 'error',
'no-iterator' : 'error',
'no-nested-ternary' : 'error',
Expand All @@ -24,6 +24,7 @@ module.exports = {
'react/jsx-no-bind' : ['error', { allowArrowFunctions: true }],
'react/jsx-uses-react' : 'error',
'react/prefer-es6-class' : ['error', 'never'],
'jest/valid-expect' : ['error', { maxArgs: 3 }],

/** Warnings **/
'max-lines' : ['warn', {
Expand Down
48 changes: 48 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"extends": [
"stylelint-config-recess-order",
"stylelint-config-recommended"],
"plugins": [
"stylelint-stylistic",
"./stylelint_plugins/declaration-colon-align.js",
"./stylelint_plugins/declaration-colon-min-space-before",
"./stylelint_plugins/declaration-block-multi-line-min-declarations"
],
"customSyntax": "postcss-less",
"rules": {
"no-descending-specificity" : null,
"at-rule-no-unknown" : null,
"function-no-unknown" : null,
"font-family-no-missing-generic-family-keyword" : null,
"font-weight-notation" : "named-where-possible",
"font-family-name-quotes" : "always-unless-keyword",
"stylistic/indentation" : "tab",
"no-duplicate-selectors" : true,
"stylistic/color-hex-case" : "upper",
"color-hex-length" : "long",
"stylistic/selector-combinator-space-after" : "always",
"stylistic/selector-combinator-space-before" : "always",
"stylistic/selector-attribute-operator-space-before" : "never",
"stylistic/selector-attribute-operator-space-after" : "never",
"stylistic/selector-attribute-brackets-space-inside" : "never",
"selector-attribute-quotes" : "always",
"selector-pseudo-element-colon-notation" : "double",
"stylistic/selector-pseudo-class-parentheses-space-inside" : "never",
"stylistic/block-opening-brace-space-before" : "always",
"naturalcrit/declaration-colon-min-space-before" : 1,
"stylistic/declaration-block-trailing-semicolon" : "always",
"stylistic/declaration-colon-space-after" : "always",
"stylistic/number-leading-zero" : "always",
"function-url-quotes" : ["always", { "except": ["empty"] }],
"function-url-scheme-disallowed-list" : ["data","http"],
"comment-whitespace-inside" : "always",
"stylistic/string-quotes" : "single",
"stylistic/media-feature-range-operator-space-before" : "always",
"stylistic/media-feature-range-operator-space-after" : "always",
"stylistic/media-feature-parentheses-space-inside" : "never",
"stylistic/media-feature-colon-space-before" : "always",
"stylistic/media-feature-colon-space-after" : "always",
"naturalcrit/declaration-colon-align" : true,
"naturalcrit/declaration-block-multi-line-min-declarations": 1
}
}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.11-alpine
FROM node:18-alpine
RUN apk --no-cache add git

ENV NODE_ENV=docker
Expand All @@ -10,11 +10,11 @@ WORKDIR /usr/src/app
# This improves caching so we don't have to download the dependencies every time the code changes
COPY package.json ./
# --ignore-scripts tells yarn not to run postbuild. We run it explicitly later
RUN yarn install --ignore-scripts
RUN npm install --ignore-scripts

# Bundle app source and build application
COPY . .
RUN yarn build
RUN npm run build

EXPOSE 8000
CMD [ "yarn", "start" ]
CMD [ "npm", "start" ]
238 changes: 233 additions & 5 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
```css
.beta {
color : white;
padding : 4px 6px;
line-height : 1em;
background : grey;
border-radius : 12px;
font-family : monospace;
font-size : 10px;
font-weight : 800;
margin-top : -5px;
margin-bottom : -5px;
}

.fac {
height: 1em;
line-height: 2em;
margin-bottom: -0.05cm
}

h5 {
font-size: .35cm !important;
}
Expand Down Expand Up @@ -61,17 +80,226 @@ pre {
## changelog
For a full record of development, visit our [Github Page](https://github.com/naturalcrit/homebrewery).

### Thursday 17/08/2023 - v3.9.2
{{taskList

##### Calculuschild

* [x] Fix links to certain old Google Drive files

Fixes issue [#2917](https://github.com/naturalcrit/homebrewery/issues/2917)

##### G-Ambatte

* [x] Menus now open on click, and internally consistent

Fixes issue [#2702](https://github.com/naturalcrit/homebrewery/issues/2702), [#2782](https://github.com/naturalcrit/homebrewery/issues/2782)

* [x] Add smarter footer snippet

Fixes issue [#2289](https://github.com/naturalcrit/homebrewery/issues/2289)

* [x] Add sanitization in Style editor

Fixes issue [#1437](https://github.com/naturalcrit/homebrewery/issues/1437)

* [x] Rework class table snippets to remove unnecessary randomness

Fixes issue [#2964](https://github.com/naturalcrit/homebrewery/issues/2964)

* [x] Add User Page link to Google Drive file for file owners, add icons for additional storage locations

Fixes issue [#2954](https://github.com/naturalcrit/homebrewery/issues/2954)

* [x] Add default save location selection to Account Page

Fixes issue [#2943](https://github.com/naturalcrit/homebrewery/issues/2943)

##### 5e-Cleric

* [x] Exclude cover pages from Table of Content generation (editing on mobile is still not recommended)

Fixes issue [#2920](https://github.com/naturalcrit/homebrewery/issues/2920)

##### Gazook89

* [x] Adjustments to improve mobile viewing

}}

### Wednesday 28/06/2023 - v3.9.1
{{taskList

##### G-Ambatte

* [x] Better error pages with more useful information

Fixes issue [#1924](https://github.com/naturalcrit/homebrewery/issues/1924)
}}

### Friday 02/06/2023 - v3.9.0
{{taskList

##### Calculuschild

* [x] Fix some files not showing up on userpage when user has a large number of brews in Google Drive

Fixes issue [#2408](https://github.com/naturalcrit/homebrewery/issues/2408)

* [x] Pressing tab now indents with spaces instead of tab character; fixes several issues with Markdown lists

Fixes issues [#2092](https://github.com/naturalcrit/homebrewery/issues/2092), [#1556](https://github.com/naturalcrit/homebrewery/issues/1556)

* [x] Rename `naturalCritLogo.svg` to `naturalCritLogoRed.svg`. Those using the {{beta BETA}} coverPage snippet may need to update that text to make the NaturalCrit logo appear again.

##### G-Ambatte

* [x] Fix strange animation of image masks

Fixes issue [#2790](https://github.com/naturalcrit/homebrewery/issues/2790)

##### 5e-Cleric

* [x] New {{openSans **PHB → {{fac,book-part-cover}} PART COVER PAGE** }} snippet for V3!

* [x] New {{openSans **PHB → {{fac,book-back-cover}} BACK COVER PAGE** }} snippet for V3! (Thanks to /u/Kaiburr_Kath-Hound on Reddit for providing some of these resources!)

* [x] New {{openSans **TEXT EDITOR → {{fas,fa-bars}} INDEX** }} snippet for V3!

* [x] Fix highlighting of curly braces inside comments

Fixes issue [#2784](https://github.com/naturalcrit/homebrewery/issues/2784)
}}

### Wednesday 12/04/2023 - v3.8.0
{{taskList

##### calculuschild

* [x] Rename `{{coverPage}}` to `{{frontCover}}`. Those using this {{beta BETA}} feature will need to update that text to make the cover page appear again.

* [x] Several background fixes to test scripts

##### Jeddai

* [X] Add content negotiation to exclude image requests from our API calls

Fixes issue [#2595](https://github.com/naturalcrit/homebrewery/issues/2595)

##### G-Ambatte

* [x] Update server build scripts to fix Admin page

Fixes issues [#2657](https://github.com/naturalcrit/homebrewery/issues/2657)

* [x] Fix internal links inside `<\div>` blocks not receiving the `target=_self` attribute

Fixes issues [#2680](https://github.com/naturalcrit/homebrewery/issues/2680)

* [x] See brew details on `/share` pages by clicking the brew title (author, last update, tags, etc.)

Fixes issues [#1679](https://github.com/naturalcrit/homebrewery/issues/1679)

* [x] Add local Windows install script via Chocolatey

##### 5e-Cleric

* [x] New {{openSans **TABLES → {{fas,fa-language}} RUNE TABLE**}} snippets for V3. Adds an alphabetic script translation table.

* [x] New {{openSans **IMAGES → {{fac,mask-center}} WATERCOLOR CENTER** }} snippets for V3, which adds a stylish watercolor texture to the center of your images!

* [x] New {{openSans **PHB → {{fac,book-inside-cover}} INSIDE COVER PAGE** }} snippet for V3! (Thanks to /u/Kaiburr_Kath-Hound on Reddit for providing some of these resources!)

* [x] Add some missing characters {{font-family:scalySansRemake Ñ ñ ç Ç Ý ý # ^ ¿ ' " ¡ ·}} to the "scalySansRemake" font in V3.

Fixes issues [#2280](https://github.com/naturalcrit/homebrewery/issues/2280)

##### Gazook89

* [x] Add "Language" selector in {{fa,fa-info-circle}} **Properties** menu. Sets the HTML Lang attribute for your brew to better handle hyphenation or spellcheck.

Fixes issues [#1343](https://github.com/naturalcrit/homebrewery/issues/1343)

* [x] Fix a crash when multiple `{injection}` tags appear in sequence

Fixes issues [#2712](https://github.com/naturalcrit/homebrewery/issues/2712)

##### MichielDeMey

* [x] Remove all-caps display on Account button since usernames are case-sensitive.

Fixes issues [#2731](https://github.com/naturalcrit/homebrewery/issues/2731)

}}

\page

### Monday 13/03/2023 - v3.7.2
{{taskList

##### Calculuschild

* [x] Fix wide Monster Stat Blocks not spanning columns on Legacy
}}

### Thursday 09/03/2023 - v3.7.1
{{taskList

##### Lucastucious (new contributor!)

* [x] Changed `filter: drop-shadow` to `box-shadow` on text boxes, making PDF text selectable

Fixes issues [#1569](https://github.com/naturalcrit/homebrewery/issues/1569)

{{note
**NOTE:** If you create your PDF on a computer with an old version of Mac Preview (v10 or older) you may see shadows appear as solid gray.
}}

##### MichielDeMey

* [x] Updated the Google Drive icon
* [x] Backend fix to unit tests failing intermittently

##### Calculuschild

* [x] Fix PDF pixelation on CoverPage text outlines
}}

### Tuesday 28/02/2023 - v3.7.0
{{taskList

{{note
**NOTE:** Some new snippets will now show a {{beta BETA}} tag. Feel free to use them, but be aware we may change how they work depending on your feedback.
}}

##### Calculuschild

* [x] New {{openSans **IMAGES → WATERCOLOR EDGE** {{fac,mask-edge}} }} and {{openSans **WATERCOLOR CORNER** {{fac,mask-corner}} }} snippets for V3, which adds a stylish watercolor texture to the edge of your images! (Thanks to /u/flamableconcrete on Reddit for providing these image masks!)

* [x] Fix site not displaying on iOS devices

##### 5e-Cleric

* [x] New {{openSans **PHB → COVER PAGE** {{fac,book-front-cover}} }} snippet for V3, which adds a stylish coverpage to your brew! (Thanks to /u/Kaiburr_Kath-Hound on Reddit for providing some of these resources!)

##### MichielDeMey (new contribuor!)

* [x] Fix typo in testing scripts
* [x] Fix "mug" image not using HTTPS

Fixes issues [#2687](https://github.com/naturalcrit/homebrewery/issues/2687)
}}

### Saturday 18/02/2023 - v3.6.1
{{taskList
##### G-Ambatte

* [x] Fix users not being removed from Authors list correctly
* [x] Fix users not being removed from Authors list

Fixes issues [#2674](https://github.com/naturalcrit/homebrewery/issues/2674)
}}


### Friday 23/01/2023 - v3.6.0
### Monday 23/01/2023 - v3.6.0
{{taskList
##### calculuschild

Expand All @@ -96,6 +324,8 @@ Fixes issues [#2583](https://github.com/naturalcrit/homebrewery/issues/2583)
* [x] Fix cloned brews inheriting the parent view count
}}

\page

### Friday 23/12/2022 - v3.5.0
{{taskList

Expand All @@ -109,8 +339,6 @@ Fixes issues [#2583](https://github.com/naturalcrit/homebrewery/issues/2583)
Fixes issues [#1987](https://github.com/naturalcrit/homebrewery/issues/1987)
}}

\page

### Saturday 10/12/2022 - v3.4.2
{{taskList

Expand Down
Loading

0 comments on commit 6d4104a

Please sign in to comment.