Skip to content

Conversation

@jeuneribaru
Copy link

Description

Acknowledgements

Features

UTC (Université de Technologie de Compiègne) is a french engineering school of which I am part. Students are using the moodle platform to study, so this presence allow them to show their activity on the website.

It has a default activity, a homepage activity and an activity for every course page.

Screenshots

image_2026-01-10_225206699 image_2026-01-10_225513217

Comment on lines +4 to +5
clientId: '1459651066508345394'
})

Check failure

Code scanning / ESLint

Require or disallow trailing commas Error

Missing trailing comma.
Comment on lines +14 to +15
startTimestamp
}

Check failure

Code scanning / ESLint

Require or disallow trailing commas Error

Missing trailing comma.
startTimestamp
}

const path = document.location.pathname;

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.
const path = document.location.pathname;

if (path.includes('/course/view.php')) {
const courseTitle = document.querySelector('h1')?.textContent || 'Un cours';

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.

if (path.includes('/course/view.php')) {
const courseTitle = document.querySelector('h1')?.textContent || 'Un cours';
presenceData.details = courseTitle;

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.
} else if (path === '/' || path.includes('/my/')) {
presenceData.details = 'Sur l\'accueil';
presenceData.state = 'Choisit son prochain cours';
} else {

Check failure

Code scanning / ESLint

Enforce consistent brace style for blocks Error

Closing curly brace appears on the same line as the subsequent block.
presenceData.details = 'Sur l\'accueil';
presenceData.state = 'Choisit son prochain cours';
} else {
presenceData.details = 'Navigue sur Moodle';

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.
presenceData.state = 'Choisit son prochain cours';
} else {
presenceData.details = 'Navigue sur Moodle';
presenceData.state = 'UTC - Compiègne';

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.
presenceData.state = 'UTC - Compiègne';
}

presence.setActivity(presenceData);

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.
}

presence.setActivity(presenceData);
});

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.
Updated logo and thumbnail URLs in metadata.json

Signed-off-by: Julien PONS <[email protected]>
"description": {
"en": "Affiche l'activité sur le Moodle de l'UTC"
},
"url": "moodle.utc.fr",

Check failure

Code scanning / PMD

Validates that activity URLs have valid DNS records Error

DNS check failed for URL "moodle.utc.fr": Domain exists but has no A or AAAA records
"url": "moodle.utc.fr",
"regExp": "moodle\\.utc\\.fr",
"version": "1.0.0",
"logo": "https://i.imgur.com/oMApXis.png",

Check failure

Code scanning / PMD

Makes sure all images (logo and URLs) are exactly 512x512 pixels Error

Image URL dimensions must be exactly 512x512 pixels, got 802x791 for URL: https://i.imgur.com/oMApXis.png
presence.on('UpdateData', async () => {
const presenceData: PresenceData = {
type: ActivityType.Watching,
largeImageKey: 'https://i.imgur.com/oMApXis.png',

Check failure

Code scanning / PMD

Makes sure all images (logo and URLs) are exactly 512x512 pixels Error

Image URL dimensions must be exactly 512x512 pixels, got 802x791 for URL: https://i.imgur.com/oMApXis.png
@jeuneribaru
Copy link
Author

I just updated the images to be sure there's no problem.

@theusaf theusaf changed the title feat(Moodle UTC): add presence for Moodle UTC feat(Moodle UTC): add activity Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants