import { t } from '@lingui/macro'; import { getAllThematics } from '@services/graphql/queries'; import { ThematicPreview } from '@ts/types/taxonomies'; import Link from 'next/link'; import useSWR from 'swr'; import styles from './ThematicsList.module.scss'; const ThematicsList = () => { const { data, error } = useSWR('/api/thematics', getAllThematics); if (error) return
{t`Failed to load.`}
; if (!data) return
{t`Loading...`}
; const sortedThematics = [...data].sort((a, b) => a.title.localeCompare(b.title) ); const thematics = sortedThematics.map((thematic) => { return (
  • {thematic.title}
  • ); }); return (

    {t`Thematics`}

    ); }; export default ThematicsList; c'/> The frontend of my personal website.Armand Philippot
    summaryrefslogtreecommitdiffstats
    path: root/public/prism/prism-aql.min.js
    blob: 397b76ea523425a2e8155bc3f96bf25b42f3058c (plain)
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    
    Prism.languages.aql = {
      comment: /\/\/.*|\/\*[\s\S]*?\*\//,
      property: {
        pattern:
          /([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,
        lookbehind: !0,
        greedy: !0,
      },
      string: { pattern: /(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/, greedy: !0 },
      identifier: { pattern: /([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/, greedy: !0 },
      variable: /@@?\w+/,
      keyword: [
        { pattern: /(\bWITH\s+)COUNT(?=\s+INTO\b)/i, lookbehind: !0 },
        /\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,
        { pattern: /(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i, lookbehind: !0 },
        { pattern: /(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/, lookbehind: !0 },
        { pattern: /\bOPTIONS(?=\s*\{)/i },
      ],
      function: /\b(?!\d)\w+(?=\s*\()/,
      boolean: /\b(?:false|true)\b/i,
      range: { pattern: /\.\./, alias: 'operator' },
      number: [
        /\b0b[01]+/i,
        /\b0x[0-9a-f]+/i,
        /(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i,
      ],
      operator: /\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,
      punctuation: /::|[?.:,;()[\]{}]/,
    };