-
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
b06abb0
commit da4923c
Showing
8 changed files
with
3,733 additions
and
1,481 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
Large diffs are not rendered by default.
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
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,38 @@ | ||
import { serverQueryContent } from '#content/server' | ||
|
||
export default defineEventHandler(async (event) => { | ||
|
||
const path = "/seminars/" + getRouterParam(event, 'slug') | ||
console.log('path', path) | ||
const doc = await serverQueryContent(event).where({ _path: path }).findOne(); | ||
console.log('doc', doc) | ||
const feedString = '' | ||
event.res.setHeader('content-type', 'text/plain') | ||
|
||
const response = ` | ||
The CINI National Lab on Data Science is pleased to announce the second seminar in the series Tales on Data Science and Big Data. | ||
******************************************* | ||
Date: ${convertDate(doc.date)} | ||
Time: ${doc.time} CET | ||
Website: https://seminars.sesar.di.unimi.it/ | ||
Title: ${convertAscii(doc.title)} | ||
Speakers: ${convertAscii(doc.people[0].name)} (${convertAscii(doc.people[0].affiliation)}) | ||
Abstract: ${doc.body.children[1].children[0].value ?? ''} | ||
Track: Academic | ||
Link: ${doc.location} | ||
******************************************* | ||
The seminars Tales on Data Science and Big Data present and discuss the most recent challenges, emerging trends, and theoretical and practical research and development in the field of Data Science and Big Data. Seminars will cover basic and applied research, as well as industrial activities, pertaining to data, from data governance to data processing and analysis. Seminars will also cover research and development in related domains where data and data science technologies are key, such as distributed systems and architectures, cloud-edge continuum, high-performance computing, blockchain, statistics, security and privacy, assurance and certification. | ||
The seminars are structured in three main tracks: academic, featuring renowned Italian and international scientists; industry, featuring speakers from industrial domains; and young, featuring researchers in early-stage careers. | ||
The research seminars target the Italian and international research community at all levels, from PhD students to professors and researchers in both academia, industry, and public administration. Seminars are held in English, virtually, tentatively on a two-month basis. | ||
` | ||
event.res.end(response.trim()) | ||
}) |
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,13 @@ | ||
export default function (str) { | ||
// Replace non-ASCII characters with their closest ASCII equivalents or remove them | ||
return str.replace(/[^\x00-\x7F]/g, function (char) { | ||
const asciiMap = { | ||
'á': 'a\'', 'é': 'e\'', 'í': 'i\'', 'ó': 'o\'', 'ú': 'u\'', 'ñ': 'n', | ||
'Á': 'A\'', 'É': 'E\'', 'Í': 'I\'', 'Ó': 'O\'', 'Ú': 'U\'', 'Ñ': 'N', | ||
'à': 'a\'', 'è': 'e\'', 'ì': 'i\'', 'ò': 'o\'', 'ù': 'u\'', | ||
'À': 'A\'', 'È': 'E\'', 'Ì': 'I\'', 'Ò': 'O\'', 'Ù': 'U\'' | ||
// Add more mappings as needed | ||
}; | ||
return asciiMap[char] || ''; | ||
}); | ||
} |
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,5 @@ | ||
import moment from "moment"; | ||
export default function (date) { | ||
return moment(date, "DD-MM-YYYY").format("DD MMMM YYYY"); | ||
} | ||
|
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