elementos importantes

parent 0bc89f19
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false
package.json
package-lock.json
dist
e2e/**
karma.conf.js
commitlint.config.js
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "vex",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "vex",
"style": "kebab-case"
}
],
"@angular-eslint/no-host-metadata-property": "off"
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
},
{
"files": ["*.html"],
"excludedFiles": ["*inline-template-*.component.html"],
"extends": ["plugin:prettier/recommended"],
"rules": {
"prettier/prettier": [
"error",
{
"parser": "angular"
}
]
}
}
]
}
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
# /dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out
# dependencies
/node_modules
# profiling files
chrome-profiler-events.json
speed-measure-plugin.json
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*
# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
# System Files
.DS_Store
Thumbs.db
/ARCHIVE/*
package.json
package-lock.json
yarn.lock
dist
.angular
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"trailingComma": "none",
"bracketSameLine": true,
"printWidth": 80,
"endOfLine": "lf"
}
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"vex": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "vex",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/out",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets",
"src/_redirects",
"src/README.md",
"src/CHANGELOG.md",
"src/.htaccess",
{
"glob": "**/*.svg",
"input": "node_modules/@material-design-icons/svg",
"output": "assets/img/icons/material-design-icons/"
},
{
"glob": "**/*",
"input": "./node_modules/@kolkov/angular-editor/assets/",
"output": "./assets/fonts/"
},
{
"glob": "**/*",
"input": "node_modules/font-awesome/fonts",
"output": "/assets/fonts/"
}
],
"styles": [
"src/styles.scss",
"src/@vex/styles/tailwind.scss",
"node_modules/font-awesome/css/font-awesome.css"
],
"scripts": [],
"allowedCommonJsDependencies": [
"simplebar",
"highlight.js",
"faker",
"showdown",
"core-js",
"dom-set",
"dom-plane",
"angular-calendar/date-adapters/date-fns",
"calendar-utils/date-adapters/date-fns",
"@mattlewis92/dom-autoscroller",
"apexcharts",
"can-use-dom",
"lodash.debounce",
"lodash.memoize",
"lodash.throttle",
"luxon",
"quill",
"fast-sha256",
"moment"
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "3mb",
"maximumError": "5mb"
}
]
},
"test": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.test.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "3mb",
"maximumError": "5mb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "vex:build"
},
"configurations": {
"production": {
"browserTarget": "vex:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "vex:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "vex:serve"
},
"configurations": {
"production": {
"devServerTarget": "vex:serve:production"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"analytics": false,
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
// @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
specs: ['./src/**/*.e2e-spec.ts'],
capabilities: {
browserName: 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function () {}
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.json')
});
jasmine
.getEnv()
.addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome to vex!');
});
afterEach(async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(
jasmine.objectContaining({
level: logging.Level.SEVERE
} as logging.Entry)
);
});
});
import { browser, by, element } from 'protractor';
export class AppPage {
navigateTo() {
return browser.get(browser.baseUrl) as Promise<any>;
}
getTitleText() {
return element(by.css('app-root h1')).getText() as Promise<string>;
}
}
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es2018",
"types": ["jasmine", "jasminewd2", "node"]
}
}
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/vex'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "vex",
"version": "1.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "NODE_ENV=production node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --configuration production",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"format": "prettier --write \"./src/**/*.{ts,json,html}\"",
"lint-format": "npm run format && ng lint --fix"
},
"private": true,
"dependencies": {
"@angular/animations": "^14.0.0",
"@angular/cdk": "^14.0.0",
"@angular/common": "^14.0.0",
"@angular/compiler": "^14.0.0",
"@angular/core": "^14.0.0",
"@angular/flex-layout": "^14.0.0-beta.41",
"@angular/forms": "^14.0.0",
"@angular/material": "^14.0.0",
"@angular/material-moment-adapter": "^14.2.6",
"@angular/platform-browser": "^14.0.0",
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/router": "^14.0.0",
"@ckeditor/ckeditor5-angular": "^7.0.0",
"@ckeditor/ckeditor5-autosave": "^39.0.1",
"@ckeditor/ckeditor5-build-classic": "^39.0.1",
"@ckeditor/ckeditor5-build-decoupled-document": "^39.0.1",
"@ckeditor/ckeditor5-find-and-replace": "^39.0.1",
"@ckeditor/ckeditor5-highlight": "^39.0.1",
"@ckeditor/ckeditor5-horizontal-line": "^39.0.1",
"@ckeditor/ckeditor5-html-embed": "^39.0.1",
"@ckeditor/ckeditor5-html-support": "^39.0.1",
"@ckeditor/ckeditor5-markdown-gfm": "^39.0.1",
"@ckeditor/ckeditor5-restricted-editing": "^39.0.1",
"@ckeditor/ckeditor5-special-characters": "^39.0.1",
"@ckeditor/ckeditor5-style": "^39.0.1",
"@fortawesome/angular-fontawesome": "^0.13.0",
"@fullcalendar/angular": "^6.1.8",
"@fullcalendar/core": "^6.1.8",
"@fullcalendar/daygrid": "^6.1.8",
"@fullcalendar/interaction": "^6.1.8",
"@fullcalendar/timegrid": "^6.1.8",
"@kolkov/angular-editor": "^3.0.0-beta.0",
"@mat-datetimepicker/core": "^12.0.0",
"@material-design-icons/svg": "^0.11.1",
"@ngneat/hot-toast": "^4.1.0",
"@ngneat/overview": "^3.0.0",
"@ngneat/until-destroy": "~9.2.0",
"@ngrx/component": "^14.0.0",
"@ngx-loading-bar/core": "^6.0.2",
"@ngx-loading-bar/router": "^6.0.2",
"angular-calendar": "~0.29.0",
"angular-oauth2-oidc": "^13.0.1",
"apexcharts": "~3.35.3",
"axios": "^1.4.0",
"cors": "^2.8.5",
"date-fns": "~2.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"file-saver": "^2.0.5",
"font-awesome": "^4.7.0",
"highlight.js": "~11.5.1",
"html2canvas": "^1.4.1",
"jspdf": "^1.5.3",
"jspdf-html2canvas": "^1.4.9",
"luxon": "~2.3.0",
"mat-select-filter": "^2.4.1",
"material-icons": "^1.13.6",
"moment": "^2.29.4",
"ngx-quicklink": "~0.2.7",
"ngx-quill": "~17.0.0",
"ngx-showdown": "^6.0.0",
"prettier-eslint": "^15.0.1",
"quill": "~1.3.7",
"rxjs": "^7.4.0",
"save-dev": "^0.0.1-security",
"showdown": "^1.9.1",
"simplebar": "~5.3.8",
"tailwindcss": "^3.0.24",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.0.0",
"@angular-eslint/builder": "14.1.2",
"@angular-eslint/eslint-plugin": "14.1.2",
"@angular-eslint/eslint-plugin-template": "14.1.2",
"@angular-eslint/schematics": "14.1.2",
"@angular-eslint/template-parser": "14.1.2",
"@angular/cli": "^14.0.0",
"@angular/compiler-cli": "^14.0.0",
"@angular/language-service": "^14.0.0",
"@faker-js/faker": "^7.1.0",
"@types/html2canvas": "^1.0.0",
"@types/jasmine": "^3.6.11",
"@types/jasminewd2": "^2.0.9",
"@types/jspdf": "^2.0.0",
"@types/luxon": "^2.3.2",
"@types/node": "^14.14.45",
"@types/showdown": "~1.9.4",
"@typescript-eslint/eslint-plugin": "5.37.0",
"@typescript-eslint/parser": "5.37.0",
"autoprefixer": "^10.4.0",
"eslint": "^8.23.1",
"husky": "^8.0.0",
"jasmine-core": "~3.10.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.3.4",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"postcss": "~8.4.14",
"postcss-scss": "~4.0.4",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"typescript": "~4.7.3"
}
}
const colors = require('tailwindcss/colors');
const plugin = require('tailwindcss/plugin');
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`;
}
return `rgba(var(${variable}), ${opacityValue})`;
};
}
module.exports = {
content: ['./src/**/*.{html,ts}'],
important: ':root',
theme: {
screens: {
sm: '600px',
md: '960px',
lg: '1280px',
xl: '1440px'
},
extend: {
colors: {
current: 'currentColor',
transparent: 'transparent',
'contrast-black': 'black',
'contrast-white': 'white',
gray: {
light: 'rgba(158, 158, 158, 0.1)',
DEFAULT: 'rgb(158, 158, 158)'
},
red: {
light: 'rgba(244, 67, 54, 0.1)',
DEFAULT: 'rgb(244, 67, 54)'
},
orange: {
light: 'rgba(255, 152, 0, 0.1)',
DEFAULT: 'rgb(255, 152, 0)'
},
'deep-orange': {
light: 'rgba(255, 87, 34, 0.1)',
DEFAULT: 'rgb(255, 87, 34)'
},
amber: {
light: 'rgba(255, 193, 7, 0.1)',
DEFAULT: 'rgb(255, 193, 7)'
},
green: {
light: 'rgba(76, 175, 80, 0.1)',
DEFAULT: 'rgb(76, 175, 80)'
},
teal: {
light: 'rgba(0, 150, 136, 0.1)',
DEFAULT: 'rgb(0, 150, 136)'
},
cyan: {
light: 'rgba(0, 188, 212, 0.1)',
DEFAULT: 'rgb(0, 188, 212)'
},
purple: {
light: 'rgba(156, 39, 176, 0.1)',
DEFAULT: 'rgb(156, 39, 176)'
},
'deep-purple': {
light: 'rgba(103, 58, 183, 0.1)',
DEFAULT: 'rgb(103, 58, 183)'
},
pink: {
light: 'rgba(233, 30, 99, 0.1)',
DEFAULT: 'rgb(233, 30, 99)'
},
primary: withOpacityValue('--color-primary'),
accent: withOpacityValue('--color-accent'),
warn: withOpacityValue('--color-warn')
},
spacing: {
gutter: 'var(--padding-gutter)'
},
backgroundColor: theme => ({
...theme('colors'),
base: 'var(--background-base)',
foreground: withOpacityValue('--background-foreground-rgb'),
'app-bar': 'var(--background-app-bar)',
hover: 'var(--background-hover)'
}),
borderColor: theme => ({
...theme('colors'),
DEFAULT: 'var(--foreground-divider)',
divider: 'var(--foreground-divider)'
}),
borderRadius: {
none: '0px',
xs: 'calc(var(--border-radius) * 0.25)',
sm: 'calc(var(--border-radius) * 0.5)',
DEFAULT: 'var(--border-radius)',
md: 'calc(var(--border-radius) * 1.25)',
lg: 'calc(var(--border-radius) * 1.5)',
xl: 'calc(var(--border-radius) * 1.75)',
'2xl': 'calc(var(--border-radius) * 2)',
full: '9999px',
button: 'var(--button-border-radius)'
},
boxShadow: {
b: '0 10px 30px 0 rgba(82,63,104,.06)'
},
fontFamily: {
sans: [
'"Inter var"',
'Inter',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple ColorDef Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto ColorDef Emoji"'
],
serif: ['Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'],
mono: [
'Menlo',
'Monaco',
'Consolas',
'"Liberation Mono"',
'"Courier New"',
'monospace'
]
},
fontSize: {
'2xs': '0.625rem'
},
margin: (theme, { negative }) => ({
...negative({
gutter: 'var(--padding-gutter)'
})
}),
textColor: theme => ({
...theme('colors'),
black: 'var(--text-color)',
white: 'var(--text-color-light)',
secondary: 'var(--text-secondary)',
hint: 'var(--text-hint)',
'primary-contrast': 'rgb(var(--color-primary-contrast))',
'accent-contrast': 'rgb(var(--color-accent-contrast))',
'warn-contrast': 'rgb(var(--color-warn-contrast))',
'red-contrast': '#FFF',
'green-contrast': '#FFF',
'amber-contrast': '#000',
'orange-contrast': '#000',
'deep-orange-contrast': '#FFF',
'purple-contrast': '#FFF',
'deep-purple-contrast': '#FFF',
'cyan-contrast': '#FFF',
'teal-contrast': '#FFF',
'gray-contrast': '#FFF',
'light-green-contrast': '#000'
}),
placeholderColor: {
black: 'var(--text-color)',
white: 'var(--text-color-light)',
secondary: 'var(--text-secondary)'
},
maxWidth: {
'3xs': '16rem',
'2xs': '18rem'
}
}
},
plugins: [
plugin(function ({ addUtilities }) {
addUtilities({
'.icon-xs': {
'font-size': '1rem',
height: '1rem',
width: '1rem',
'line-height': '1rem'
},
'.icon-sm': {
'font-size': '1.25rem',
height: '1.25rem',
width: '1.25rem',
'line-height': '1.25rem'
},
'.icon-base': {
'font-size': '1.5rem',
height: '1.5rem',
width: '1.5rem',
'line-height': '1.5rem'
},
'.icon-lg': {
'font-size': '1.75rem',
height: '1.75rem',
width: '1.75rem',
'line-height': '1.75rem'
},
'.icon-xl': {
'font-size': '2rem',
height: '2rem',
width: '2rem',
'line-height': '2rem'
},
'.icon-2xl': {
'font-size': '2.25rem',
height: '2.25rem',
width: '2.25rem',
'line-height': '2.25rem'
},
'.icon-3xl': {
'font-size': '2.5rem',
height: '2.5rem',
width: '2.5rem',
'line-height': '2.5rem'
},
'.icon-4xl': {
'font-size': '2.75rem',
height: '2.75rem',
width: '2.75rem',
'line-height': '2.75rem'
},
'.icon-5xl': {
'font-size': '3rem',
height: '3rem',
width: '3rem',
'line-height': '3rem'
}
});
})
],
corePlugins: {
container: false
}
};
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": ["node"]
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"]
}
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"sourceMap": true,
"declaration": false,
"allowSyntheticDefaultImports": true,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"resolveJsonModule": true,
"module": "es2020",
"lib": ["es2020", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": ["jasmine"]
},
"files": ["src/test.ts", "src/polyfills.ts"],
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment