forked from Skript-MC/Swan
-
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.
✨ Introducing forum feed (Skript-MC#127)
- Loading branch information
Showing
7 changed files
with
6,924 additions
and
1,784 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,7 +1,36 @@ | ||
// eslint-disable-next-line import/prefer-default-export | ||
export const skriptReleases = { | ||
releaseAnnouncement: 'Une nouvelle version de Skript vient d\'être publiée ; vous pouvez la télécharger et consulter les changements ci-dessous.', | ||
githubEndpoint: '/repos/SkriptLang/Skript/releases', | ||
dataProvider: 'Données fournies par https://github.com', | ||
timeDifference: 600_000, | ||
}; | ||
|
||
export const forumFeed = { | ||
timeDifference: 600_000, | ||
dataProvider: 'Automatiquement envoyé depuis Skript-MC', | ||
baseAxiosParams: { | ||
params: { | ||
page: 1, // Fetch the 25 first objects, more is useless | ||
hidden: 0, // Don't show hidden objects | ||
sortBy: 'updated', // Sort by updates, also including new contents | ||
sortDir: 'desc', // Get most recent updates or new contents | ||
}, | ||
auth: { | ||
username: process.env.SKRIPTMC_FORUM_TOKEN, | ||
password: null, | ||
}, | ||
}, | ||
endpoints: { | ||
files: { | ||
files: 'downloads/files', | ||
categories: 'downloads/categories', | ||
comments: 'downloads/comments', | ||
reviews: 'downloads/reviews', | ||
}, | ||
forums: { | ||
forums: 'forums/forums', | ||
posts: 'forums/posts', | ||
topics: 'forums/topics', | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.