linux dots pt 2

main
gallant 10 months ago
parent 6350e64c3a
commit b31bc5a4a1

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Philipp Schaffrath
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,17 @@
PREFIX = /usr
DESTDIR ?=
INSTALL_DIR ?= $(DESTDIR)$(PREFIX)/share/themes/Everblush-gtk
all:
mkdir -p gtk-3.0
sass src/gtk-3.0/gtk.scss gtk-3.0/gtk.css
install:
@install -v -d "$(INSTALL_DIR)"
@install -m 0644 -v index.theme "$(INSTALL_DIR)"
@cp -rv assets gtk-3.0 "$(INSTALL_DIR)"
uninstall:
@rm -vrf "$(INSTALL_DIR)"
.PHONY: all install uninstall

@ -0,0 +1,18 @@
## [Everblush (uwu)](https://github.com/mangeshrex/uwu.vim) gtk3 theme made with [Phocus-Gtk](https://github.com/phocus/gtk)
# Preview
<p align="center">
<img src="https://github.com/Mangeshrex/Everblush-gtk/blob/main/assets/Everblush-gtk.png?raw=true">
</p>
# Installation
```sh
git clone https://github.com/mangeshrex/Everblush-gtk
npm install -g scss
sudo make install
```
# Setup
- ```gtk-theme-name=Everblush-gtk```
- Add this in your `~/.config/gtk-3.0/settings.ini`

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 KiB

@ -0,0 +1,748 @@
@define-color borders #1b2224;
*:selected {
color: #dadada;
background-color: #363d3f;
}
@define-color borders #22292b;
window,
dialog,
messagedialog {
background: #181f21;
color: #dadada;
}
dialog > box {
padding: 10px;
}
messagedialog box {
padding: 5px;
}
.background {
background: #181f21;
}
headerbar {
background: #22292b;
padding: 6px;
}
headerbar box.horizontal.right > button.titlebutton:last-child {
margin-right: -6px;
}
headerbar box.horizontal.left > button.titlebutton:first-child {
margin-left: -6px;
}
headerbar button.titlebutton:not(.appmenu) {
background: transparent;
margin: -6px 0;
padding: 15px 10px;
border-radius: 0;
}
headerbar button.titlebutton:not(.appmenu):nth-last-child(-n+2) {
margin-left: -6px;
}
headerbar button.titlebutton:not(.appmenu).minimize {
color: #8ccf7e;
}
headerbar button.titlebutton:not(.appmenu).minimize:hover {
background-color: #e06e6e;
}
headerbar button.titlebutton:not(.appmenu).maximize {
color: #67cbe7;
}
headerbar button.titlebutton:not(.appmenu).maximize:hover {
background-color: #67cbe7;
}
headerbar button.titlebutton:not(.appmenu).close {
color: #e06e6e;
}
headerbar button.titlebutton:not(.appmenu).close:hover {
background-color: #e06e6e;
}
headerbar button.titlebutton:not(.appmenu):hover {
color: rgba(0, 0, 0, 0.5);
}
headerbar button.titlebutton.appmenu:not(:active):not(:checked) {
background: transparent;
}
entry {
transition: all 100ms ease-in-out;
background: rgba(24, 31, 33, 1);
border: 2px solid transparent;
padding: 6px;
border-radius: 0;
}
entry:focus {
border-color: #b3b9b8;
background: rgba(255, 255, 255, 0.1);
}
entry:disabled {
opacity: 0.3;
}
entry image.left {
margin-right: 8px;
}
entry image.right {
margin-left: 8px;
}
entry selection {
background: #b185db;
color: #1b2224;
}
button {
transition: background-color 100ms ease-in;
background: rgba(24, 31, 33, 1);
padding: 8px;
}
button:hover:not(:active) {
background: rgba(54, 61, 63, 1);
}
button:disabled {
opacity: 0.3;
}
button:checked, button.suggested-action {
background: #8ad8ef;
color: white;
}
button:checked:hover:not(:active), button.suggested-action:hover:not(:active) {
background: #5db7cb;
}
button.destructive-action {
background: #e06e6e;
color: white;
}
button.destructive-action:hover:not(:active) {
background: #ef7d7d;
}
button.circular {
border-radius: 100%;
padding: 8px;
}
button.flat {
background: transparent;
}
button.flat:hover {
color: rgba(255, 255, 255, 0.7);
}
button.flat:checked {
color: rgba(255, 255, 255, 0.8);
}
combobox box entry {
border-radius: 0;
}
combobox button.combo cellview {
margin: -2px;
}
combobox button.combo arrow {
margin: -6px -8px;
padding: 8px;
min-width: 16px;
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}
placessidebar {
background: #22282b;
}
placessidebar list {
background: transparent;
}
placessidebar list row:hover {
background: rgba(0, 0, 0, 0.2);
}
placessidebar list row .sidebar-icon {
margin: 0 10px;
}
placessidebar.frame, placessidebar .frame {
border: 0;
}
popover {
background: #22292b;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}
popover box modelbutton {
padding: 5px 10px;
margin: 0 -10px;
}
popover box modelbutton:hover {
background: #22292b;
}
popover.menu:first-child {
border-top-left-radius: 0;
}
notebook stack:only-child {
background: #181f21;
}
tabs {
background: #181f21;
}
.top > tabs {
border-bottom: 2px solid #22292b;
}
.top > tabs tab {
border-bottom: 2px solid transparent;
margin-bottom: -2px;
}
.right > tabs {
border-left: 2px solid #22292b;
}
.right > tabs tab {
border-left: 2px solid transparent;
margin-left: -2px;
}
.bottom > tabs {
border-top: 2px solid #22292b;
}
.bottom > tabs tab {
border-top: 2px solid transparent;
margin-top: -2px;
}
.left > tabs {
border-right: 2px solid #22292b;
}
.left > tabs tab {
border-right: 2px solid transparent;
margin-right: -2px;
}
tabs tab {
padding: 8px;
color: #dadada;
transition: color 200ms ease-in-out, border-color 200ms ease-in-out;
}
header tabs tab:checked {
border-color: #8ed8d1;
color: #dadada;
}
header tabs tab:hover:not(:checked) {
border-color: rgba(197, 201, 200, 0.2);
}
header tabs {
background: #22292b;
}
dialog header tabs > tab > label {
padding: 3px;
}
treeview {
-GtkTreeView-expander-size: 13;
-GtkTreeView-grid-line-pattern: "";
-GtkTreeView-tree-line-pattern: "";
-GtkTreeView-horizontal-separator: 8;
-GtkTreeView-vertical-separator: 8;
background: #22292b;
border-left-color: #363d3f;
border-top-color: #363d3f;
}
treeview:hover {
background: #363d3f;
}
treeview:selected {
background: #363d3f;
color: #dadada;
}
treeview.separator {
color: #22292b;
min-height: 2px;
}
treeview header button {
border-bottom: 1px solid #363d3f;
background: #22292b;
}
treeview header button:hover {
background: #363d3f;
}
treeview header button:not(:last-child) {
border-right: 1px solid #363d3f;
}
overshoot.top {
background-image: -gtk-gradient(radial, center top, 0, center top, 0.6, from(rgba(35, 42, 44, 0.2)), to(rgba(35, 42, 44, 0)));
background-size: 100% 60%;
background-repeat: no-repeat;
background-position: center top;
}
overshoot.bottom {
background-image: -gtk-gradient(radial, center bottom, 0, center bottom, 0.6, from(rgba(35, 42, 44, 0.2)), to(rgba(35, 42, 44, 0)));
background-size: 100% 60%;
background-repeat: no-repeat;
background-position: center bottom;
}
overshoot.left {
background-image: -gtk-gradient(radial, left center, 0, left center, 0.6, from(rgba(35, 42, 44, 0.2)), to(rgba(35, 42, 44, 0)));
background-size: 60% 100%;
background-repeat: no-repeat;
background-position: left center;
}
overshoot.right {
background-image: -gtk-gradient(radial, right center, 0, right center, 0.6, from(rgba(35, 42, 44, 0.2)), to(rgba(35, 42, 44, 0)));
background-size: 60% 100%;
background-repeat: no-repeat;
background-position: right center;
}
rubberband, .rubberband {
background-color: rgba(88, 172, 196, 0.1);
border: 1px solid rgba(88, 172, 196, 0.6);
}
progressbar trough {
background: #232a2c;
}
progressbar.horizontal progress {
background-image: linear-gradient(to right, #5dc1dd, #6da4cd);
}
progressbar.vertical progress {
background-image: linear-gradient(to bottom, #5dc1dd, #6da4cd);
}
levelbar trough block {
padding: 3px;
border-radius: 3px;
}
levelbar trough block.filled {
background: #6da4cd;
}
levelbar trough block.empty {
background: #363d3f;
}
levelbar.discrete block:not(:first-child) {
margin-left: 5px;
}
scale {
padding: 8px 0;
}
scale contents trough {
background: #363d3f;
}
scale contents trough slider {
background: #dadada;
padding: 8px;
margin: -5px;
border-radius: 100%;
}
scale marks mark {
padding-top: 5px;
}
scale marks mark indicator {
color: #363d3f;
min-height: 8px;
min-width: 1px;
}
scale.horizontal highlight {
background-image: linear-gradient(to right, #c47fd5, #5dc1dd);
}
scale.vertical highlight {
background-image: linear-gradient(to bottom, #c47fd5, #5dc1dd);
}
scale:disabled {
opacity: 0.3;
}
spinbutton.horizontal entry {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
spinbutton.horizontal button.down {
border-radius: 0;
}
spinbutton.horizontal button.up {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
spinbutton.vertical button.up {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
spinbutton.vertical entry {
border-radius: 0;
}
spinbutton.vertical button.down {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
textview {
transition: background 100ms ease-in-out;
padding: 8px;
}
textview:focus {
background: rgba(255, 255, 255, 0.1);
}
textview:disabled {
opacity: 0.3;
}
toolbar {
background: #181f21;
}
toolbar.osd {
background: rgba(35, 42, 44, 0.5);
padding: 10px;
}
frame.app-notification border {
background: #22292b;
border: 0;
}
frame > border {
border: none;
}
.frame {
border: 1px solid #22292b;
}
scrolledwindow viewport.frame {
border-style: none;
}
list {
background: #22292b;
}
list row {
padding: 6px;
}
list row:hover {
background: #363d3f;
}
checkbutton check {
-gtk-icon-source: -gtk-recolor(url("../assets/symbolic/check.symbolic.png"));
-gtk-icon-transform: scale(0);
color: rgba(189, 195, 194, 1);
border: 2px solid rgba(255, 255, 255, 0.05);
border-radius: 1px;
padding: 1px;
min-width: 12px;
min-height: 12px;
transition: -gtk-icon-transform 200ms;
}
checkbutton check:hover, checkbutton check:checked {
border-color: #ee9cdd;
}
checkbutton check:active, checkbutton check:checked {
background: #ee9cdd;
}
checkbutton check:checked {
-gtk-icon-transform: scale(1);
border-color: #ee9cdd;
}
checkbutton check:checked:active {
background: transparent;
}
checkbutton label {
padding-left: 5px;
}
checkbutton:disabled {
opacity: 0.3;
}
radiobutton radio {
-gtk-icon-source: -gtk-recolor(url("../assets/symbolic/radio.symbolic.png"));
-gtk-icon-transform: scale(0);
color: rgba(255, 255, 255, 0.8);
border: 2px solid rgba(255, 255, 255, 0.05);
border-radius: 100%;
padding: 3px;
min-width: 8px;
min-height: 8px;
transition: -gtk-icon-transform 200ms;
}
radiobutton radio:hover {
border-color: rgba(54, 61, 63, 1);
}
radiobutton radio:active, radiobutton radio:checked {
background: rgba(54, 61, 63, 1);
}
radiobutton radio:checked {
-gtk-icon-transform: scale(1);
border-color: #ee9cdd;
}
radiobutton label {
padding-left: 5px;
}
radiobutton:disabled {
opacity: 0.38;
}
switch {
background: rgba(197, 201, 200, 0.2);
border-radius: 20px;
color: transparent;
min-width: 40px;
border: 5px solid transparent;
background-clip: padding-box;
}
switch slider {
background: #c5c9c8;
transition: background 100ms ease-in-out;
border-radius: 100%;
min-width: 5px;
min-height: 5px;
background-clip: padding-box;
margin: -4px -2px;
}
switch:checked {
background: rgba(177, 133, 219, 0.3);
background-clip: content-box;
}
switch:checked slider {
background: #b185db;
}
switch:disabled {
opacity: 0.3;
}
separator {
background-image: image(rgba(255, 255, 255, 0.05));
background-size: 1px 1px;
background-position: center center;
min-width: 7px;
min-height: 7px;
background-repeat: repeat-x;
margin: -3px 0;
}
separator.vertical, .horizontal > separator {
background-repeat: repeat-y;
margin: 0 -3px;
}
menubar {
background: #1b2224;
padding: 5px;
}
menubar menuitem {
padding: 5px;
}
menubar menuitem:hover {
background: #1b2224;
}
menu {
background: #1b2224;
padding: 10px;
}
menu menuitem {
padding: 8px;
}
menu menuitem:hover {
background: #8ed8d1;
color: #181f21;
}
scrollbar {
-GtkScrollbar-has-backward-stepper: false;
-GtkScrollbar-has-forward-stepper: false;
background: transparent;
}
scrollbar slider {
padding: 3px;
background: rgba(255, 255, 255, 0.05);
}
scrollbar slider:hover {
background: rgba(255, 255, 255, 0.1);
}
scrollbar slider:active {
background: rgba(177, 133, 219, 0.75);
}
scrollbar:hover {
background: rgba(255, 255, 255, 0.05);
}
scrollbar:hover.horizontal slider {
padding: 5px 3px;
}
scrollbar:hover.vertical slider {
padding: 3px 5px;
}
label.dim-label, label:disabled {
opacity: 0.3;
}
calendar {
border: 1px solid #232a2c;
background: #1b2224;
}
calendar.button {
background: #232a2c;
color: rgba(255, 255, 255, 0.5);
}
calendar.button:hover {
color: rgba(255, 255, 255, 0.8);
}
calendar.button:disabled {
color: rgba(255, 255, 255, 0.1);
}
calendar.header {
background: #232a2c;
}
calendar.highlight {
color: rgba(255, 255, 255, 0.2);
}
calendar:selected {
color: white;
background: #bab3e5;
}
calendar:indeterminate {
color: rgba(255, 255, 255, 0.1);
}
actionbar {
background: #1b2224;
border-top: 1px solid #363d3f;
}
iconview {
background: #1b2224;
}
iconview:selected {
color: #363d3f;
background: #bab3e5;
}
@keyframes rotate {
to {
-gtk-icon-transform: rotate(1turn);
}
}
spinner {
-gtk-icon-source: none;
}
spinner:checked {
-gtk-icon-source: -gtk-icontheme("process-working-symbolic");
animation: rotate 1s linear infinite;
}
spinner:disabled {
opacity: 0.3;
}
infobar {
color: rgba(255, 255, 255, 0.8);
}
infobar.info {
background: #5dc1dd;
}
infobar.warning {
background: #e06e6e;
}
infobar.error {
background: ##e06e6e;
}
infobar.question {
background: #363d3f;
}
tooltip {
background: #363d3f;
opacity: 100%;
}
tooltip label {
padding: 2px;
}
@define-color borders #1b2224;
filechooser viewport,
filechooser placessidebar,
filechooser list {
background: none;
}
filechooser placessidebar list row {
margin: 5px;
}
filechooser treeview {
background: none;
}
filechooser treeview header box {
padding: 5px;
}
filechooser treeview:selected {
background: #bab3e5;
}
.pavucontrol-window {
background: #181f21;
}
.pavucontrol-window tabs {
background: #1b2224;
}
.pavucontrol-window tabs tab {
padding: 16px;
}
.pavucontrol-window .show-volume-meters-check-button {
padding: 8px;
}
window.thunar {
background: none;
/* hide separator */
}
window.thunar treeview {
background: none;
}
window.thunar grid *:selected,
window.thunar grid *:active {
background: #363d2f;
border-radius: 3px;
}
window.thunar .sidebar {
background: #131a1c;
padding: 1rem;
}
window.thunar treeview {
padding: 3px;
color: #dadada;
}
window.thunar treeview:selected {
background: #8ad8ef;
color: #181f21;
border-radius: 0.5em;
font-weight: bold;
}
window.thunar .frame {
border: 0;
}
window.thunar toolbar entry {
background: #22292b;
border-radius: 10px;
margin: 2px 2em 2px 1em;
padding: 0px 1rem;
}
window.thunar toolbar entry image {
background-image: image(rgba(54, 61, 63, 1)));
}
window.thunar paned grid {
background: #181f21;
}
window.thunar toolbar {
background: #22292b;
padding: 5px 0;
}
window.thunar toolbar * {
background: none;
}
window.thunar separator {
background-image: image(#131a1c);
background-size: 1px 1px;
background-position: center center;
}
.gimp-internal-dock-1 GtkLabel {
font-size: 12px;
}
@define-color borders #363d3f;
window widget {
background-color: #181f21;
}
/*# sourceMappingURL=gtk.css.map */

File diff suppressed because one or more lines are too long

@ -0,0 +1,12 @@
[Desktop Entry]
Type=X-GNOME-Metatheme
Name=Everblush Phocus gtk
Comment=Port of Everblush colorscheme for gtk with Phocus
Encoding=UTF-8
[X-GNOME-Metatheme]
GtkTheme=Everblush Phocus gtk
MetacityTheme=Everblush
IconTheme=gnome
CursorTheme=DMZ-Black
ButtonLayout=menu:minimize,maximize,close

@ -0,0 +1,189 @@
{
"name": "phisch",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"node_modules/anymatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",
"integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",
"dev": true,
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/binary-extensions": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
"dev": true,
"engines": {
"node": ">=8"
}
},
"node_modules/braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
"dependencies": {
"fill-range": "^7.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/chokidar": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz",
"integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==",
"dev": true,
"dependencies": {
"anymatch": "~3.1.1",
"braces": "~3.0.2",
"glob-parent": "~5.1.0",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.5.0"
},
"engines": {
"node": ">= 8.10.0"
},
"optionalDependencies": {
"fsevents": "~2.3.1"
}
},
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"dev": true,
"dependencies": {
"to-regex-range": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"dependencies": {
"is-glob": "^4.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dev": true,
"dependencies": {
"binary-extensions": "^2.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-glob": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
"integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
"dev": true,
"dependencies": {
"is-extglob": "^2.1.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true,
"engines": {
"node": ">=0.12.0"
}
},
"node_modules/normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/picomatch": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.3.tgz",
"integrity": "sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg==",
"dev": true,
"engines": {
"node": ">=8.6"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/readdirp": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz",
"integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==",
"dev": true,
"dependencies": {
"picomatch": "^2.2.1"
},
"engines": {
"node": ">=8.10.0"
}
},
"node_modules/sass": {
"version": "1.32.12",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.32.12.tgz",
"integrity": "sha512-zmXn03k3hN0KaiVTjohgkg98C3UowhL1/VSGdj4/VAAiMKGQOE80PFPxFP2Kyq0OUskPKcY5lImkhBKEHlypJA==",
"dev": true,
"dependencies": {
"chokidar": ">=3.0.0 <4.0.0"
},
"bin": {
"sass": "sass.js"
},
"engines": {
"node": ">=8.9.0"
}
},
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dev": true,
"dependencies": {
"is-number": "^7.0.0"
},
"engines": {
"node": ">=8.0"
}
}
}
}

@ -0,0 +1,15 @@
The ISC License
Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com)
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

@ -0,0 +1,87 @@
anymatch [![Build Status](https://travis-ci.org/micromatch/anymatch.svg?branch=master)](https://travis-ci.org/micromatch/anymatch) [![Coverage Status](https://img.shields.io/coveralls/micromatch/anymatch.svg?branch=master)](https://coveralls.io/r/micromatch/anymatch?branch=master)
======
Javascript module to match a string against a regular expression, glob, string,
or function that takes the string as an argument and returns a truthy or falsy
value. The matcher can also be an array of any or all of these. Useful for
allowing a very flexible user-defined config to define things like file paths.
__Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__
Usage
-----
```sh
npm install anymatch
```
#### anymatch(matchers, testString, [returnIndex], [options])
* __matchers__: (_Array|String|RegExp|Function_)
String to be directly matched, string with glob patterns, regular expression
test, function that takes the testString as an argument and returns a truthy
value if it should be matched, or an array of any number and mix of these types.
* __testString__: (_String|Array_) The string to test against the matchers. If
passed as an array, the first element of the array will be used as the
`testString` for non-function matchers, while the entire array will be applied
as the arguments for function matchers.
* __options__: (_Object_ [optional]_) Any of the [picomatch](https://github.com/micromatch/picomatch#options) options.
* __returnIndex__: (_Boolean [optional]_) If true, return the array index of
the first matcher that that testString matched, or -1 if no match, instead of a
boolean result.
```js
const anymatch = require('anymatch');
const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ;
anymatch(matchers, 'path/to/file.js'); // true
anymatch(matchers, 'path/anyjs/baz.js'); // true
anymatch(matchers, 'path/to/foo.js'); // true
anymatch(matchers, 'path/to/bar.js'); // true
anymatch(matchers, 'bar.js'); // false
// returnIndex = true
anymatch(matchers, 'foo.js', {returnIndex: true}); // 2
anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1
// any picomatc
// using globs to match directories and their children
anymatch('node_modules', 'node_modules'); // true
anymatch('node_modules', 'node_modules/somelib/index.js'); // false
anymatch('node_modules/**', 'node_modules/somelib/index.js'); // true
anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false
anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true
const matcher = anymatch(matchers);
['foo.js', 'bar.js'].filter(matcher); // [ 'foo.js' ]
anymatch master* โฏ
```
#### anymatch(matchers)
You can also pass in only your matcher(s) to get a curried function that has
already been bound to the provided matching criteria. This can be used as an
`Array#filter` callback.
```js
var matcher = anymatch(matchers);
matcher('path/to/file.js'); // true
matcher('path/anyjs/baz.js', true); // 1
['foo.js', 'bar.js'].filter(matcher); // ['foo.js']
```
Changelog
----------
[See release notes page on GitHub](https://github.com/micromatch/anymatch/releases)
- **v3.0:** Removed `startIndex` and `endIndex` arguments. Node 8.x-only.
- **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information).
- **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch)
for glob pattern matching. Issues with glob pattern matching should be
reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues).
License
-------
[ISC](https://raw.github.com/micromatch/anymatch/master/LICENSE)

@ -0,0 +1,19 @@
type AnymatchFn = (testString: string) => boolean;
type AnymatchPattern = string|RegExp|AnymatchFn;
type AnymatchMatcher = AnymatchPattern|AnymatchPattern[]
type AnymatchTester = {
(testString: string|any[], returnIndex: true): number;
(testString: string|any[]): boolean;
}
type PicomatchOptions = {dot: boolean};
declare const anymatch: {
(matchers: AnymatchMatcher): AnymatchTester;
(matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
(matchers: AnymatchMatcher, testString: string|any[]): boolean;
}
export {AnymatchMatcher as Matcher}
export {AnymatchTester as Tester}
export default anymatch

@ -0,0 +1,104 @@
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const picomatch = require('picomatch');
const normalizePath = require('normalize-path');
/**
* @typedef {(testString: string) => boolean} AnymatchFn
* @typedef {string|RegExp|AnymatchFn} AnymatchPattern
* @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher
*/
const BANG = '!';
const DEFAULT_OPTIONS = {returnIndex: false};
const arrify = (item) => Array.isArray(item) ? item : [item];
/**
* @param {AnymatchPattern} matcher
* @param {object} options
* @returns {AnymatchFn}
*/
const createPattern = (matcher, options) => {
if (typeof matcher === 'function') {
return matcher;
}
if (typeof matcher === 'string') {
const glob = picomatch(matcher, options);
return (string) => matcher === string || glob(string);
}
if (matcher instanceof RegExp) {
return (string) => matcher.test(string);
}
return (string) => false;
};
/**
* @param {Array<Function>} patterns
* @param {Array<Function>} negPatterns
* @param {String|Array} args
* @param {Boolean} returnIndex
* @returns {boolean|number}
*/
const matchPatterns = (patterns, negPatterns, args, returnIndex) => {
const isList = Array.isArray(args);
const _path = isList ? args[0] : args;
if (!isList && typeof _path !== 'string') {
throw new TypeError('anymatch: second argument must be a string: got ' +
Object.prototype.toString.call(_path))
}
const path = normalizePath(_path);
for (let index = 0; index < negPatterns.length; index++) {
const nglob = negPatterns[index];
if (nglob(path)) {
return returnIndex ? -1 : false;
}
}
const applied = isList && [path].concat(args.slice(1));
for (let index = 0; index < patterns.length; index++) {
const pattern = patterns[index];
if (isList ? pattern(...applied) : pattern(path)) {
return returnIndex ? index : true;
}
}
return returnIndex ? -1 : false;
};
/**
* @param {AnymatchMatcher} matchers
* @param {Array|string} testString
* @param {object} options
* @returns {boolean|number|Function}
*/
const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => {
if (matchers == null) {
throw new TypeError('anymatch: specify first argument');
}
const opts = typeof options === 'boolean' ? {returnIndex: options} : options;
const returnIndex = opts.returnIndex || false;
// Early cache for matchers.
const mtchers = arrify(matchers);
const negatedGlobs = mtchers
.filter(item => typeof item === 'string' && item.charAt(0) === BANG)
.map(item => item.slice(1))
.map(item => picomatch(item, opts));
const patterns = mtchers
.filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG))
.map(matcher => createPattern(matcher, opts));
if (testString == null) {
return (testString, ri = false) => {
const returnIndex = typeof ri === 'boolean' ? ri : false;
return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
}
}
return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
};
anymatch.default = anymatch;
module.exports = anymatch;

@ -0,0 +1,48 @@
{
"name": "anymatch",
"version": "3.1.2",
"description": "Matches strings against configurable strings, globs, regular expressions, and/or functions",
"files": [
"index.js",
"index.d.ts"
],
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
},
"author": {
"name": "Elan Shanker",
"url": "https://github.com/es128"
},
"license": "ISC",
"homepage": "https://github.com/micromatch/anymatch",
"repository": {
"type": "git",
"url": "https://github.com/micromatch/anymatch"
},
"keywords": [
"match",
"any",
"string",
"file",
"fs",
"list",
"glob",
"regex",
"regexp",
"regular",
"expression",
"function"
],
"scripts": {
"test": "nyc mocha",
"mocha": "mocha"
},
"devDependencies": {
"mocha": "^6.1.3",
"nyc": "^14.0.0"
},
"engines": {
"node": ">= 8"
}
}

@ -0,0 +1,260 @@
[
"3dm",
"3ds",
"3g2",
"3gp",
"7z",
"a",
"aac",
"adp",
"ai",
"aif",
"aiff",
"alz",
"ape",
"apk",
"appimage",
"ar",
"arj",
"asf",
"au",
"avi",
"bak",
"baml",
"bh",
"bin",
"bk",
"bmp",
"btif",
"bz2",
"bzip2",
"cab",
"caf",
"cgm",
"class",
"cmx",
"cpio",
"cr2",
"cur",
"dat",
"dcm",
"deb",
"dex",
"djvu",
"dll",
"dmg",
"dng",
"doc",
"docm",
"docx",
"dot",
"dotm",
"dra",
"DS_Store",
"dsk",
"dts",
"dtshd",
"dvb",
"dwg",
"dxf",
"ecelp4800",
"ecelp7470",
"ecelp9600",
"egg",
"eol",
"eot",
"epub",
"exe",
"f4v",
"fbs",
"fh",
"fla",
"flac",
"flatpak",
"fli",
"flv",
"fpx",
"fst",
"fvt",
"g3",
"gh",
"gif",
"graffle",
"gz",
"gzip",
"h261",
"h263",
"h264",
"icns",
"ico",
"ief",
"img",
"ipa",
"iso",
"jar",
"jpeg",
"jpg",
"jpgv",
"jpm",
"jxr",
"key",
"ktx",
"lha",
"lib",
"lvp",
"lz",
"lzh",
"lzma",
"lzo",
"m3u",
"m4a",
"m4v",
"mar",
"mdi",
"mht",
"mid",
"midi",
"mj2",
"mka",
"mkv",
"mmr",
"mng",
"mobi",
"mov",
"movie",
"mp3",
"mp4",
"mp4a",
"mpeg",
"mpg",
"mpga",
"mxu",
"nef",
"npx",
"numbers",
"nupkg",
"o",
"odp",
"ods",
"odt",
"oga",
"ogg",
"ogv",
"otf",
"ott",
"pages",
"pbm",
"pcx",
"pdb",
"pdf",
"pea",
"pgm",
"pic",
"png",
"pnm",
"pot",
"potm",
"potx",
"ppa",
"ppam",
"ppm",
"pps",
"ppsm",
"ppsx",
"ppt",
"pptm",
"pptx",
"psd",
"pya",
"pyc",
"pyo",
"pyv",
"qt",
"rar",
"ras",
"raw",
"resources",
"rgb",
"rip",
"rlc",
"rmf",
"rmvb",
"rpm",
"rtf",
"rz",
"s3m",
"s7z",
"scpt",
"sgi",
"shar",
"snap",
"sil",
"sketch",
"slk",
"smv",
"snk",
"so",
"stl",
"suo",
"sub",
"swf",
"tar",
"tbz",
"tbz2",
"tga",
"tgz",
"thmx",
"tif",
"tiff",
"tlz",
"ttc",
"ttf",
"txz",
"udf",
"uvh",
"uvi",
"uvm",
"uvp",
"uvs",
"uvu",
"viv",
"vob",
"war",
"wav",
"wax",
"wbmp",
"wdp",
"weba",
"webm",
"webp",
"whl",
"wim",
"wm",
"wma",
"wmv",
"wmx",
"woff",
"woff2",
"wrm",
"wvx",
"xbm",
"xif",
"xla",