Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: trigger #2570

Merged
merged 14 commits into from
Oct 30, 2024
4 changes: 4 additions & 0 deletions icons/folder-trigger-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/trigger-folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions icons/trigger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
152 changes: 16 additions & 136 deletions src/core/icons/fileIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const fileIcons: FileIcons = {
{ name: 'css', fileExtensions: ['css'] },
{ name: 'sass', fileExtensions: ['scss', 'sass'] },
{ name: 'less', fileExtensions: ['less'] },
{ name: 'just', fileNames: ['justfile', '.justfile'] },
{
name: 'json',
fileExtensions: [
Expand Down Expand Up @@ -160,21 +159,6 @@ export const fileIcons: FileIcons = {
{ name: 'javascript', fileExtensions: ['esx', 'mjs'] },
{ name: 'react', fileExtensions: ['jsx'] },
{ name: 'react_ts', fileExtensions: ['tsx'] },
{
name: 'rocket',
fileNames: [
'.release-it.json',
'.release-it.ts',
'.release-it.js',
'.release-it.cjs',
'.release-it.yaml',
'.release-it.yml',
'.release-it.toml',
'release.toml',
'release-plz.toml',
'.release-plz.toml',
],
},
{
name: 'routing',
fileExtensions: [
Expand Down Expand Up @@ -257,7 +241,6 @@ export const fileIcons: FileIcons = {
'sln.dotsettings',
'sln.dotsettings.user',
'cfg',
'cnf',
],
fileNames: [
'.jshintignore',
Expand All @@ -267,7 +250,6 @@ export const fileIcons: FileIcons = {
'manifest.mf',
'.clang-format',
'.clang-tidy',
'.conf',
],
},
{
Expand Down Expand Up @@ -469,8 +451,6 @@ export const fileIcons: FileIcons = {
'licence.md',
'licence.rst',
'licence.txt',
'unlicense',
'unlicense.txt',
],
},
{
Expand All @@ -487,7 +467,7 @@ export const fileIcons: FileIcons = {
'sha256sum',
'sha256sums',
],
fileNames: ['.htpasswd', 'sha256sums', '.secrets'],
fileNames: ['.htpasswd', 'sha256sums'],
},
{
name: 'font',
Expand Down Expand Up @@ -708,7 +688,12 @@ export const fileIcons: FileIcons = {
{ name: 'kotlin', fileExtensions: ['kt', 'kts'] },
{
name: 'mist',
fileExtensions: ['mist.js', 'mist.ts', 'mist.jsx', 'mist.tsx'],
fileExtensions: [
'mist.js',
'mist.ts',
'mist.jsx',
'mist.tsx',
],
clone: {
base: 'liquid',
color: 'blue-500',
Expand Down Expand Up @@ -792,7 +777,7 @@ export const fileIcons: FileIcons = {
},
{
name: 'nuxt',
fileNames: ['nuxt.config.js', 'nuxt.config.ts', '.nuxtignore', '.nuxtrc'],
fileNames: ['nuxt.config.js', 'nuxt.config.ts', '.nuxtignore'],
},
{
name: 'harmonix',
Expand Down Expand Up @@ -927,15 +912,6 @@ export const fileIcons: FileIcons = {
fileExtensions: ['resolver.ts', 'resolver.js'],
enabledFor: [IconPack.Angular, IconPack.Ngrx],
},
{
name: 'angular-interceptor',
clone: {
base: 'angular',
color: 'orange-500',
},
fileExtensions: ['interceptor.ts', 'interceptor.js'],
enabledFor: [IconPack.Angular, IconPack.Ngrx],
},
{ name: 'puppet', fileExtensions: ['pp'] },
{ name: 'elixir', fileExtensions: ['ex', 'exs', 'eex', 'leex', 'heex'] },
{ name: 'livescript', fileExtensions: ['ls'] },
Expand All @@ -949,7 +925,7 @@ export const fileIcons: FileIcons = {
{ name: 'reason', fileExtensions: ['re', 'rei'] },
{ name: 'bucklescript', fileExtensions: ['cmj'] },
{ name: 'merlin', fileExtensions: ['merlin'] },
{ name: 'verilog', fileExtensions: ['vhd', 'sv', 'svh', 'vhdl'] },
{ name: 'verilog', fileExtensions: ['vhd', 'sv', 'svh'] },
{ name: 'mathematica', fileExtensions: ['nb'] },
{ name: 'wolframlanguage', fileExtensions: ['wl', 'wls'] },
{ name: 'nunjucks', fileExtensions: ['njk', 'nunjucks'] },
Expand All @@ -969,8 +945,10 @@ export const fileIcons: FileIcons = {
light: true,
},
{
name: 'liara',
fileNames: ['liara.json', '.liaraignore'],
name: 'trigger',
patterns: {
'trigger.config': FileNamePattern.Ecmascript,
}
},
{
name: 'verdaccio',
Expand All @@ -996,19 +974,6 @@ export const fileIcons: FileIcons = {
],
light: true,
},
{
name: 'remark',
fileNames: [
'.remarkrc',
'.remarkrc.cjs',
'.remarkrc.js',
'.remarkrc.json',
'.remarkrc.mjs',
'.remarkrc.yaml',
'.remarkrc.yml',
'.remarkignore',
],
},
{
name: 'remix',
fileNames: ['remix.config.js', 'remix.config.ts'],
Expand Down Expand Up @@ -1180,7 +1145,6 @@ export const fileIcons: FileIcons = {
'.env.staging.local',
'.env.test.local',
'.env.uat',
'.vars',
],
},
{
Expand Down Expand Up @@ -1277,15 +1241,7 @@ export const fileIcons: FileIcons = {
},
{ name: 'appveyor', fileNames: ['.appveyor.yml', 'appveyor.yml'] },
{ name: 'travis', fileNames: ['.travis.yml'] },
{
name: 'codecov',
fileNames: [
'.codecov.yml',
'codecov.yml',
'.codecov.yaml',
'codecov.yaml',
],
},
{ name: 'codecov', fileNames: ['.codecov.yml', 'codecov.yml'] },
{
name: 'sonarcloud',
fileNames: [
Expand Down Expand Up @@ -1598,7 +1554,7 @@ export const fileIcons: FileIcons = {
fileNames: ['makefile', 'gnumakefile', 'kbuild'],
},
{ name: 'foxpro', fileExtensions: ['fxp', 'prg'] },
{ name: 'i18n', fileExtensions: ['pot', 'po', 'mo', 'lang', 'xlf'] },
{ name: 'i18n', fileExtensions: ['pot', 'po', 'mo', 'lang'] },
{ name: 'webassembly', fileExtensions: ['wat', 'wasm'] },
{
name: 'semantic-release',
Expand Down Expand Up @@ -2013,11 +1969,6 @@ export const fileIcons: FileIcons = {
{ name: 'replit', fileNames: ['.replit'] },
{ name: 'rescript', fileExtensions: ['res'] },
{ name: 'rescript-interface', fileExtensions: ['resi'] },
{
name: 'duc',
fileNames: ['duc.fbs'],
fileExtensions: ['duc'],
},
{
name: 'snowpack',
fileNames: [
Expand Down Expand Up @@ -2466,14 +2417,6 @@ export const fileIcons: FileIcons = {
name: 'abap',
fileExtensions: ['abap', 'acds', 'asddls'],
},
{
name: 'drizzle',
fileNames: [
'drizzle.config.ts',
'drizzle.config.js',
'drizzle.config.json',
],
},
{ name: 'lottie', fileExtensions: ['lottie'] },
{
name: 'puppeteer',
Expand Down Expand Up @@ -2508,14 +2451,7 @@ export const fileIcons: FileIcons = {
},
{
name: 'container',
clone: {
base: '3d',
color: '#00b0ff',
},
fileNames: [
'.devcontainer/devcontainer.json',
'.devcontainer/devcontainer-lock.json',
],
fileNames: ['.devcontainer/devcontainer.json'],
},
{
name: 'kcl',
Expand All @@ -2538,61 +2474,5 @@ export const fileIcons: FileIcons = {
name: 'grafana-alloy',
fileExtensions: ['alloy'],
},
{
name: 'clangd',
fileNames: ['.clangd'],
},
{
name: 'markdownlint',
fileNames: [
'.markdownlint.json',
'.markdownlint.jsonc',
'.markdownlint.yaml',
'.markdownlint.yml',
'.markdownlint-cli2.jsonc',
'.markdownlint-cli2.yaml',
'.markdownlint-cli2.cjs',
'.markdownlint-cli2.mjs',
'.markdownlintignore',
],
},
{
name: 'tsil',
fileExtensions: ['ц'],
},
{
name: 'deepsource',
fileNames: ['.deepsource.toml'],
},
{
name: 'tape',
fileExtensions: ['tape'],
clone: { base: 'video', color: 'purple-300' },
},
{
name: 'hurl',
fileExtensions: ['hurl'],
},
{
name: 'cds',
fileExtensions: ['cds'],
},
{
name: 'slint',
fileExtensions: ['slint', '60'],
},
{
name: 'jsr',
fileNames: ['jsr.json', 'jsr.jsonc'],
light: true,
},
{
name: 'coderabbit-ai',
fileNames: ['.coderabbit.yml', '.coderabbit.yaml'],
},
{
name: 'gemini-ai',
fileNames: ['.aiexclude'],
},
]),
};
6 changes: 5 additions & 1 deletion src/core/icons/folderIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export const folderIcons: FolderTheme[] = [
},
{
name: 'folder-hook',
folderNames: ['hook', 'hooks', 'trigger', 'triggers'],
okineadev marked this conversation as resolved.
Show resolved Hide resolved
folderNames: ['hook', 'hooks', 'triggers'],
},
{ name: 'folder-job', folderNames: ['job', 'jobs'] },
{
Expand Down Expand Up @@ -835,6 +835,10 @@ export const folderIcons: FolderTheme[] = [
name: 'folder-vercel',
folderNames: ['vercel', 'now'],
},
{
name: 'folder-trigger',
folderNames: ['trigger'],
},
{
name: 'folder-cypress',
folderNames: ['cypress'],
Expand Down