From 0e11d837ef1eec9627b69e1b06e56809b65184f9 Mon Sep 17 00:00:00 2001 From: Gunnar Velle Date: Wed, 9 Oct 2024 10:35:14 +0200 Subject: [PATCH 1/2] Copy logo from primitives --- src/static/pictures/ndla-logo.svg | 10 +++ src/static/pictures/ndla_header_bg.jpg | Bin 21173 -> 0 bytes src/utils/htmlTemplates.js | 89 ++++++++++++++----------- 3 files changed, 61 insertions(+), 38 deletions(-) create mode 100644 src/static/pictures/ndla-logo.svg delete mode 100644 src/static/pictures/ndla_header_bg.jpg diff --git a/src/static/pictures/ndla-logo.svg b/src/static/pictures/ndla-logo.svg new file mode 100644 index 0000000..6da3086 --- /dev/null +++ b/src/static/pictures/ndla-logo.svg @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/src/static/pictures/ndla_header_bg.jpg b/src/static/pictures/ndla_header_bg.jpg deleted file mode 100644 index 38e72484f74d6cf702c58595881c1af802c7fe77..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21173 zcmeIabwE^K^EiBW>244OcIi-BQef#&kdRPBmK0E=yOt7Altu&;5J5mxEF=V00RaI; z8tLxtW$V4@r=H*Ud7d}^eZL2|ckbLdb7tnuIcH8>h(p9lfbqPpfi3`nKmdL42Ov%X zu{uF+*8#xD2oM7RfD#~qFasnY1Oa~lh%^8NVL13F6YmC){=x%*8F&XYoID+z;U=!0 zexAOro?dXROY(3LBYQ_Tk7I-=0FV?w{^nEw{WCWNTR`$B3B2G~gT>bpKlqDrS zd?oCU`ARr?-jWQm_mY&Bkdg#c5J6t{jyIkC;113%ZXT+98z0epa5pDaJ}WsRDI+f} zXID4<5Fh7DAs5XZLvA`MIq@OX;3`4NLAShaIs4hegKoKd_$mjf^8I4248q4~Nj~^5 z62F_Oe3y+(;98zO&Tu)2vl3E#U~V6$>&j-@x_{&apH%t&5Hc_@P$E!P!qdk^Qd&t# zNm5EiQbtA`q!9NF_VBY068G@s|C58Zv#+C%o0p%Prw9C)qrHQtzn>}}Sn_X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)wal0QV!h;Lw zdzVkgT0J2zl4YAtk&W$VU>L-e#`~nwHnQZ|qE}rzmQx+C1CANrgVDz_w9EAt62Ne6 z)HJWVOh1_Mnho9lnd+nW0bF`Q4l+*j1^)Mpf1n8_CnJ5u=y<{ZdT=l0=ye`9rSL=M z1W#PrSEtvnU%zSSU=U0`M6K;};Lt7LZs*~IJt6%6?O%6%nc_*8nB10%*F->VVD|mu>ajglwMQwzs5=Nq>%eE6bRuNsb z?^4%B4z4K%ziyq;nwq&Z*K&E^SqL~(SM`&KaNR6!YrM-{!n@Cr6A}~~qI-HMV^x ` +const bodyInfo = (isAdvanced) => `

APIs from NDLA
- +

Open Educational Resources For Secondary Schools

@@ -17,10 +17,10 @@

NDLA provides a rich set of endpoints to extract articles and specific components of our content. \\ - All content is made available based on content licenses and the specific licence is included in metadata and can be used to filter the result. + All content is made available based on content licenses and the specific licence is included in metadata and can be used to filter the result.

- In addition, we provide a search-api for all our content based on Elasticsearch simple search language. + In addition, we provide a search-api for all our content based on Elasticsearch simple search language.

This is a beta level service, with no liability for the quality of the content and what the content is used for. @@ -28,7 +28,7 @@

`; - export const htmlTemplate = (isAdvanced, body) => +export const htmlTemplate = (isAdvanced, body) => `\n @@ -43,39 +43,48 @@ `; - export const apiDocsUri = (apiObj) => { - for (const uri of apiObj.paths) { - if (config.apiDocPath.test(uri)) { - return uri; - } - } - return undefined; - }; +export const apiDocsUri = (apiObj) => { + for (const uri of apiObj.paths) { + if (config.apiDocPath.test(uri)) { + return uri; + } + } + return undefined; +}; - export const apiListTemplate = (path, routes) => { - let filtered = routes.sort((a, b) => a.name.localeCompare(b.name)); - if (path === '/') { - filtered = routes.filter(route => config.whitelist.includes(route.name)); - } +export const apiListTemplate = (path, routes) => { + let filtered = routes.sort((a, b) => a.name.localeCompare(b.name)); + if (path === '/') { + filtered = routes.filter((route) => config.whitelist.includes(route.name)); + } - const listItems = filtered.map(route => - `
  • ${route.name}
  • ` - ); - const isAdvanced = path !== '/'; - return htmlTemplate(isAdvanced, listItems.join('')); - }; + const listItems = filtered.map( + (route) => + `
  • ${route.name}
  • `, + ); + const isAdvanced = path !== '/'; + return htmlTemplate(isAdvanced, listItems.join('')); +}; - export const htmlErrorTemplate = ({ status, message, description, stacktrace }) => { - const statusMsg = httpStaus[status]; - return htmlTemplate('/', ` +export const htmlErrorTemplate = ({ + status, + message, + description, + stacktrace, +}) => { + const statusMsg = httpStaus[status]; + return htmlTemplate( + '/', + `

    ${status} ${statusMsg}

    Message: ${message}
    Description: ${description}
    ${stacktrace}
    - `); - }; + `, + ); +}; - const documentHead = isAdvanced => ` +const documentHead = (isAdvanced) => ` Swagger UI @@ -86,19 +95,23 @@ - - ${!isAdvanced ? ` + + ${ + !isAdvanced + ? ` ` : ''} + ` + : '' + } `; - const bodyLogic = personalClientId => ` +const bodyLogic = (personalClientId) => ` `; - const documentBody = (personalClientId, isAdvanced) => ` +const documentBody = (personalClientId, isAdvanced) => ` ${bodyInfo(isAdvanced)}
    @@ -142,7 +155,7 @@ `; - export const index = (personalClientId, isAdvanced) => ` +export const index = (personalClientId, isAdvanced) => ` ${documentHead(isAdvanced)} From 97fd772c814bcacb1decb9520acf32fe9e692649 Mon Sep 17 00:00:00 2001 From: Gunnar Velle Date: Fri, 11 Oct 2024 11:36:11 +0200 Subject: [PATCH 2/2] Ignore linting for now --- src/utils/htmlTemplates.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/htmlTemplates.js b/src/utils/htmlTemplates.js index 9a3e7a5..ad8aced 100644 --- a/src/utils/htmlTemplates.js +++ b/src/utils/htmlTemplates.js @@ -1,6 +1,9 @@ import httpStaus from 'http-status'; import config from '../config'; +/* eslint arrow-body-style: 0 */ +/* eslint arrow-parens: 0 */ + const bodyInfo = (isAdvanced) => `