@contentstack/datasync-manager 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/codeql-analysis.yml +68 -0
- package/.github/workflows/jira.yml +27 -0
- package/.github/workflows/release.yml +53 -0
- package/.github/workflows/sast-scan.yml +11 -0
- package/.github/workflows/sca-scan.yml +15 -0
- package/.github/workflows/secrets-scan.yml +11 -0
- package/.releaserc +9 -0
- package/.talismanrc +4 -0
- package/CODEOWNERS +1 -0
- package/LICENSE +1 -1
- package/SECURITY.md +27 -0
- package/dist/core/inet.js +1 -4
- package/dist/core/q.js +1 -11
- package/dist/plugins/helper.js +1 -1
- package/dist/plugins/save_rte_markdown_assets/index.js +0 -1
- package/dist/plugins/transform_entries/index.js +0 -1
- package/dist/util/index.js +2 -2
- package/package.json +24 -15
- package/test/dummy/plugins/myplugin1/index.js +0 -1
- package/test/dummy/plugins/myplugin2/index.js +0 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -79
- package/coverage/coverage-final.json +0 -43
- package/coverage/index.html +0 -201
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -170
- package/coverage/test/dummy/api-responses/content-type.ts.html +0 -159
- package/coverage/test/dummy/api-responses/delete-asset.ts.html +0 -96
- package/coverage/test/dummy/api-responses/delete-content-type.ts.html +0 -84
- package/coverage/test/dummy/api-responses/delete-entry.ts.html +0 -96
- package/coverage/test/dummy/api-responses/delete.ts.html +0 -165
- package/coverage/test/dummy/api-responses/empty.ts.html +0 -90
- package/coverage/test/dummy/api-responses/entries.ts.html +0 -162
- package/coverage/test/dummy/api-responses/global-field.ts.html +0 -591
- package/coverage/test/dummy/api-responses/index.html +0 -318
- package/coverage/test/dummy/api-responses/markdown-content-type.ts.html +0 -675
- package/coverage/test/dummy/api-responses/markdown-entries.ts.html +0 -237
- package/coverage/test/dummy/api-responses/publish-asset.ts.html +0 -111
- package/coverage/test/dummy/api-responses/publish-entry.ts.html +0 -111
- package/coverage/test/dummy/api-responses/publish.ts.html +0 -174
- package/coverage/test/dummy/api-responses/references-content-type-2.ts.html +0 -789
- package/coverage/test/dummy/api-responses/references-content-type.ts.html +0 -885
- package/coverage/test/dummy/api-responses/references-entries.ts.html +0 -537
- package/coverage/test/dummy/api-responses/unpublish-asset.ts.html +0 -96
- package/coverage/test/dummy/api-responses/unpublish-entry.ts.html +0 -93
- package/coverage/test/dummy/config.ts.html +0 -171
- package/coverage/test/dummy/connector-listener-instances.ts.html +0 -276
- package/coverage/test/dummy/filter-items.ts.html +0 -165
- package/coverage/test/dummy/index.html +0 -123
- package/test-filtered.json +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
pull_request:
|
|
16
|
+
# The branches below must be a subset of the branches above
|
|
17
|
+
branches: '*'
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
analyze:
|
|
21
|
+
name: Analyze
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
permissions:
|
|
24
|
+
actions: read
|
|
25
|
+
contents: read
|
|
26
|
+
security-events: write
|
|
27
|
+
|
|
28
|
+
strategy:
|
|
29
|
+
fail-fast: false
|
|
30
|
+
matrix:
|
|
31
|
+
language: [ 'javascript' ]
|
|
32
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
33
|
+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- name: Checkout repository
|
|
37
|
+
uses: actions/checkout@v3
|
|
38
|
+
|
|
39
|
+
# Initializes the CodeQL tools for scanning.
|
|
40
|
+
- name: Initialize CodeQL
|
|
41
|
+
uses: github/codeql-action/init@v2
|
|
42
|
+
with:
|
|
43
|
+
languages: ${{ matrix.language }}
|
|
44
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
45
|
+
# By default, queries listed here will override any specified in a config file.
|
|
46
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
47
|
+
|
|
48
|
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
49
|
+
# queries: security-extended,security-and-quality
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
53
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
54
|
+
- name: Autobuild
|
|
55
|
+
uses: github/codeql-action/autobuild@v2
|
|
56
|
+
|
|
57
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
58
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
59
|
+
|
|
60
|
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
61
|
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
62
|
+
|
|
63
|
+
# - run: |
|
|
64
|
+
# echo "Run, Build Application using script"
|
|
65
|
+
# ./location_of_script_within_repo/buildscript.sh
|
|
66
|
+
|
|
67
|
+
- name: Perform CodeQL Analysis
|
|
68
|
+
uses: github/codeql-action/analyze@v2
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Create JIRA ISSUE
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened]
|
|
5
|
+
jobs:
|
|
6
|
+
security:
|
|
7
|
+
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'snyk-bot' || contains(github.event.pull_request.head.ref, 'snyk-fix-') || contains(github.event.pull_request.head.ref, 'snyk-upgrade-')}}
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v2
|
|
11
|
+
- name: Login into JIRA
|
|
12
|
+
uses: atlassian/gajira-login@master
|
|
13
|
+
env:
|
|
14
|
+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
|
|
15
|
+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
|
|
16
|
+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
|
|
17
|
+
- name: Create a JIRA Issue
|
|
18
|
+
id: create
|
|
19
|
+
uses: atlassian/gajira-create@master
|
|
20
|
+
with:
|
|
21
|
+
project: ${{ secrets.JIRA_PROJECT }}
|
|
22
|
+
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
|
|
23
|
+
summary: |
|
|
24
|
+
${{ github.event.pull_request.title }}
|
|
25
|
+
description: |
|
|
26
|
+
PR: ${{ github.event.pull_request.html_url }}
|
|
27
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- master
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
name: Build and upload
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout
|
|
12
|
+
uses: actions/checkout@v2
|
|
13
|
+
with:
|
|
14
|
+
fetch-depth: 0
|
|
15
|
+
- name: Setup Node.js
|
|
16
|
+
uses: actions/setup-node@v1
|
|
17
|
+
with:
|
|
18
|
+
node-version: 12
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: npm install
|
|
21
|
+
- name: Build
|
|
22
|
+
run: npm run build-ts
|
|
23
|
+
- name: Upload dist
|
|
24
|
+
uses: actions/upload-artifact@v3
|
|
25
|
+
with:
|
|
26
|
+
name: dist
|
|
27
|
+
path: dist
|
|
28
|
+
|
|
29
|
+
release:
|
|
30
|
+
name: Download dist and release
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
needs: build
|
|
33
|
+
steps:
|
|
34
|
+
- name: Checkout
|
|
35
|
+
uses: actions/checkout@v2
|
|
36
|
+
with:
|
|
37
|
+
fetch-depth: 0
|
|
38
|
+
- name: Setup Node.js
|
|
39
|
+
uses: actions/setup-node@v1
|
|
40
|
+
with:
|
|
41
|
+
node-version: 12
|
|
42
|
+
- name: Install dependencies
|
|
43
|
+
run: npm install
|
|
44
|
+
- name: Download dist
|
|
45
|
+
uses: actions/download-artifact@v3
|
|
46
|
+
with:
|
|
47
|
+
name: dist
|
|
48
|
+
run: ls dist
|
|
49
|
+
- name: Release
|
|
50
|
+
env:
|
|
51
|
+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
52
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
53
|
+
run: npx semantic-release
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
name: SAST Scan
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened, synchronize, reopened]
|
|
5
|
+
jobs:
|
|
6
|
+
security:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v2
|
|
10
|
+
- name: Horusec Scan
|
|
11
|
+
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/src horuszup/horusec-cli:latest horusec start -p /src -P $(pwd)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Source Composition Analysis Scan
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened, synchronize, reopened]
|
|
5
|
+
jobs:
|
|
6
|
+
security:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@master
|
|
10
|
+
- name: Run Snyk to check for vulnerabilities
|
|
11
|
+
uses: snyk/actions/node@master
|
|
12
|
+
env:
|
|
13
|
+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
|
14
|
+
with:
|
|
15
|
+
args: --all-projects
|
package/.releaserc
ADDED
package/.talismanrc
ADDED
package/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @contentstack/security-admin @contentstack/cli-admin
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2022 Contentstack LLC <https://www.contentstack.com/>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## Security
|
|
2
|
+
|
|
3
|
+
Contentstack takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.
|
|
4
|
+
|
|
5
|
+
If you believe you have found a security vulnerability in any Contentstack-owned repository, please report it to us as described below.
|
|
6
|
+
|
|
7
|
+
## Reporting Security Issues
|
|
8
|
+
|
|
9
|
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
|
10
|
+
|
|
11
|
+
Send email to [security@contentstack.com](mailto:security@contentstack.com).
|
|
12
|
+
|
|
13
|
+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
|
|
14
|
+
|
|
15
|
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
|
16
|
+
|
|
17
|
+
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
|
18
|
+
- Full paths of source file(s) related to the manifestation of the issue
|
|
19
|
+
- The location of the affected source code (tag/branch/commit or direct URL)
|
|
20
|
+
- Any special configuration required to reproduce the issue
|
|
21
|
+
- Step-by-step instructions to reproduce the issue
|
|
22
|
+
- Proof-of-concept or exploit code (if possible)
|
|
23
|
+
- Impact of the issue, including how an attacker might exploit the issue
|
|
24
|
+
|
|
25
|
+
This information will help us triage your report more quickly.
|
|
26
|
+
|
|
27
|
+
[https://www.contentstack.com/trust/](https://www.contentstack.com/trust/)
|
package/dist/core/inet.js
CHANGED
|
@@ -65,10 +65,7 @@ exports.checkNetConnectivity = () => {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
exports.netConnectivityIssues = (error) => {
|
|
68
|
-
if (error.code === 'ENOTFOUND') {
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
else if (error.code === 'ETIMEDOUT') {
|
|
68
|
+
if (error.code === 'ENOTFOUND' || error.code === 'ETIMEDOUT') {
|
|
72
69
|
return true;
|
|
73
70
|
}
|
|
74
71
|
return false;
|
package/dist/core/q.js
CHANGED
|
@@ -142,17 +142,7 @@ class Q extends events_1.EventEmitter {
|
|
|
142
142
|
*/
|
|
143
143
|
process(data) {
|
|
144
144
|
notify(data._type, data);
|
|
145
|
-
|
|
146
|
-
case 'publish':
|
|
147
|
-
this.exec(data, data._type);
|
|
148
|
-
break;
|
|
149
|
-
case 'unpublish':
|
|
150
|
-
this.exec(data, data._type);
|
|
151
|
-
break;
|
|
152
|
-
default:
|
|
153
|
-
this.exec(data, data._type);
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
145
|
+
this.exec(data, data._type);
|
|
156
146
|
}
|
|
157
147
|
/**
|
|
158
148
|
* @description Execute and manager current processing item. Calling 'before' and 'after' hooks appropriately
|
package/dist/plugins/helper.js
CHANGED
|
@@ -57,7 +57,7 @@ exports.buildReferencePaths = (schema, entryReferences = {}, assetReferences = {
|
|
|
57
57
|
this.buildReferencePaths(field.schema, entryReferences, assetReferences, ((parent) ? `${parent}.${field.uid}` : field.uid));
|
|
58
58
|
}
|
|
59
59
|
else if (field.data_type === fieldType.BLOCKS && Array.isArray(field.blocks)) {
|
|
60
|
-
const blockParent =
|
|
60
|
+
const blockParent = parent ? `${parent}.${field.uid}` : `${field.uid}`;
|
|
61
61
|
field.blocks.forEach((block) => {
|
|
62
62
|
if (block && block.schema && Array.isArray(block.schema)) {
|
|
63
63
|
let subBlockParent = `${blockParent}.${block.uid}`;
|
|
@@ -3,7 +3,6 @@ const helper = require('../helper');
|
|
|
3
3
|
const index = require('../../index');
|
|
4
4
|
const util = require('../../util/index');
|
|
5
5
|
module.exports = function SaveRteMarkdownAssets() {
|
|
6
|
-
const options = SaveRteMarkdownAssets.options;
|
|
7
6
|
SaveRteMarkdownAssets.beforeSync = (action, data, schema) => {
|
|
8
7
|
return new Promise((resolve, reject) => {
|
|
9
8
|
try {
|
package/dist/util/index.js
CHANGED
|
@@ -260,7 +260,7 @@ const findAssets = (parentEntry, key, schema, entry, bucket, isFindNotReplace) =
|
|
|
260
260
|
let matches;
|
|
261
261
|
let convertedText;
|
|
262
262
|
if (isMarkdown) {
|
|
263
|
-
convertedText = marked_1.default(entry);
|
|
263
|
+
convertedText = marked_1.default.marked(entry);
|
|
264
264
|
}
|
|
265
265
|
else {
|
|
266
266
|
convertedText = entry;
|
|
@@ -312,7 +312,7 @@ const iterate = (schema, entry, bucket, findNoteReplace, parentKeys) => {
|
|
|
312
312
|
const parentKey = parentKeys[index];
|
|
313
313
|
const subEntry = entry[parentKey];
|
|
314
314
|
if (subEntry && !(lodash_1.isEmpty(subEntry)) && index === (parentKeys.length - 1)) {
|
|
315
|
-
if (subEntry && subEntry
|
|
315
|
+
if (subEntry && subEntry.length) {
|
|
316
316
|
subEntry.forEach((subEntryItem, idx) => {
|
|
317
317
|
// tricky!
|
|
318
318
|
if (!(lodash_1.isEmpty(subEntryItem))) {
|
package/package.json
CHANGED
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/datasync-manager",
|
|
3
3
|
"author": "Contentstack LLC <support@contentstack.com>",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"description": "The primary module of Contentstack DataSync. Syncs Contentstack data with your server using Contentstack Sync API",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"debug": "4.
|
|
9
|
-
"dns-socket": "4.2.
|
|
10
|
-
"lodash": "4.17.
|
|
11
|
-
"marked": "
|
|
12
|
-
"write-file-atomic": "
|
|
8
|
+
"debug": "^4.3.4",
|
|
9
|
+
"dns-socket": "^4.2.2",
|
|
10
|
+
"lodash": "^4.17.21",
|
|
11
|
+
"marked": "^4.1.0",
|
|
12
|
+
"write-file-atomic": "4.0.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
16
|
+
"@semantic-release/git": "^10.0.1",
|
|
17
|
+
"@semantic-release/npm": "^9.0.1",
|
|
18
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
15
19
|
"@types/debug": "0.0.31",
|
|
16
20
|
"@types/jest": "23.3.11",
|
|
17
21
|
"@types/lodash": "4.14.119",
|
|
22
|
+
"@types/marked": "^4.0.7",
|
|
18
23
|
"@types/mkdirp": "0.5.2",
|
|
19
24
|
"@types/nock": "9.3.0",
|
|
20
25
|
"@types/node": "10.12.12",
|
|
21
26
|
"@types/rimraf": "2.0.2",
|
|
22
27
|
"@types/write-file-atomic": "2.1.1",
|
|
23
|
-
"
|
|
28
|
+
"eslint": "^8.14.0",
|
|
29
|
+
"jest": "^29.0.3",
|
|
24
30
|
"jest-html-reporter": "^2.5.0",
|
|
25
|
-
"mkdirp": "0.
|
|
26
|
-
"nock": "10.0.6",
|
|
27
|
-
"rimraf": "2.6.2",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
+
"mkdirp": "^1.0.4",
|
|
32
|
+
"nock": "^10.0.6",
|
|
33
|
+
"rimraf": "^2.6.2",
|
|
34
|
+
"semantic-release": "^19.0.5",
|
|
35
|
+
"ts-jest": "^29.0.1",
|
|
36
|
+
"tslint": "^5.18.0",
|
|
37
|
+
"typescript": "^3.5.2"
|
|
31
38
|
},
|
|
32
39
|
"scripts": {
|
|
33
40
|
"clean": "rimraf dist typings coverage .tokens .ledger .checkpoint",
|
|
@@ -37,7 +44,9 @@
|
|
|
37
44
|
"prepare": "npm run compile",
|
|
38
45
|
"start": "dist",
|
|
39
46
|
"tslint": "npx tslint -c tslint.json 'src/**/*.ts' --fix",
|
|
40
|
-
"test": "PLUGIN_PATH=./test/dummy jest --colors --coverage --verbose"
|
|
47
|
+
"test": "PLUGIN_PATH=./test/dummy jest --colors --coverage --verbose",
|
|
48
|
+
"lint": "eslint",
|
|
49
|
+
"semantic-release": "semantic-release"
|
|
41
50
|
},
|
|
42
51
|
"engines": {
|
|
43
52
|
"node": ">=8"
|
|
@@ -57,4 +66,4 @@
|
|
|
57
66
|
"url": "https://github.com/contentstack/datasync-manager/issues"
|
|
58
67
|
},
|
|
59
68
|
"homepage": "https://www.contentstack.com/docs/guide/synchronization/contentstack-datasync"
|
|
60
|
-
}
|
|
69
|
+
}
|
package/coverage/base.css
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
body, html {
|
|
2
|
-
margin:0; padding: 0;
|
|
3
|
-
height: 100%;
|
|
4
|
-
}
|
|
5
|
-
body {
|
|
6
|
-
font-family: Helvetica Neue, Helvetica, Arial;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
color:#333;
|
|
9
|
-
}
|
|
10
|
-
.small { font-size: 12px; }
|
|
11
|
-
*, *:after, *:before {
|
|
12
|
-
-webkit-box-sizing:border-box;
|
|
13
|
-
-moz-box-sizing:border-box;
|
|
14
|
-
box-sizing:border-box;
|
|
15
|
-
}
|
|
16
|
-
h1 { font-size: 20px; margin: 0;}
|
|
17
|
-
h2 { font-size: 14px; }
|
|
18
|
-
pre {
|
|
19
|
-
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
20
|
-
margin: 0;
|
|
21
|
-
padding: 0;
|
|
22
|
-
-moz-tab-size: 2;
|
|
23
|
-
-o-tab-size: 2;
|
|
24
|
-
tab-size: 2;
|
|
25
|
-
}
|
|
26
|
-
a { color:#0074D9; text-decoration:none; }
|
|
27
|
-
a:hover { text-decoration:underline; }
|
|
28
|
-
.strong { font-weight: bold; }
|
|
29
|
-
.space-top1 { padding: 10px 0 0 0; }
|
|
30
|
-
.pad2y { padding: 20px 0; }
|
|
31
|
-
.pad1y { padding: 10px 0; }
|
|
32
|
-
.pad2x { padding: 0 20px; }
|
|
33
|
-
.pad2 { padding: 20px; }
|
|
34
|
-
.pad1 { padding: 10px; }
|
|
35
|
-
.space-left2 { padding-left:55px; }
|
|
36
|
-
.space-right2 { padding-right:20px; }
|
|
37
|
-
.center { text-align:center; }
|
|
38
|
-
.clearfix { display:block; }
|
|
39
|
-
.clearfix:after {
|
|
40
|
-
content:'';
|
|
41
|
-
display:block;
|
|
42
|
-
height:0;
|
|
43
|
-
clear:both;
|
|
44
|
-
visibility:hidden;
|
|
45
|
-
}
|
|
46
|
-
.fl { float: left; }
|
|
47
|
-
@media only screen and (max-width:640px) {
|
|
48
|
-
.col3 { width:100%; max-width:100%; }
|
|
49
|
-
.hide-mobile { display:none!important; }
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.quiet {
|
|
53
|
-
color: #7f7f7f;
|
|
54
|
-
color: rgba(0,0,0,0.5);
|
|
55
|
-
}
|
|
56
|
-
.quiet a { opacity: 0.7; }
|
|
57
|
-
|
|
58
|
-
.fraction {
|
|
59
|
-
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
60
|
-
font-size: 10px;
|
|
61
|
-
color: #555;
|
|
62
|
-
background: #E8E8E8;
|
|
63
|
-
padding: 4px 5px;
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
vertical-align: middle;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
div.path a:link, div.path a:visited { color: #333; }
|
|
69
|
-
table.coverage {
|
|
70
|
-
border-collapse: collapse;
|
|
71
|
-
margin: 10px 0 0 0;
|
|
72
|
-
padding: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
table.coverage td {
|
|
76
|
-
margin: 0;
|
|
77
|
-
padding: 0;
|
|
78
|
-
vertical-align: top;
|
|
79
|
-
}
|
|
80
|
-
table.coverage td.line-count {
|
|
81
|
-
text-align: right;
|
|
82
|
-
padding: 0 5px 0 20px;
|
|
83
|
-
}
|
|
84
|
-
table.coverage td.line-coverage {
|
|
85
|
-
text-align: right;
|
|
86
|
-
padding-right: 10px;
|
|
87
|
-
min-width:20px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
table.coverage td span.cline-any {
|
|
91
|
-
display: inline-block;
|
|
92
|
-
padding: 0 5px;
|
|
93
|
-
width: 100%;
|
|
94
|
-
}
|
|
95
|
-
.missing-if-branch {
|
|
96
|
-
display: inline-block;
|
|
97
|
-
margin-right: 5px;
|
|
98
|
-
border-radius: 3px;
|
|
99
|
-
position: relative;
|
|
100
|
-
padding: 0 4px;
|
|
101
|
-
background: #333;
|
|
102
|
-
color: yellow;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.skip-if-branch {
|
|
106
|
-
display: none;
|
|
107
|
-
margin-right: 10px;
|
|
108
|
-
position: relative;
|
|
109
|
-
padding: 0 4px;
|
|
110
|
-
background: #ccc;
|
|
111
|
-
color: white;
|
|
112
|
-
}
|
|
113
|
-
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
-
color: inherit !important;
|
|
115
|
-
}
|
|
116
|
-
.coverage-summary {
|
|
117
|
-
border-collapse: collapse;
|
|
118
|
-
width: 100%;
|
|
119
|
-
}
|
|
120
|
-
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
|
121
|
-
.keyline-all { border: 1px solid #ddd; }
|
|
122
|
-
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
|
123
|
-
.coverage-summary tbody { border: 1px solid #bbb; }
|
|
124
|
-
.coverage-summary td { border-right: 1px solid #bbb; }
|
|
125
|
-
.coverage-summary td:last-child { border-right: none; }
|
|
126
|
-
.coverage-summary th {
|
|
127
|
-
text-align: left;
|
|
128
|
-
font-weight: normal;
|
|
129
|
-
white-space: nowrap;
|
|
130
|
-
}
|
|
131
|
-
.coverage-summary th.file { border-right: none !important; }
|
|
132
|
-
.coverage-summary th.pct { }
|
|
133
|
-
.coverage-summary th.pic,
|
|
134
|
-
.coverage-summary th.abs,
|
|
135
|
-
.coverage-summary td.pct,
|
|
136
|
-
.coverage-summary td.abs { text-align: right; }
|
|
137
|
-
.coverage-summary td.file { white-space: nowrap; }
|
|
138
|
-
.coverage-summary td.pic { min-width: 120px !important; }
|
|
139
|
-
.coverage-summary tfoot td { }
|
|
140
|
-
|
|
141
|
-
.coverage-summary .sorter {
|
|
142
|
-
height: 10px;
|
|
143
|
-
width: 7px;
|
|
144
|
-
display: inline-block;
|
|
145
|
-
margin-left: 0.5em;
|
|
146
|
-
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
|
-
}
|
|
148
|
-
.coverage-summary .sorted .sorter {
|
|
149
|
-
background-position: 0 -20px;
|
|
150
|
-
}
|
|
151
|
-
.coverage-summary .sorted-desc .sorter {
|
|
152
|
-
background-position: 0 -10px;
|
|
153
|
-
}
|
|
154
|
-
.status-line { height: 10px; }
|
|
155
|
-
/* yellow */
|
|
156
|
-
.cbranch-no { background: yellow !important; color: #111; }
|
|
157
|
-
/* dark red */
|
|
158
|
-
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
|
159
|
-
.low .chart { border:1px solid #C21F39 }
|
|
160
|
-
.highlighted,
|
|
161
|
-
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
162
|
-
background: #C21F39 !important;
|
|
163
|
-
}
|
|
164
|
-
/* medium red */
|
|
165
|
-
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
|
166
|
-
/* light red */
|
|
167
|
-
.low, .cline-no { background:#FCE1E5 }
|
|
168
|
-
/* light green */
|
|
169
|
-
.high, .cline-yes { background:rgb(230,245,208) }
|
|
170
|
-
/* medium green */
|
|
171
|
-
.cstat-yes { background:rgb(161,215,106) }
|
|
172
|
-
/* dark green */
|
|
173
|
-
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
|
174
|
-
.high .chart { border:1px solid rgb(77,146,33) }
|
|
175
|
-
/* dark yellow (gold) */
|
|
176
|
-
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
|
177
|
-
.medium .chart { border:1px solid #f9cd0b; }
|
|
178
|
-
/* light yellow */
|
|
179
|
-
.medium { background: #fff4c2; }
|
|
180
|
-
|
|
181
|
-
.cstat-skip { background: #ddd; color: #111; }
|
|
182
|
-
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
183
|
-
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
184
|
-
|
|
185
|
-
span.cline-neutral { background: #eaeaea; }
|
|
186
|
-
|
|
187
|
-
.coverage-summary td.empty {
|
|
188
|
-
opacity: .5;
|
|
189
|
-
padding-top: 4px;
|
|
190
|
-
padding-bottom: 4px;
|
|
191
|
-
line-height: 1;
|
|
192
|
-
color: #888;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.cover-fill, .cover-empty {
|
|
196
|
-
display:inline-block;
|
|
197
|
-
height: 12px;
|
|
198
|
-
}
|
|
199
|
-
.chart {
|
|
200
|
-
line-height: 0;
|
|
201
|
-
}
|
|
202
|
-
.cover-empty {
|
|
203
|
-
background: white;
|
|
204
|
-
}
|
|
205
|
-
.cover-full {
|
|
206
|
-
border-right: none !important;
|
|
207
|
-
}
|
|
208
|
-
pre.prettyprint {
|
|
209
|
-
border: none !important;
|
|
210
|
-
padding: 0 !important;
|
|
211
|
-
margin: 0 !important;
|
|
212
|
-
}
|
|
213
|
-
.com { color: #999 !important; }
|
|
214
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
215
|
-
|
|
216
|
-
.wrapper {
|
|
217
|
-
min-height: 100%;
|
|
218
|
-
height: auto !important;
|
|
219
|
-
height: 100%;
|
|
220
|
-
margin: 0 auto -48px;
|
|
221
|
-
}
|
|
222
|
-
.footer, .push {
|
|
223
|
-
height: 48px;
|
|
224
|
-
}
|