Skip to content

Commit

Permalink
Merge pull request #46 from SDFIdk/filter-buttons
Browse files Browse the repository at this point in the history
import svg as text instead
  • Loading branch information
Gebuz committed Dec 6, 2023
2 parents bc0cf31 + a62aea3 commit 7715f00
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 712 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ GSearch-UI is configured using html data attributes.
|:---|---|---|---|---|
|`data-token`|A valid token from https://dataforsyningen.dk/|yes|yes|`NaN`|
|`data-resources`|The resources that should be searched in. See more information in the [GSearch documentation](https://github.com/SDFIdk/gsearch/tree/main/doc)|no|yes|`navngivenvej,husnummer,adresse,stednavn,kommune,region,retskreds,postnummer,opstillingskreds,sogn,politikreds,matrikel,matrikel_udgaaet`|
|`resourceFilterEnabled`|Show filter buttons for the selected resources to allow the user to toggle resources.|no|yes|`false`|
|`resource-filter-enabled`|Show filter buttons for the selected resources to allow the user to toggle resources.|no|yes|`false`|
|`data-limit`|The number of matches for each resource to be shown. The maximum value is 100.|no|yes|`10`|
|`data-placeholder`|The placeholder text to show in the input field.|no|yes|`søg...`|
|`data-api`|Use a custom URL for GSearch API (ie. if you want to use a test API)|no|yes|`https://api.dataforsyningen.dk/rest/gsearch/v1.0/`|
Expand Down
4 changes: 2 additions & 2 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (process.env.NODE_ENV === 'production') {
format: 'esm',
loader: {
'.ttf': 'file',
'.svg': 'file'
'.svg': 'text'
},
plugins: [
sassPlugin()
Expand All @@ -46,7 +46,7 @@ if (process.env.NODE_ENV === 'production') {
format: 'esm',
loader: {
'.ttf': 'file',
'.svg': 'file'
'.svg': 'text'
},
plugins: [
sassPlugin()
Expand Down
Loading

0 comments on commit 7715f00

Please sign in to comment.