Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fabcity-map-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Map
fabcity-map-frontend
Compare revisions
0634d2282ccfceff8747bfd376c018bcac68b80d to main
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
fabcity-map/fabcity-map-frontend
Select target project
No results found
main
Select Git revision
Swap
Target
fcos-suite/fcos-suite-map
Select target project
fcos-suite/fcos-suite-map
1 result
0634d2282ccfceff8747bfd376c018bcac68b80d
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/util/fetcher.ts
+7
-0
7 additions, 0 deletions
src/util/fetcher.ts
src/util/file.ts
+15
-0
15 additions, 0 deletions
src/util/file.ts
tailwind.config.js
+8
-3
8 additions, 3 deletions
tailwind.config.js
with
30 additions
and
3 deletions
src/util/fetcher.ts
0 → 100644
View file @
338a9603
import
{
request
}
from
'
graphql-request
'
;
import
type
{
Variables
}
from
'
graphql-request/dist/types
'
;
const
fetcher
=
<
T
,
V
extends
Variables
>
(
query
:
string
,
variables
?:
V
):
Promise
<
T
>
=>
request
(
import
.
meta
.
env
.
SNOWPACK_PUBLIC_API_URL
,
query
,
variables
);
export
default
fetcher
;
This diff is collapsed.
Click to expand it.
src/util/file.ts
0 → 100644
View file @
338a9603
export
const
validateFile
=
(
file
:
File
,
allowedSize
=
5000000
,
allowedExtensions
=
[
'
jpg
'
,
'
jpeg
'
,
'
png
'
],
):
boolean
=>
{
const
{
name
:
fileName
,
size
:
fileSize
}
=
file
;
const
fileExtension
=
fileName
.
split
(
'
.
'
).
pop
();
if
(
fileExtension
&&
!
allowedExtensions
.
includes
(
fileExtension
.
toLowerCase
()))
{
return
false
;
}
else
if
(
fileSize
>
allowedSize
)
{
return
false
;
}
return
true
;
};
This diff is collapsed.
Click to expand it.
tailwind.config.js
View file @
338a9603
module
.
exports
=
{
purge
:
[],
mode
:
'
jit
'
,
purge
:
[
'
./src/**/*.html
'
,
'
./src/**/*.tsx
'
],
darkMode
:
false
,
// or 'media' or 'class'
theme
:
{
extend
:
{},
...
...
@@ -7,5 +8,9 @@ module.exports = {
variants
:
{
extend
:
{},
},
plugins
:
[],
}
plugins
:
[
require
(
'
@tailwindcss/forms
'
)({
strategy
:
'
class
'
,
}),
],
};
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
Next