text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```yaml auth: credentials: - password: '-----BEGIN DSA PRIVATE KEY----- MIIBugIBAAKBgQCEgBNwgF+IbMU8NHUXNIMfJ0ONa91ZI/TphuixnilkZqcuwur2 hMbrqY8Yne+n3eGkuepQlBBKEZSd8xPd6qCvWnCOhBqhkBS7g2dH6jMkUl/opX/t Rw6P00crq2oIMafR4/SzKWVW6RQEzJtPnfV7O3i5miY7jLKMDZTn/DRXRwIVALB2 +o4CRHpCG6IBqlD/2JW5H...
/content/code_sandbox/creds/ssh_key/quantum-dxi-v1000.yml
yaml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
398
```yaml auth: credentials: - password: '-----BEGIN DSA PRIVATE KEY----- MIIBugIBAAKBgQCUw7F/vKJT2Xsq+fIPVxNC/Dyk+dN9DWQT5RO56eIQasd+h6Fm q1qtQrJ/DOe3VjfUrSm7NN5NoIGOrGCSuQFthFmq+9Lpt6WIykB4mau5iE5orbKM xTfyu8LtntoikYKrlMB+UrmKDidvZ+7oWiC14imT+Px/3Q7naj0UmOrSTwIVAO25 Yf3SYNtTYv8yzaV+X9yNr...
/content/code_sandbox/creds/ssh_key/array_networks_vxag.yml
yaml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
522
```yaml auth: credentials: - password: '-----BEGIN RSA PRIVATE KEY----- MIICWAIBAAKBgGdlD7qeGU9f8mdfmLmFemWMnz1tKeeuxKznWFI+6gkaagqjAF10 hIruzXQAik7TEBYZyvw9SvYU6MQFsMeqVHGhcXQ5yaz3G/eqX0RhRDn5T4zoHKZa your_sha256_hash GSZrnBieX2pdjsQ55/AJA/HF3oJWTRysYWi0nmJUmm41eDV8oRxXl2qFAIqCgeBQ ...
/content/code_sandbox/creds/ssh_key/exagrid.yml
yaml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
527
```yaml auth: credentials: - password: '-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQDBEh0OUdoiplc0P+XW8VPu57etz8O9eHbLHkQW27EZBEdXEYxr MOFXi+PkA0ZcNDBRgjSJmHpo5WsPLwj/L3/L5gMYK+yeqsNu48ONbbqzZsFdaBQ+ IL3dPdMDovYo7GFVyXuaWMQ4hgAJEc+kk1hUaGKcLENQf0vEyt01eA/k6QIBIwKB your_sha256_hash ...
/content/code_sandbox/creds/ssh_key/ceragon-fibeair.yml
yaml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
555
```yaml auth: credentials: - password: '-----BEGIN DSA PRIVATE KEY----- MIIBugIBAAKBgQCsCgcOw+DgNR/7g+IbXYdOEwSB3W0o3l1Ep1ibHHvAtLb6AdNW Gq47/UxY/rX3g2FVrVCtQwNSZMqkrqALQwDScxeCOiLMndCj61t3RxU3IOl5c/Hd yhGh6JGPdzTpgf8VhJIZnvG+0NFNomYntqYFm0y11dBQPpYbJE7Tx1t/lQIVANHJ rJSVVkpcTB4XdtR7TfO31...
/content/code_sandbox/creds/ssh_key/loadbalancer.org_enterprise_va.yml
yaml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
536
```yaml auth: credentials: - password: '-----BEGIN DSA PRIVATE KEY----- MIIBuwIBAAKBgQDdwCE68iTEMjimYwJMvpkP/KThyJbuKvKc5kdKqLSmi5tssnuW tD2NqzmkEQM4uxD4XgV26k2/GvE6x4RlyOT+xlB2iYaOR4RJ8PuU8ALz+9i+y3D8 MTMY/6y3Ef41frizLFXiVVo8CXFL/N8sz16FYytIayJvkSy3rkzPoE8pRwIVAPmA F1excCJPPVq3MyDfEMUXX...
/content/code_sandbox/creds/ssh_key/monroe_electronics_r189.yml
yaml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
460
```yaml auth: credentials: - password: '----BEGIN DSA PRIVATE KEY----- MIIBuwIBAAKBgQDKuRHCBXXwoyWpMkJz/wQafaHOpqWmVYLn9GZ6eQuNLcIhtZQE kCWZTNajgf4ZAVmHgQh1JHDixJ1V0mcweti/lvyxiqHap7IkD0a+ewAOoz3OpjQZ 3ox2ovHEnQJfZ/9LNiEI3XK8TPAj6trhMn5tCdwFei6228a+TYBOccTPgwIVAKYW T8ztHHaN7Gwn0I6keQfBSN...
/content/code_sandbox/creds/ssh_key/barracuda_load_balancer.yml
yaml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
522
```python import redis import pickle # based on path_to_url class RedisQueue(object): """Simple Queue with Redis Backend""" def __init__(self, name, namespace='queue', **redis_kwargs): """The default connection parameters are: host='localhost', port=6379, db=0""" self.__db= redis.Redis(**redis...
/content/code_sandbox/changeme/redis_queue.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
322
```python __all__ = ['core', 'version', 'scan_engine'] ```
/content/code_sandbox/changeme/__init__.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
15
```python class Cred(object): def __init__(self, cdict): self.name = cdict['name'] # fingerprint # auth self.credentials = cdict['auth']['credentials'] self.csrf = cdict['auth']['csrf'] self.headers = cdict['auth']['headers'] self.username = cdict['auth']['...
/content/code_sandbox/changeme/cred.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
112
```python #!/usr/bin/env python import changeme.core import os try: # Python 3 from urllib.parse import unquote_plus except ImportError: # Python 2 from urllib import unquote_plus import yaml cli_prompt = input try: cli_prompt = raw_input except NameError: pass http_schema = { 'auth': { ...
/content/code_sandbox/changeme/schema.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
2,191
```python __version__ = '1.2.3' contributors = [ "ztgrace", "the-c0d3r", "Graph-X", "AlessandroZ", "ThomasTJ", "Alistair Chapman", "John Van de Meulebrouck Brendgard", "network23", "decidedlygray", "Joe Testa", "Chandrapal", "Naglis Jonaitis", "Samuel Henrique", "...
/content/code_sandbox/changeme/version.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
117
```python from libnmap.parser import NmapParser as np import logging from netaddr import IPNetwork from netaddr.core import AddrFormatError import re from os.path import isfile import shodan import socket class Target(object): def __init__(self, host=None, port=None, protocol=None, url=None): self.host = h...
/content/code_sandbox/changeme/target.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
885
```python import csv from copy import deepcopy from datetime import datetime import jinja2 import json import logging import os import re import sys from tabulate import tabulate class Report: def __init__(self, queue, output): self.results = self._convert_q2list(queue) self.output = output ...
/content/code_sandbox/changeme/report.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
717
```python import argparse from cerberus import Validator from changeme.redis_queue import RedisQueue import logging from logutils import colorize import os import re import redis from .report import Report import requests from requests import ConnectionError from requests.packages.urllib3.exceptions import InsecureRequ...
/content/code_sandbox/changeme/core.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
4,100
```python import logging import multiprocessing as mp import redis from changeme.redis_queue import RedisQueue import pickle from .scanners.ftp import FTP from .scanners.http_fingerprint import HttpFingerprint from .scanners.memcached import MemcachedScanner from .scanners.mongo import Mongodb from .scanners.mssql impo...
/content/code_sandbox/changeme/scan_engine.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
1,684
```python import responses class MockResponses: tomcat_fp = { 'method': responses.GET, 'url': 'path_to_url 'status': 401, 'adding_headers': { 'Server': 'Apache-Coyote/1.1', 'WWW-Authenticate': 'Basic realm="Tomcat Manager Application'} } tomcat_fp_a...
/content/code_sandbox/changeme/tests/mock_responses.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
1,355
```python import argparse from changeme import core from .core import cli_args from copy import deepcopy import logging import mock def reset_handlers(): logger = logging.getLogger('changeme') logger.handlers = [] core.remove_queues() snmp_args = deepcopy(cli_args) snmp_args['protocols'] = 'snmp' snmp_a...
/content/code_sandbox/changeme/tests/snmp.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
236
```python __all__ = ['core', 'http', 'memcached', 'redis_scanner', 'snmp', 'target'] ```
/content/code_sandbox/changeme/tests/__init__.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
27
```python import argparse from changeme import core from .core import cli_args from copy import deepcopy import logging import mock def reset_handlers(): logger = logging.getLogger('changeme') logger.handlers = [] core.remove_queues() redis_args = deepcopy(cli_args) redis_args['protocols'] = 'redis' red...
/content/code_sandbox/changeme/tests/redis_scanner.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
131
```python import argparse from changeme import core from .core import cli_args from copy import deepcopy import logging import mock import os logger = logging.getLogger('changeme') def reset_handlers(): logger = logging.getLogger('changeme') logger.handlers = [] core.remove_queues() mongodb_args = deepc...
/content/code_sandbox/changeme/tests/mongodb.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
195
```python import argparse from changeme import * from copy import deepcopy import mock from nose.tools import * from netaddr import IPAddress cli_args = {'all': False, 'category': None, 'contributors': False, 'debug': True, 'delay': 500, 'dump': False, ...
/content/code_sandbox/changeme/tests/core.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
663
```python from changeme.target import Target import os """ 1. nmap.xml 2. targets.txt 3. 127.0.0.1 4. 192.168.1.0/24 5. 192.168.59.139:8080 6. snmp://192.168.59.101 7. mysql://192.168.59.101:33306 """ def test_nmap(): path = os.path.dirname(os.path.abspath(__file__)) nmap = os.path.join(path, "tomcat_nmap.xml...
/content/code_sandbox/changeme/tests/target.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
845
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE nmaprun> <?xml-stylesheet href="file:///usr/bin/../share/nmap/nmap.xsl" type="text/xsl"?> <!-- Nmap 7.30 scan initiated Tue Jan 17 21:26:24 2017 as: nmap -p 8080 -oX tests/tomcat_nmap -sV -v -n 127.0.0.1 --> <nmaprun scanner="nmap" args="nmap -p 8080 -oX tests/tom...
/content/code_sandbox/changeme/tests/tomcat_nmap.xml
xml
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
695
```python import argparse from changeme import core from .core import cli_args from copy import deepcopy import logging import mock import os logger = logging.getLogger('changeme') def reset_handlers(): logger = logging.getLogger('changeme') logger.handlers = [] core.remove_queues() memcached_args = deep...
/content/code_sandbox/changeme/tests/memcached.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
207
```python from changeme.scanners.http_post import HTTPPostScanner class HTTPRawPostScanner(HTTPPostScanner): def __init__(self, cred, target, username, password, config, cookies, csrf, raw): super(HTTPRawPostScanner, self).__init__(cred, target, username, password, config, cookies, csrf) self.raw...
/content/code_sandbox/changeme/scanners/http_raw_post.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
185
```python from pymongo import MongoClient from .scanner import Scanner import socket class Mongodb(Scanner): def __init__(self, cred, target, username, password, config): super(Mongodb, self).__init__(cred, target, config, username, password) def _check(self): u_p = "" if self.userna...
/content/code_sandbox/changeme/scanners/mongo.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
196
```python from changeme.scanners.http_get import HTTPGetScanner class HTTPPostScanner(HTTPGetScanner): def __init__(self, cred, target, username, password, config, cookies, csrf): super(HTTPPostScanner, self).__init__(cred, target, username, password, config, cookies) self.csrf = csrf def __...
/content/code_sandbox/changeme/scanners/http_post.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
266
```python from pysnmp.hlapi import * from .scanner import Scanner class SNMP(Scanner): def __init__(self, cred, target, username, password, config): super(SNMP, self).__init__(cred, target, config, username, password) def fingerprint(self): # Don't fingerprint since it's UDP return Tr...
/content/code_sandbox/changeme/scanners/snmp.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
288
```python __all__ = [ 'database', 'ftp', 'http_basic_auth', 'http_fingerprint', 'http_get', 'http_post', 'http_raw_post', 'memcached', 'mongo', 'mssql', 'mysql', 'postgres', 'redis_scanner', 'scanner', 'snmp', 'ssh_key', 'ssh', 'telnet' ] ```
/content/code_sandbox/changeme/scanners/__init__.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
94
```python import argparse from changeme.scan_engine import ScanEngine from changeme.target import Target from changeme import core from .core import cli_args from copy import deepcopy import csv import json import logging import mock from .mock_responses import MockResponses from nose.tools import * import os import re...
/content/code_sandbox/changeme/tests/http.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
2,209
```python from .database import Database class MySQL(Database): def __init__(self, cred, target, username, password, config): super(MySQL, self).__init__(cred, target, username, password, config) self.database = "" self.query = "select version();" def _mkscanner(self, cred, target, u, ...
/content/code_sandbox/changeme/scanners/mysql.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
92
```python from .database import Database class MSSQL(Database): def __init__(self, cred, target, username, password, config): super(MSSQL, self).__init__(cred, target, username, password, config) self.target.protocol = "mssql+pyodbc" self.database = "" self.query = "SELECT @@VERSION...
/content/code_sandbox/changeme/scanners/mssql.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
114
```python from .scanner import Scanner import telnetlib import re import time class Telnet(Scanner): def __init__(self, cred, target, username, password, config): super(Telnet, self).__init__(cred, target, config, username, password) def _check(self): try: telnet = telnetlib.Telne...
/content/code_sandbox/changeme/scanners/telnet.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
672
```python import logging import paramiko from .ssh import SSH from io import StringIO class SSHKey(SSH): def __init__(self, cred, target, username, key, config): super(SSHKey, self).__init__(cred, target, username, key, config) self.logger = logging.getLogger('changeme') def _check(self): ...
/content/code_sandbox/changeme/scanners/ssh_key.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
255
```python from .database import Database class Postgres(Database): def __init__(self, cred, target, username, password, config): super(Postgres, self).__init__(cred, target, username, password, config) self.target.protocol = "postgresql+psycopg2" self.database = "" self.query = "sel...
/content/code_sandbox/changeme/scanners/postgres.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
106
```python import redis from .scanner import Scanner class RedisScanner(Scanner): def __init__(self, cred, target, username, password, config): super(RedisScanner, self).__init__(cred, target, config, username, password) def _check(self): r = redis.StrictRedis(host=self.target.host, port=self...
/content/code_sandbox/changeme/scanners/redis_scanner.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
143
```python import logging from netaddr import IPAddress import socket class Scanner(object): def __init__(self, cred, target, config, username, password): self.logger = logging.getLogger('changeme') self.cred = cred self.target = target if self.target.port is None: self....
/content/code_sandbox/changeme/scanners/scanner.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
618
```python from .scanner import Scanner import sqlalchemy class Database(Scanner): def __init__(self, cred, target, username, password, config): super(Database, self).__init__(cred, target, config, username, password) self.database = None self.query = None def _check(self): ur...
/content/code_sandbox/changeme/scanners/database.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
199
```python from .scanner import Scanner import ftplib class FTP(Scanner): def __init__(self, cred, target, username, password, config): super(FTP, self).__init__(cred, target, config, username, password) def _check(self): ftp = ftplib.FTP() ftp.connect(self.target.host, self.target.por...
/content/code_sandbox/changeme/scanners/ftp.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
135
```python import base64 import random from requests import session from .scanner import Scanner import re from selenium import webdriver from time import sleep try: # Python 3 from urllib.parse import urlencode, urlparse except ImportError: # Python 2 from urllib import urlencode from urlparse impor...
/content/code_sandbox/changeme/scanners/http_get.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
2,403
```python import paramiko from .scanner import Scanner import socket class SSH(Scanner): def __init__(self, cred, target, username, password, config): super(SSH, self).__init__(cred, target, config, username, password) def _check(self): c = paramiko.SSHClient() c.set_missing_host_key...
/content/code_sandbox/changeme/scanners/ssh.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
174
```python from changeme.scanners.http_get import HTTPGetScanner from requests.auth import HTTPBasicAuth class HTTPBasicAuthScanner(HTTPGetScanner): pass def _make_request(self): self.logger.debug("Requesting %s" % self.target) self.response = self.request.get(self.target, ...
/content/code_sandbox/changeme/scanners/http_basic_auth.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
102
```python import memcache from .scanner import Scanner class MemcachedScanner(Scanner): def __init__(self, cred, target, username, password, config): super(MemcachedScanner, self).__init__(cred, target, config, username, password) def _check(self): mc = memcache.Client(['%s:%s' % (self.targe...
/content/code_sandbox/changeme/scanners/memcached.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
151
```python from changeme.scanners.http_basic_auth import HTTPBasicAuthScanner from changeme.scanners.http_get import HTTPGetScanner from changeme.scanners.http_post import HTTPPostScanner from changeme.scanners.http_raw_post import HTTPRawPostScanner from changeme.target import Target from copy import deepcopy import lo...
/content/code_sandbox/changeme/scanners/http_fingerprint.py
python
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
1,532
```unknown <html> <head> <title>Changme Default Credential Report</title> <script type="text/javascript" src="path_to_url" integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA=" crossorigin="anonymous"></script> <script src="path_to_url" integrity=your_sha256_hashcPD7Txa" crossorigi...
/content/code_sandbox/changeme/templates/report.j2
unknown
2016-03-11T17:10:34
2024-08-13T06:37:08
changeme
ztgrace/changeme
1,427
560
```javascript import { Mock, Constant } from './_utils' const { ApiPrefix } = Constant let postId = 0 const database = Mock.mock({ 'data|100': [ { id() { postId += 1 return postId + 10000 }, 'status|1-2': 1, title: '@title', author: '@last', categories: '@word...
/content/code_sandbox/mock/post.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
387
```javascript module.exports = { testURL: 'path_to_url } ```
/content/code_sandbox/jest.config.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
15
```unknown src/**/*-test.js src/public src/routes/chart/ECharts/theme src/routes/chart/highCharts/mapdata src/locales/_build/ src/locales/**/*.js docs/**/*.js ```
/content/code_sandbox/.eslintignore
unknown
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
42
```unknown BROWSER=none HOST=0.0.0.0 PORT=7000 ```
/content/code_sandbox/.env
unknown
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
21
```javascript // path_to_url import { resolve } from 'path' const fs = require('fs') const path = require('path') const lessToJs = require('less-vars-to-js') const isDevelopment = process.env.NODE_ENV === 'development' const { theme } = require('antd/lib') const { convertLegacyToken } = require('@ant-design/compatible...
/content/code_sandbox/.umirc.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,005
```javascript import { Constant } from './_utils' const { ApiPrefix } = Constant const database = [ { id: '1', icon: 'dashboard', name: 'Dashboard', zh: { name: '' }, 'pt-br': { name: 'Dashboard' }, route: '/dashboard', }, { id: '2', breadcrumbParentId: '1', ...
/content/code_sandbox/mock/route.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
783
```javascript /** * Query objects that specify keys and values in an array where all values are objects. * @param {array} array An array where all values are objects, like [{key:1},{key:2}]. * @param {string} key The key of the object that needs to be queried. * @param {string} val...
/content/code_sandbox/mock/_utils.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
629
```javascript import { Mock, Constant, randomAvatar } from './_utils' import qs from 'qs' const { ApiPrefix } = Constant let usersListData = Mock.mock({ 'data|80-100': [ { id: '@id', name: '@name', nickName: '@last', phone: /^1[34578]\d{9}$/, 'age|11-99': 1, address: '@county...
/content/code_sandbox/mock/user.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,527
```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>antd-admin - An admin dashboard application demo built upon Ant Design and UmiJS</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="description" content="An admin dashboard application demo built upo...
/content/code_sandbox/docs/index.html
html
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
468
```javascript import { Mock, Constant } from './_utils' const { ApiPrefix, Color } = Constant const Dashboard = Mock.mock({ 'sales|8': [ { 'name|+1': 2008, 'Clothes|200-500': 1, 'Food|180-400': 1, 'Electronics|300-550': 1, }, ], cpu: { 'usage|50-600': 1, space: 825, '...
/content/code_sandbox/mock/dashboard.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
867
```unknown ```
/content/code_sandbox/docs/.nojekyll
unknown
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1
```javascript /* =========================================================== * docsify sw.js * =========================================================== * Register service worker. * ========================================================== */ const RUNTIME = 'docsify' const HOSTNAME_WHITELIST = [ self.locatio...
/content/code_sandbox/docs/sw.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
648
```less .error { color: black; text-align: center; position: absolute; top: 30%; margin-top: -50px; left: 50%; margin-left: -100px; width: 200px; :global .anticon { font-size: 48px; margin-bottom: 16px; } h1 { font-family: cursive; } } ```
/content/code_sandbox/src/pages/404.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
93
```javascript /** * Youdao Translate, My private account is for testing purposes only. * Please go to the official account to apply for an account. Thank you for your cooperation. * APP ID055c2d71f9a05214 * Secret keyZcpuQxQW3NkQeKVkqrXIKQYXH57g2KuN */ /* eslint-disable */ const md5 = require('md5') const qs ...
/content/code_sandbox/scripts/translate.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
793
```xml import React from 'react' import { FrownOutlined } from '@ant-design/icons' import { Page } from 'components' import styles from './404.less' const Error = () => ( <Page inner> <div className={styles.error}> <FrownOutlined /> <h1>404 Not Found</h1> </div> </Page> ) export default Error ...
/content/code_sandbox/src/pages/404.tsx
xml
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
84
```javascript import React, { PureComponent } from 'react' import { Redirect } from 'umi' import { t } from "@lingui/macro" class Index extends PureComponent { render() { return <Redirect to={t`/dashboard`} /> } } export default Index ```
/content/code_sandbox/src/pages/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
58
```less .dashboard { position: relative; :global { .ant-card { border-radius: 0; margin-bottom: 24px; &:hover { box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05); } } .ant-card-body { overflow-x: hidden; } } .weather { &:hover { box-shadow: 4px 4px 40p...
/content/code_sandbox/src/pages/dashboard/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
165
```javascript import { parse } from 'qs' import modelExtend from 'dva-model-extend' import api from 'api' const { pathToRegexp } = require("path-to-regexp") import { model } from 'utils/model' const { queryDashboard, queryWeather } = api const avatar = '//cdn.antd-admin.zuiidea.com/bc442cf0cc6f7940dcc567e465048d1a8d63...
/content/code_sandbox/src/pages/dashboard/model.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
473
```javascript import React from 'react' import PropTypes from 'prop-types' import { Card } from 'antd' import CountUp from 'react-countup' import iconMap from 'utils/iconMap' import styles from './numberCard.less' function NumberCard({ icon, color, title, number, countUp }) { return ( <Card className={sty...
/content/code_sandbox/src/pages/dashboard/components/numberCard.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
255
```less .cpu { .number { display: flex; height: 64px; justify-content: space-between; margin-bottom: 32px; .item { text-align: center; height: 64px; width: 100%; position: relative; & + .item { &::before { content: ''; display: block; ...
/content/code_sandbox/src/pages/dashboard/components/cpu.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
177
```javascript import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { connect } from 'umi' import { Row, Col, Card } from 'antd' import { Color } from 'utils' import { Page, ScrollBar } from 'components' import { NumberCard, Quote, Sales, Weather, RecentSales, Comments, Co...
/content/code_sandbox/src/pages/dashboard/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
881
```less @import '~themes/vars'; .sales { overflow: hidden; .title { margin-left: 32px; font-size: 16px; } } .radiusdot { width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; display: inline-block; } .legend { text-align: right; color: #999; font-size: 14px; li { heig...
/content/code_sandbox/src/pages/dashboard/components/sales.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
218
```less @import '~themes/vars'; .sales { .title { margin-left: 32px; font-size: 16px; } } .radiusdot { width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; display: inline-block; } .legend { text-align: right; color: #999; font-size: 14px; li { height: 48px; line-h...
/content/code_sandbox/src/pages/dashboard/components/completed.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
213
```less @import '~themes/vars'; .user { .header { display: flex; justify-content: center; text-align: center; color: #fff; height: 200px; background-size: cover; align-items: center; .headerinner { z-index: 2; } &::after { content: ''; background-image: url...
/content/code_sandbox/src/pages/dashboard/components/user.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
418
```less @import '~themes/vars'; .comments { :global .ant-table-thead > tr > th { background: #fff; border-bottom: solid 1px @border-color-base; } .avatar { width: 48px; height: 48px; background-position: center; background-size: cover; border-radius: 50%; background: #f8f8f8; ...
/content/code_sandbox/src/pages/dashboard/components/comments.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
204
```javascript import React from 'react' import PropTypes from 'prop-types' import styles from './quote.less' function Quote({ name, content, title, avatar }) { return ( <div className={styles.quote}> <div className={styles.inner}>{content}</div> <div className={styles.footer}> <div className=...
/content/code_sandbox/src/pages/dashboard/components/quote.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
162
```javascript import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import { Color } from 'utils' import styles from './comments.less' const status = { 1: { color: Color.green, text: 'APPROVED', }, 2: { color: Color.yellow, text: 'PENDING', }, 3: { ...
/content/code_sandbox/src/pages/dashboard/components/comments.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
366
```javascript import React from 'react' import PropTypes from 'prop-types' import { Button, Avatar } from 'antd' import CountUp from 'react-countup' import { Color } from 'utils' import styles from './user.less' const countUpProps = { start: 0, duration: 2.75, useEasing: true, useGrouping: true, separator: '...
/content/code_sandbox/src/pages/dashboard/components/user.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
353
```javascript import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { Color } from 'utils' import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, } from 'recharts' import styles from './sales.less' function Sales({ ...
/content/code_sandbox/src/pages/dashboard/components/sales.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
662
```javascript import React from 'react' import dayjs from 'dayjs' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import { Color } from 'utils' import styles from './recentSales.less' const status = { 1: { color: Color.green, text: 'SALE', }, 2: { color: Color.yellow, text: '...
/content/code_sandbox/src/pages/dashboard/components/recentSales.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
352
```less @import '~themes/vars'; .quote { color: #fff; height: 100%; width: 100%; padding: 24px; font-size: 16px; font-weight: 700; .inner { text-overflow: ellipsis; word-wrap: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; ...
/content/code_sandbox/src/pages/dashboard/components/quote.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
250
```javascript import React from 'react' import PropTypes from 'prop-types' import { Spin } from 'antd' import styles from './weather.less' function Weather({ city, icon, dateTime, temperature, name, loading }) { return ( <Spin spinning={loading}> <div className={styles.weather}> <div className={sty...
/content/code_sandbox/src/pages/dashboard/components/weather.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
211
```less @import '~themes/vars'; .recentsales { :global .ant-table-thead > tr > th { background: #fff; border-bottom: solid 1px @border-color-base; } } ```
/content/code_sandbox/src/pages/dashboard/components/recentSales.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
47
```less .percent { text-align: right !important; } .name { text-align: left !important; } ```
/content/code_sandbox/src/pages/dashboard/components/browser.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
23
```less @import '~themes/vars'; .weather { color: #fff; height: 204px; padding: 24px; justify-content: space-between; display: flex; font-size: 14px; .left { display: flex; flex-direction: column; width: 64px; padding-top: 55px; .icon { width: 64px; height: 64px; b...
/content/code_sandbox/src/pages/dashboard/components/weather.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
216
```javascript import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import { Color } from 'utils' import styles from './browser.less' const status = { 1: { color: Color.green, }, 2: { color: Color.red, }, 3: { color: Color.blue, }, 4: { color: Colo...
/content/code_sandbox/src/pages/dashboard/components/browser.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
231
```less @import '~themes/vars'; .numberCard { padding: 32px; margin-bottom: 24px; cursor: pointer; .iconWarp { font-size: 54px; float: left; } .content { width: 100%; padding-left: 78px; .title { line-height: 16px; font-size: 16px; margin-bottom: 8px; height: ...
/content/code_sandbox/src/pages/dashboard/components/numberCard.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
158
```javascript import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { Color } from 'utils' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, } from 'recharts' import styles from './completed.less' function Comp...
/content/code_sandbox/src/pages/dashboard/components/completed.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
635
```javascript import NumberCard from './numberCard' import Quote from './quote' import Sales from './sales' import Weather from './weather' import RecentSales from './recentSales' import Comments from './comments' import Completed from './completed' import Browser from './browser' import Cpu from './cpu' import User fr...
/content/code_sandbox/src/pages/dashboard/components/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
102
```javascript import { request, config } from 'utils' const { APIV1 } = config export function query(params) { params.key = 'i7sau1babuzwhycn' return request({ url: `${APIV1}/weather/now.json`, method: 'get', data: params, }) } ```
/content/code_sandbox/src/pages/dashboard/services/weather.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
73
```javascript import React from 'react' import PropTypes from 'prop-types' import { Color } from 'utils' import CountUp from 'react-countup' import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer, } from 'recharts' import styles from './cpu.less' const countUpProps = { start: 0, dur...
/content/code_sandbox/src/pages/dashboard/components/cpu.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
480
```javascript import { request, config } from 'utils' const { api } = config const { dashboard } = api export function query(params) { return request({ url: dashboard, method: 'get', data: params, }) } ```
/content/code_sandbox/src/pages/dashboard/services/dashboard.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
54
```less @import '~themes/vars'; .result { height: 600px; width: 100%; background: @hover-color; border-color: #ddd; padding: 16px; margin-top: 16px; word-break: break-word; line-height: 2; overflow: scroll; } .requestList { padding-right: 24px; margin-bottom: 24px; .listItem { cursor: poin...
/content/code_sandbox/src/pages/request/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
195
```less @import '~themes/vars'; .form { position: absolute; top: 45%; left: 50%; margin: -160px 0 0 -160px; width: 320px; height: 320px; padding: 36px; box-shadow: 0 0 100px rgba(0, 0, 0, 0.08); button { width: 100%; } p { color: rgb(204, 204, 204); text-align: center; margin-to...
/content/code_sandbox/src/pages/login/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
299
```javascript import { history } from 'umi' const { pathToRegexp } = require("path-to-regexp") import api from 'api' const { loginUser } = api export default { namespace: 'login', state: {}, // subscriptions: { // setup({ dispatch, history }) { // history.listen(location => { // if (pathToReg...
/content/code_sandbox/src/pages/login/model.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
236
```javascript import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' import { connect } from 'umi' import { Button, Row, Input, Form } from 'antd' import { GlobalFooter } from 'components' import { GithubOutlined } from '@ant-design/icons' import { t, Trans } from "@lingui/macro" impo...
/content/code_sandbox/src/pages/login/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
582
```javascript import React from 'react' import { request } from 'utils' import { apiPrefix } from 'utils/config' import { Row, Col, Select, Form, Input, Button, List, Tag, Checkbox } from 'antd' import classnames from 'classnames' import { CloseOutlined } from '@ant-design/icons' import { Trans } from "@lingui/macro" i...
/content/code_sandbox/src/pages/request/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,471
```javascript import React from 'react' import PropTypes from 'prop-types' import HighstockComponent from './HighstockComponent' import HighmapsComponent from './HighmapsComponent' import HighMoreComponent from './HighMoreComponent' const HighChartsComponent = ({ type }) => { if (type === 'Highmaps') return <Highma...
/content/code_sandbox/src/pages/chart/highCharts/HighChartsComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
111
```less .chart { :global { .ant-radio-wrapper { margin-bottom: 16px; } } } ```
/content/code_sandbox/src/pages/chart/highCharts/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
26
```javascript import React from 'react' import ReactHighcharts from 'react-highcharts' import HighchartsExporting from 'highcharts-exporting' import HighchartsMore from 'highcharts-more' HighchartsMore(ReactHighcharts.Highcharts) HighchartsExporting(ReactHighcharts.Highcharts) const config = { chart: { polar: t...
/content/code_sandbox/src/pages/chart/highCharts/HighMoreComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
250
```javascript import React from 'react' import ReactHighmaps from 'react-highcharts/ReactHighmaps.src' import maps from './mapdata/europe' const config = { chart: { spacingBottom: 20, }, title: { text: 'Europe time zones', }, legend: { enabled: true, }, plotOptions: { map: { allAr...
/content/code_sandbox/src/pages/chart/highCharts/HighmapsComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
368
```javascript import React from 'react' import ReactHighstock from 'react-highcharts/ReactHighstock.src' const data = [ [1220832000000, 22.56], [1220918400000, 21.67], [1221004800000, 21.66], [1221091200000, 21.81], [1221177600000, 21.28], [1221436800000, 20.05], [1221523200000, 19.98], [1221609600000,...
/content/code_sandbox/src/pages/chart/highCharts/HighstockComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,030
```javascript import React from 'react' import { Radio } from 'antd' import { Page } from 'components' import HighChartsComponent from './HighChartsComponent' import styles from './index.less' const RadioGroup = Radio.Group const chartList = [ { label: 'Highstock', value: 'Highstock', }, { label: 'H...
/content/code_sandbox/src/pages/chart/highCharts/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
248
```javascript import React from 'react' import PropTypes from 'prop-types' import AreaChartComponent from './AreaChartComponent' import BarChartComponent from './BarChartComponent' import LineChartComponent from './LineChartComponent' const ReChartsComponent = ({ type }) => { if (type === 'areaChart') return <AreaC...
/content/code_sandbox/src/pages/chart/Recharts/ReChartsComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
111