Skip to content

Commit da11c9b

Browse files
committed
Merge branch 'v2'
2 parents e45a56c + 93b04fb commit da11c9b

File tree

272 files changed

+11180
-5366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+11180
-5366
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 4
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[{compose.yaml,compose.*.yaml}]
14+
indent_size = 2
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.env

Lines changed: 10 additions & 187 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,16 @@ DATABASE_EMULATE_NATURAL_SORT=0
3232
###################################################################################
3333

3434
# The language to use serverwide as default (en, de, ru, etc.)
35-
DEFAULT_LANG="en"
35+
#DEFAULT_LANG="en"
3636
# The default timezone to use serverwide (e.g. Europe/Berlin)
37-
DEFAULT_TIMEZONE="Europe/Berlin"
37+
#DEFAULT_TIMEZONE="Europe/Berlin"
3838
# The currency that is used inside the DB (and is assumed when no currency is set). This can not be changed later, so be sure to set it the currency used in your country
39-
BASE_CURRENCY="EUR"
40-
# The name of this installation. This will be shown as title in the browser and in the header of the website
41-
INSTANCE_NAME="Part-DB"
42-
# Allow users to download attachments to the server by providing an URL
43-
# This could be a potential security issue, as the user can retrieve any file the server has access to (via internet)
44-
ALLOW_ATTACHMENT_DOWNLOADS=0
45-
# Set this to 1, if the "download external files" checkbox should be checked by default for new attachments
46-
ATTACHMENT_DOWNLOAD_BY_DEFAULT=0
47-
# Use gravatars for user avatars, when user has no own avatar defined
48-
USE_GRAVATAR=0
49-
# The maximum allowed size for attachment files in bytes (you can use M for megabytes and G for gigabytes)
50-
# Please note that the php.ini setting upload_max_filesize also limits the maximum size of uploaded files
51-
MAX_ATTACHMENT_FILE_SIZE="100M"
39+
#BASE_CURRENCY="EUR"
5240

5341
# The public reachable URL of this Part-DB installation. This is used for generating links in SAML and email templates
5442
# This must end with a slash!
5543
DEFAULT_URI="https://partdb.changeme.invalid/"
5644

57-
# With this option you can configure, where users are enforced to give a change reason, which will be logged
58-
# This is a comma separated list of values, see documentation for available values
59-
# Leave this empty, to make all change reasons optional
60-
ENFORCE_CHANGE_COMMENTS_FOR=""
61-
62-
# Disable that if you do not want that Part-DB connects to GitHub to check for available updates, or if your server can not connect to the internet
63-
CHECK_FOR_UPDATES=1
64-
6545
###################################################################################
6646
# Email settings
6747
###################################################################################
@@ -78,21 +58,6 @@ EMAIL_SENDER_NAME="Part-DB Mailer"
7858
# Set this to 1 to allow reset of a password per email
7959
ALLOW_EMAIL_PW_RESET=0
8060

81-
######################################################################################
82-
# History/Eventlog settings
83-
######################################################################################
84-
# If you want to use full timetrave functionality all values below have to be set to 1
85-
86-
# Save which fields were changed in a ElementEdited log entry
87-
HISTORY_SAVE_CHANGED_FIELDS=1
88-
# Save the old data in the ElementEdited log entry (warning this could increase the database size in short time)
89-
HISTORY_SAVE_CHANGED_DATA=1
90-
# Save the data of an element that gets removed into log entry. This allows to undelete an element
91-
HISTORY_SAVE_REMOVED_DATA=1
92-
# Save the new data of an element that gets changed or added. This allows an easy comparison of the old and new data on the detail page
93-
# This option only becomes active when HISTORY_SAVE_CHANGED_DATA is set to 1
94-
HISTORY_SAVE_NEW_DATA=1
95-
9661
###################################################################################
9762
# Error pages settings
9863
###################################################################################
@@ -102,149 +67,15 @@ ERROR_PAGE_ADMIN_EMAIL=''
10267
# If this is set to true, solutions to common problems are shown on error pages. Disable this, if you do not want your users to see them...
10368
ERROR_PAGE_SHOW_HELP=1
10469

105-
##################################################################################
106-
# Part table settings
107-
##################################################################################
108-
109-
# The default page size for the part table (set to -1 to show all parts on one page)
110-
TABLE_DEFAULT_PAGE_SIZE=50
111-
# Configure which columns will be visible by default in the parts table (and in which order).
112-
# This is a comma separated list of column names. See documentation for available values.
113-
TABLE_PARTS_DEFAULT_COLUMNS=name,description,category,footprint,manufacturer,storage_location,amount
114-
115-
##################################################################################
116-
# Info provider settings
117-
##################################################################################
118-
119-
# Digikey Provider:
120-
# You can get your client id and secret from https://developer.digikey.com/
121-
PROVIDER_DIGIKEY_CLIENT_ID=
122-
PROVIDER_DIGIKEY_SECRET=
123-
# The currency to get prices in
124-
PROVIDER_DIGIKEY_CURRENCY=EUR
125-
# The language to get results in (en, de, fr, it, es, zh, ja, ko)
126-
PROVIDER_DIGIKEY_LANGUAGE=en
127-
# The country to get results for
128-
PROVIDER_DIGIKEY_COUNTRY=DE
129-
130-
# Farnell Provider:
131-
# You can get your API key from https://partner.element14.com/
132-
PROVIDER_ELEMENT14_KEY=
133-
# Configure the store domain you want to use. This decides the language and currency of results. You can get a list of available stores from https://partner.element14.com/docs/Product_Search_API_REST__Description
134-
PROVIDER_ELEMENT14_STORE_ID=de.farnell.com
135-
136-
# TME Provider:
137-
# You can get your API key from https://developers.tme.eu/en/
138-
PROVIDER_TME_KEY=
139-
PROVIDER_TME_SECRET=
140-
# The currency to get prices in
141-
PROVIDER_TME_CURRENCY=EUR
142-
# The language to get results in (en, de, pl)
143-
PROVIDER_TME_LANGUAGE=en
144-
# The country to get results for
145-
PROVIDER_TME_COUNTRY=DE
146-
# [DEPRECATED] Set this to 1 to get gross prices (including VAT) instead of net prices
147-
# With private API keys, this option cannot be used anymore is ignored by Part-DB. The VAT inclusion depends on your TME account settings.
148-
PROVIDER_TME_GET_GROSS_PRICES=1
149-
150-
# Octopart / Nexar Provider:
151-
# You can get your API key from https://nexar.com/api
152-
PROVIDER_OCTOPART_CLIENT_ID=
153-
PROVIDER_OCTOPART_SECRET=
154-
# The currency and country to get prices for (you have to set both to get meaningful results)
155-
# 3 letter ISO currency code (e.g. EUR, USD, GBP)
156-
PROVIDER_OCTOPART_CURRENCY=EUR
157-
# 2 letter ISO country code (e.g. DE, US, GB)
158-
PROVIDER_OCTOPART_COUNTRY=DE
159-
# The number of results to get from Octopart while searching (please note that this counts towards your API limits)
160-
PROVIDER_OCTOPART_SEARCH_LIMIT=10
161-
# Set to false to include non authorized offers in the results
162-
PROVIDER_OCTOPART_ONLY_AUTHORIZED_SELLERS=1
163-
164-
# Mouser Provider API V2:
165-
# You can get your API key from https://www.mouser.it/api-hub/
166-
PROVIDER_MOUSER_KEY=
167-
# Filter search results by RoHS compliance and stock availability:
168-
# Available options: None | Rohs | InStock | RohsAndInStock
169-
PROVIDER_MOUSER_SEARCH_OPTION='None'
170-
# The number of results to get from Mouser while searching (please note that this value is max 50)
171-
PROVIDER_MOUSER_SEARCH_LIMIT=50
172-
# It is recommended to leave this set to 'true'. The option is not really good doumented by Mouser:
173-
# Used when searching for keywords in the language specified when you signed up for Search API.
174-
PROVIDER_MOUSER_SEARCH_WITH_SIGNUP_LANGUAGE='true'
175-
176-
# LCSC Provider:
177-
# LCSC does not provide an offical API, so this used the API LCSC uses to render their webshop.
178-
# LCSC did not intended the use of this API and it could break any time, so use it at your own risk.
179-
180-
# We dont require an API key for LCSC, just set this to 1 to enable LCSC support
181-
PROVIDER_LCSC_ENABLED=0
182-
# The currency to get prices in (e.g. EUR, USD, etc.)
183-
PROVIDER_LCSC_CURRENCY=EUR
184-
185-
# Oemsecrets Provider API 3.0.1:
186-
# You can get your API key from https://www.oemsecrets.com/api
187-
PROVIDER_OEMSECRETS_KEY=
188-
# The country you want the output for
189-
PROVIDER_OEMSECRETS_COUNTRY_CODE=DE
190-
# Available country code are:
191-
# AD, AE, AQ, AR, AT, AU, BE, BO, BR, BV, BY, CA, CH, CL, CN, CO, CZ, DE, DK, EC, EE, EH,
192-
# ES, FI, FK, FO, FR, GB, GE, GF, GG, GI, GL, GR, GS, GY, HK, HM, HR, HU, IE, IM, IN, IS,
193-
# IT, JM, JP, KP, KR, KZ, LI, LK, LT, LU, MC, MD, ME, MK, MT, NL, NO, NZ, PE, PH, PL, PT,
194-
# PY, RO, RS, RU, SB, SD, SE, SG, SI, SJ, SK, SM, SO, SR, SY, SZ, TC, TF, TG, TH, TJ, TK,
195-
# TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VE, VG, VI, VN, VU, WF, YE,
196-
# ZA, ZM, ZW
197-
#
198-
# The currency you want the prices to be displayed in
199-
PROVIDER_OEMSECRETS_CURRENCY=EUR
200-
# Available currency are:AUD, CAD, CHF, CNY, DKK, EUR, GBP, HKD, ILS, INR, JPY, KRW, NOK,
201-
# NZD, RUB, SEK, SGD, TWD, USD
202-
#
203-
# If PROVIDER_OEMSECRETS_ZERO_PRICE is set to 0, distributors with zero prices
204-
# will be discarded from the creation of a new part (set to 1 otherwise)
205-
PROVIDER_OEMSECRETS_ZERO_PRICE=0
206-
#
207-
# When PROVIDER_OEMSECRETS_SET_PARAM is set to 1 the parameters for the part are generated
208-
# from the description transforming unstructured descriptions into structured parameters;
209-
# each parameter in description should have the form: "...;name1:value1;name2:value2"
210-
PROVIDER_OEMSECRETS_SET_PARAM=1
211-
#
212-
# This environment variable determines the sorting criteria for product results.
213-
# The sorting process first arranges items based on the provided keyword.
214-
# Then, if set to 'C', it further sorts by completeness (prioritizing items with the most
215-
# detailed information). If set to 'M', it further sorts by manufacturer name.
216-
#If unset or set to any other value, no sorting is performed.
217-
PROVIDER_OEMSECRETS_SORT_CRITERIA=C
218-
219-
220-
# Reichelt provider:
221-
# Reichelt.com offers no official API, so this info provider webscrapes the website to extract info
222-
# It could break at any time, use it at your own risk
223-
# We dont require an API key for Reichelt, just set this to 1 to enable Reichelt support
224-
PROVIDER_REICHELT_ENABLED=0
225-
# The country to get prices for
226-
PROVIDER_REICHELT_COUNTRY=DE
227-
# The language to get results in (en, de, fr, nl, pl, it, es)
228-
PROVIDER_REICHELT_LANGUAGE=en
229-
# Include VAT in prices (set to 1 to include VAT, 0 to exclude VAT)
230-
PROVIDER_REICHELT_INCLUDE_VAT=1
231-
# The currency to get prices in (only for countries with countries other than EUR)
232-
PROVIDER_REICHELT_CURRENCY=EUR
233-
234-
# Pollin provider:
235-
# Pollin.de offers no official API, so this info provider webscrapes the website to extract info
236-
# It could break at any time, use it at your own risk
237-
# We dont require an API key for Pollin, just set this to 1 to enable Pollin support
238-
PROVIDER_POLLIN_ENABLED=0
23970

24071
##################################################################################
24172
# EDA integration related settings
24273
##################################################################################
24374

24475
# This value determines the depth of the category tree, that is visible inside KiCad
24576
# 0 means that only the top level categories are visible. Set to a value > 0 to show more levels.
246-
# Set to -1, to show all parts of Part-DB inside a single category in KiCad
247-
EDA_KICAD_CATEGORY_DEPTH=0
77+
# Set to -1, to show all parts of Part-DB inside a sigle cnategory in KiCad
78+
#EDA_KICAD_CATEGORY_DEPTH=0
24879

24980
###################################################################################
25081
# SAML Single sign on-settings
@@ -298,19 +129,6 @@ NO_URL_REWRITE_AVAILABLE=0
298129
# Set to 1, if Part-DB should redirect all HTTP requests to HTTPS. You dont need to configure this, if your webserver already does this.
299130
REDIRECT_TO_HTTPS=0
300131

301-
# If you want to use fixer.io for currency conversion, you have to set this to your API key
302-
FIXER_API_KEY=CHANGEME
303-
304-
# Override value if you want to show to show a given text on homepage.
305-
# When this is empty the content of config/banner.md is used as banner
306-
BANNER=""
307-
308-
# Enable the part image overlay which shows name and filename of the picture
309-
SHOW_PART_IMAGE_OVERLAY=1
310-
311-
APP_ENV=prod
312-
APP_SECRET=a03498528f5a5fc089273ec9ae5b2849
313-
314132
# Set this to zero, if you want to disable the year 2038 bug check on 32-bit systems (it will cause errors with current 32-bit PHP versions)
315133
DISABLE_YEAR2038_BUG_CHECK=0
316134

@@ -328,3 +146,8 @@ LOCK_DSN=flock
328146
###> nelmio/cors-bundle ###
329147
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
330148
###< nelmio/cors-bundle ###
149+
150+
###> symfony/framework-bundle ###
151+
APP_ENV=prod
152+
APP_SECRET=
153+
###< symfony/framework-bundle ###

.env.dev

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
###> symfony/framework-bundle ###
3+
APP_SECRET=318b5d659e07a0b3f96d9b3a83b254ca
4+
###< symfony/framework-bundle ###

.env.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ DATABASE_URL="sqlite:///%kernel.project_dir%/var/app_test.db"
1010
#DATABASE_URL=mysql://root:@127.0.0.1:3306/part-db
1111

1212
# Disable update checks, as tests would fail, when github is not reachable
13-
CHECK_FOR_UPDATES=0
13+
CHECK_FOR_UPDATES=0
14+
15+
INSTANCE_NAME="Part-DB"

.github/workflows/assets_artifact_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
path: ${{ steps.composer-cache.outputs.dir }}
4040
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
4141
restore-keys: |
42-
${{ runner.os }}-composer-
42+
${{ runner.os }}-composer-
4343
4444
- name: Install dependencies
4545
run: composer install --prefer-dist --no-progress --no-dev -a
@@ -59,7 +59,7 @@ jobs:
5959
- name: Setup node
6060
uses: actions/setup-node@v4
6161
with:
62-
node-version: '18'
62+
node-version: '20'
6363

6464
- name: Install yarn dependencies
6565
run: yarn install

0 commit comments

Comments
 (0)