-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af35654
commit b2b98d4
Showing
5 changed files
with
26 additions
and
17 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Repository } from '../../repository/index.js' | ||
import { updateConfigurationOptions } from './option.js' | ||
|
||
export const updateConfiguration = (repository: Repository) => { | ||
updateConfigurationOptions(repository) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ServerOptionsModel } from '@sonolus/express' | ||
import { Repository } from '../../repository/index.js' | ||
|
||
export const configurationOptions = { | ||
spoilers: { | ||
name: {}, | ||
required: false, | ||
type: 'toggle', | ||
def: false, | ||
}, | ||
} satisfies ServerOptionsModel | ||
|
||
export const updateConfigurationOptions = (repository: Repository) => { | ||
configurationOptions.spoilers.name = repository.commonTexts.spoilerContent | ||
} |
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