mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
Merge pull request #387 from cdvv7788/color-config-issue
This commit is contained in:
commit
afb025bdca
1 changed files with 5 additions and 2 deletions
|
@ -12,6 +12,7 @@ from hashlib import md5
|
||||||
from typing import Optional, Type, Tuple, Dict
|
from typing import Optional, Type, Tuple, Dict
|
||||||
from subprocess import run, PIPE, DEVNULL
|
from subprocess import run, PIPE, DEVNULL
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
from collections import defaultdict
|
||||||
|
|
||||||
from .stubs import (
|
from .stubs import (
|
||||||
SimpleConfigValueDict,
|
SimpleConfigValueDict,
|
||||||
|
@ -141,15 +142,17 @@ DEFAULT_CLI_COLORS = {
|
||||||
}
|
}
|
||||||
ANSI = {k: '' for k in DEFAULT_CLI_COLORS.keys()}
|
ANSI = {k: '' for k in DEFAULT_CLI_COLORS.keys()}
|
||||||
|
|
||||||
COLOR_DICT = {
|
COLOR_DICT = defaultdict(lambda: [(0, 0, 0), (0, 0, 0)], {
|
||||||
'00': [(0, 0, 0), (0, 0, 0)],
|
'00': [(0, 0, 0), (0, 0, 0)],
|
||||||
|
'30': [(0, 0, 0), (0, 0, 0)],
|
||||||
'31': [(255, 0, 0), (128, 0, 0)],
|
'31': [(255, 0, 0), (128, 0, 0)],
|
||||||
'32': [(0, 200, 0), (0, 128, 0)],
|
'32': [(0, 200, 0), (0, 128, 0)],
|
||||||
'33': [(255, 255, 0), (128, 128, 0)],
|
'33': [(255, 255, 0), (128, 128, 0)],
|
||||||
'34': [(0, 0, 255), (0, 0, 128)],
|
'34': [(0, 0, 255), (0, 0, 128)],
|
||||||
'35': [(255, 0, 255), (128, 0, 128)],
|
'35': [(255, 0, 255), (128, 0, 128)],
|
||||||
'36': [(0, 255, 255), (0, 128, 128)],
|
'36': [(0, 255, 255), (0, 128, 128)],
|
||||||
}
|
'37': [(255, 255, 255), (255, 255, 255)],
|
||||||
|
})
|
||||||
|
|
||||||
STATICFILE_EXTENSIONS = {
|
STATICFILE_EXTENSIONS = {
|
||||||
# 99.999% of the time, URLs ending in these extensions are static files
|
# 99.999% of the time, URLs ending in these extensions are static files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue