-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug where the approach option ID was being shown in the appro…
…ach selection box. Added Cape Air as a possible company.
- Loading branch information
1 parent
94cef27
commit a88bd30
Showing
7 changed files
with
71 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
import type { GitCommit } from '$lib/server/api/git/schema'; | ||
import * as settings from '$lib/server/settings'; | ||
|
||
const MAX_MB = 10; | ||
|
||
export const load = async ({ }) => { | ||
export const load = async ({ fetch }) => { | ||
|
||
const commit = process.env.GIT_COMMIT ?? ''; | ||
|
||
const set = await settings.getMany('system.debug', 'system.lastSeenCommit', 'entry.tour.current', 'general.gravatar.hash', 'general.name', 'general.email', 'general.timezone'); | ||
|
||
let contourUpdates = false | ||
|
||
if (set['system.lastSeenCommit'] !== commit || true) contourUpdates = true; | ||
|
||
return { | ||
entrySettings: await settings.getSet('entry'), | ||
generalSettings: await settings.getSet('general'), | ||
debug: await settings.get('system.debug'), | ||
settings: set, | ||
MAX_MB, | ||
contourUpdates | ||
}; | ||
}; | ||
|
||
|
||
// let newItems: GitCommit[] | null = null; | ||
|
||
// if (set['system.lastSeenCommit'] !== commit || true) { | ||
// const res = await fetch(`https://api.github.com/repos/knicholson32/Contour/commits?per_page=100&sha=${set['system.lastSeenCommit']}`); | ||
// if (res.ok === true) { | ||
// getCommits = await res.json() as GitCommit[]; | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters