summaryrefslogtreecommitdiffstats
path: root/src/components/Widgets/Sharing
Commit message (Collapse)AuthorAgeFilesLines
* refactor: use formatjs swc pluginArmand Philippot2022-03-231-1/+11
| | | | | I'm not able to configure SWC plugins in Next.js so to make it works, all translation must have an id.
* refactor(widgets): move sharing websites from config to sharing widgetArmand Philippot2022-01-291-3/+88
| | | | | | I only use these websites inside the sharing widget so it makes more sense to gather them. In addition, I can translate the website name if needed.
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-6/+36
|
* feat: implement dark modeArmand Philippot2022-01-171-0/+10
|
* refactor(styles): rename shadow and border variablesArmand Philippot2022-01-161-13/+0
|
* chore: add a spinner when content is loadingArmand Philippot2022-01-161-1/+1
|
* chore: update sidebar and widgets stylesArmand Philippot2022-01-152-0/+309
I'm now using a widget that can be expanded/collapsed. It also allows me to handle more effectively widgets overflow and to avoid styles repetitions. However, with stylelint rule "no-descending-specificity", I'm not sure if the stylesheets are really logical... Maybe I should deactivate this rule.
olor: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
(function (Prism) {
  var variable =
    /\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;

  Prism.languages.nginx = {
    comment: {
      pattern: /(^|[\s{};])#.*/,
      lookbehind: true,
      greedy: true,
    },
    directive: {
      pattern:
        /(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,
      lookbehind: true,
      greedy: true,
      inside: {
        string: {
          pattern:
            /((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,
          lookbehind: true,
          greedy: true,
          inside: {
            escape: {
              pattern: /\\["'\\nrt]/,
              alias: 'entity',
            },
            variable: variable,
          },
        },
        comment: {
          pattern: /(\s)#.*/,
          lookbehind: true,
          greedy: true,
        },
        keyword: {
          pattern: /^\S+/,
          greedy: true,
        },

        // other patterns

        boolean: {
          pattern: /(\s)(?:off|on)(?!\S)/,
          lookbehind: true,
        },
        number: {
          pattern: /(\s)\d+[a-z]*(?!\S)/i,
          lookbehind: true,
        },
        variable: variable,
      },
    },
    punctuation: /[{};]/,
  };
})(Prism);