Skip to content

Commit c770ab3

Browse files
committed
Merge branch 'dev' for release 6.3.9
2 parents c2c71b2 + 83eca55 commit c770ab3

33 files changed

+5473
-98
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog Fab-manager
22

3+
## Next release
4+
5+
## v6.3.9 2024 January 8
6+
7+
- translation files added for Swedish
8+
- Fix a bug: unable to show extended prices of space
9+
- Fix a bug: event number places error in statistic
10+
- [TODO DEPLOY] `rails fablab:maintenance:regenerate_statistics[2014,1]`
11+
312
## v6.3.8 2023 December 29
413

514
- Fix a bug: unable to build docker image

Dockerfile

Lines changed: 33 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,20 @@
1-
FROM ruby:3.2.2-alpine
2-
MAINTAINER contact@fab-manager.com
1+
FROM ruby:3.2.2
2+
MAINTAINER contact@sleede.com
33

4-
# Install upgrade system packages
5-
RUN apk update && apk upgrade && \
6-
# Install runtime apk dependencies
7-
apk add --update \
8-
bash \
9-
curl \
10-
nodejs \
11-
yarn \
12-
git \
13-
openssh \
14-
imagemagick \
15-
supervisor \
16-
tzdata \
17-
libc-dev \
18-
ruby-dev \
19-
zlib-dev \
20-
xz \
21-
xz-dev \
22-
postgresql-dev \
23-
postgresql-client \
24-
libxml2-dev \
25-
libxslt-dev \
26-
libsass-dev \
27-
libsass \
28-
libc6-compat \
29-
libidn-dev \
30-
shared-mime-info && \
31-
# Install buildtime apk dependencies
32-
apk add --update --no-cache --virtual .build-deps \
33-
alpine-sdk \
34-
build-base \
35-
linux-headers \
36-
patch
4+
# First we need to be able to fetch from https repositories
5+
RUN apt-get update && \
6+
apt-get install -y apt-transport-https \
7+
ca-certificates apt-utils supervisor locales
8+
9+
RUN locale-gen C.UTF-8
10+
11+
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -\
12+
&& apt-get update -qq && apt-get install -qq --no-install-recommends \
13+
nodejs \
14+
&& apt-get upgrade -qq \
15+
&& apt-get clean \
16+
&& rm -rf /var/lib/apt/lists/*\
17+
&& npm install -g yarn@1
3718

3819
# Fix bug: LoadError: Could not open library '/usr/local/bundle/gems/sassc-2.1.0-x86_64-linux/lib/sassc/libsass.so': Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/local/bundle/gems/sassc-2.1.0-x86_64-linux/lib/sassc/libsass.so)
3920
# add libsass-dev libsass libc6-compat and env below
@@ -46,36 +27,31 @@ RUN bundle config --global frozen 1
4627

4728
# Install gems in a cache efficient way
4829
WORKDIR /tmp
49-
COPY Gemfile* /tmp/
50-
RUN bundle config set --local without 'development test doc' && bundle install && bundle binstubs --all
51-
52-
# Prepare the application directories
53-
RUN mkdir -p /var/log/supervisor && \
54-
mkdir -p /usr/src/app/tmp/sockets && \
55-
mkdir -p /usr/src/app/tmp/pids && \
56-
mkdir -p /usr/src/app/tmp/cache && \
57-
mkdir -p /usr/src/app/log && \
58-
mkdir -p /usr/src/app/node_modules && \
59-
mkdir -p /usr/src/app/public/api && \
60-
chmod -R a+w /usr/src/app && \
61-
chmod -R a+w /var/run
30+
COPY Gemfile /tmp/
31+
COPY Gemfile.lock /tmp/
32+
RUN bundle install --binstubs --without development test doc
6233

6334
# Install Javascript packages
6435
WORKDIR /usr/src/app
6536
COPY package.json /usr/src/app/package.json
6637
COPY yarn.lock /usr/src/app/yarn.lock
6738
RUN yarn install
6839

69-
# Clean up build deps, cached packages and temp files
70-
RUN apk del .build-deps && \
71-
yarn cache clean && \
72-
rm -rf /tmp/* \
73-
/var/tmp/* \
74-
/var/cache/apk/* \
75-
/usr/lib/ruby/gems/*/cache/* && \
76-
chmod -R a+w /usr/src/app/node_modules
40+
# Web app
41+
RUN mkdir -p /usr/src/app && \
42+
mkdir -p /usr/src/app/config && \
43+
mkdir -p /usr/src/app/invoices && \
44+
mkdir -p /usr/src/app/payment_schedules && \
45+
mkdir -p /usr/src/app/exports && \
46+
mkdir -p /usr/src/app/imports && \
47+
mkdir -p /usr/src/app/log && \
48+
mkdir -p /usr/src/app/public/uploads && \
49+
mkdir -p /usr/src/app/public/packs && \
50+
mkdir -p /usr/src/app/accounting && \
51+
mkdir -p /usr/src/app/supporting_document_files && \
52+
mkdir -p /usr/src/app/tmp/sockets && \
53+
mkdir -p /usr/src/app/tmp/pids
7754

78-
# Copy source files
7955
COPY docker/database.yml /usr/src/app/config/database.yml
8056
COPY . /usr/src/app
8157

app/frontend/src/javascript/components/cart/abstract-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const AbstractItem: React.FC<AbstractItemProps> = ({ item, errors, cart,
7676
<span>{t('app.public.abstract_item.total')}</span>
7777
<p>{FormatLib.price(OrderLib.itemAmount(item))}</p>
7878
</div>
79-
<FabButton className="main-action-btn" onClick={handleRemoveItem(item)}>
79+
<FabButton className="is-alert" onClick={handleRemoveItem(item)}>
8080
<i className="fa fa-trash" />
8181
</FabButton>
8282
</div>

app/frontend/src/javascript/components/events/event-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export const EventForm: React.FC<EventFormProps> = ({ action, event, onError, on
361361
formState={formState}
362362
label={t('app.admin.event_form.price')}
363363
addOn={FormatLib.currencySymbol()} />
364-
<FabButton className="remove-price is-main" onClick={() => handlePriceRemove(price, index)} icon={<Trash size={20} />} />
364+
<FabButton className="remove-price is-alert" onClick={() => handlePriceRemove(price, index)} icon={<Trash size={20} />} />
365365
</div>
366366
))}
367367
<FabButton className="add-price is-secondary" onClick={() => append({})}>

app/frontend/src/javascript/components/form/form-file-upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const FormFileUpload = <TFieldValues extends FieldValues>({ id, label, re
103103
onChange={onFileSelected}
104104
placeholder={placeholder()}/>
105105
{showRemoveButton && hasFile() &&
106-
<FabButton onClick={onRemoveFile} icon={<Trash size={20} weight="fill" />} className="is-main" />
106+
<FabButton onClick={onRemoveFile} icon={<Trash size={20} weight="fill" />} className="is-alert" />
107107
}
108108
</div>
109109
</div>

app/frontend/src/javascript/components/form/form-image-upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const FormImageUpload = <TFieldValues extends FieldValues, TContext exten
127127
onChange={onFileSelected}
128128
placeholder={placeholder()}
129129
tooltip={tooltip} />
130-
{hasImage() && <FabButton onClick={onRemoveFile} icon={<Trash size={20} weight="fill" />} className="is-main" />}
130+
{hasImage() && <FabButton onClick={onRemoveFile} icon={<Trash size={20} weight="fill" />} className="is-alert" />}
131131
</div>
132132
</div>
133133
);

app/frontend/src/javascript/components/pricing/spaces/configure-extended-prices-button.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactNode, useState } from 'react';
1+
import { ReactNode, useState, useEffect } from 'react';
22
import * as React from 'react';
33
import { Price } from '../../../models/price';
44
import { useTranslation } from 'react-i18next';
@@ -28,6 +28,10 @@ export const ConfigureExtendedPricesButton: React.FC<ConfigureExtendedPricesButt
2828
const [extendedPrices, setExtendedPrices] = useState<Array<Price>>(prices);
2929
const [showList, setShowList] = useState<boolean>(false);
3030

31+
useEffect(() => {
32+
setExtendedPrices(prices);
33+
}, [prices]);
34+
3135
/**
3236
* Return the number of hours, user-friendly formatted
3337
*/

app/frontend/src/javascript/components/store/product-item.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export const ProductItem: React.FC<ProductItemProps> = ({ product, onEdit, onDel
7373
</div>
7474
<div className='actions'>
7575
<EditDestroyButtons onDeleteSuccess={onDelete}
76-
className="manage"
7776
onError={onError}
7877
onEdit={editProduct(product)}
7978
itemId={product.id}

app/frontend/src/stylesheets/modules/base/edit-destroy-buttons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
border-radius: 0;
1010
color: var(--gray-soft-lightest);
1111
&.edit-btn {background: var(--gray-hard-darkest) }
12-
&.delete-btn {background: var(--main) }
12+
&.delete-btn {background: var(--alert) }
1313
&:hover,
1414
&:focus {
1515
opacity: 0.75;

app/frontend/src/stylesheets/modules/cart/store-cart.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@
207207
padding: 1.6rem 0.8rem;
208208
background-color: var(--main);
209209
border: none;
210-
color: var(--gray-soft-lightest);
210+
color: var(--main-text-color);
211211
justify-content: center;
212212
text-transform: uppercase;
213213
&:hover {
214-
color: var(--gray-soft-lightest);
214+
color: var(--main-text-color);
215215
opacity: 0.75;
216216
cursor: pointer;
217217
}

0 commit comments

Comments
 (0)