Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 15 additions & 17 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,21 +370,6 @@
"id": "05",
"name": "형남공학관",
"lockers": {
"1": {
"N": {
"subsections": [
{
"department": "E",
"range": [
541,
570
]
}
],
"disabled": [],
"height": 5
}
},
"3": {
"A": {
"subsections": [
Expand Down Expand Up @@ -586,6 +571,19 @@
12
],
"height": 5
},
"N": {
"subsections": [
{
"department": "E",
"range": [
541,
570
]
}
],
"disabled": [],
"height": 5
}
}
}
Expand All @@ -594,8 +592,8 @@
"alert": "문의 | 인스타그램 @it_soongsil"
},
{
"id": "A",
"name": "AI융합학부"
"id": "AS",
"name": "AI소프트웨어학부"
},
{
"id": "C",
Expand Down
5 changes: 3 additions & 2 deletions packages/client/src/components/molecule/FloorMap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
export { clazz as class };

let src: string;
let highlightSrc: string;
let highlightSrc: string = null;
let alt = '배치도';

$: if ($config.success && selectedBuildingId) {
Expand All @@ -30,14 +30,15 @@
selectedBuildingId,
)} ${selectedFloor}층 배치도`;
src = resolveFloorMapSrc(selectedBuildingId, selectedFloor);
highlightSrc = null;
}

$: if ($config.success && selectedSectionId) {
highlightSrc = resolveHighlightSectionSrc(selectedBuildingId, selectedFloor, selectedSectionId);
}
</script>

{#key `${selectedBuildingId}-${selectedFloor}`}
{#key `${selectedBuildingId}-${selectedFloor}-${selectedSectionId}`}
<!-- TODO: load highlight position in database -->
<MapCanvas class={clazz} {src} {alt} {highlightSrc} highlightX={0} highlightY={0} />
{/key}
Binary file added packages/client/static/floorMaps/05/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/static/floorMaps/05/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/A.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/B.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/C.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/D.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/E.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/F.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/G.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/H.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/I.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/J.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/K.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/L.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/client/static/floorMaps/05/3/M.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/client/static/floorMaps/05/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/client/static/floorMaps/05/B1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/client/static/floorMaps/05/B1/N.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 18 additions & 18 deletions packages/server/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: common.localCorsHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Architectures:
- x86_64
Events:
Expand Down Expand Up @@ -129,19 +129,19 @@ Resources:
DependenciesLayer:
Type: AWS::Serverless::LayerVersion
Metadata:
BuildMethod: nodejs20.x
BuildMethod: nodejs22.x
Properties:
LayerName: 'dependencies'
ContentUri: dependencies/
CompatibleRuntimes:
- nodejs20.x
- nodejs22.x
# Backend Lambda Resources
AuthLoginFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: ./dist
Handler: handler.auth.loginHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -161,7 +161,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.auth.logoutHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -181,7 +181,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.config.getConfigHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -201,7 +201,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.config.updateConfigHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -221,7 +221,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.config.deleteConfigHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -241,7 +241,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.locker.claimLockerHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -261,7 +261,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.locker.unclaimLockerHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -281,7 +281,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.locker.getClaimedLockerCountHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -301,7 +301,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.locker.queryClaimedLockersHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -321,7 +321,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.user.getUserHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -341,7 +341,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.user.queryUserHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -361,7 +361,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.user.updateUserHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -381,7 +381,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.user.deleteUserHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -401,7 +401,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.user.batchDeleteUserHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand All @@ -421,7 +421,7 @@ Resources:
Properties:
CodeUri: ./dist
Handler: handler.user.batchPutUserHandler
Runtime: nodejs20.x
Runtime: nodejs22.x
Layers:
- !Ref DependenciesLayer
Policies:
Expand Down