This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "admin-panel", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"build": "vue-cli-service build", | |
"test:unit": "vue-cli-service test:unit", | |
"lint": "vue-cli-service lint", | |
"dev": "vue-cli-service serve", | |
"test:watch": "jest --watchAll" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
module.exports = { | |
css: { | |
loaderOptions: { | |
sass: { | |
additionalData: '@import "~@/styles/main.scss"', | |
}, | |
}, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
mode: 'development', | |
context: '/home/linux/Documents/arvan/admin-panel', | |
node: { | |
setImmediate: false, | |
process: 'mock', | |
dgram: 'empty', | |
fs: 'empty', | |
net: 'empty', | |
tls: 'empty', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import '~variables'; | |
$base-class: 'p-cdnLogServer'; | |
$blue-light-warm: darken(desaturate(adjust-hue($blue-mid-light, 8), 71.19), 2.94); | |
.#{$base-class} { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
&__logStatus, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint {indent: ['error', 4], | |
semi: ['error', 'always'], | |
comma-dangle: ['error', 'always-multiline']} | |
*/ | |
// import Vue from 'vue'; | |
import LogServer from './index'; | |
import render from '~/testingUtils/render'; | |
import mockHttpHandler from '@arvan/cdn/api/httpHandler'; | |
import flushPromises from 'flush-promises'; | |
import routes from '@arvan/cdn/routes'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v-bind="{ | |
id: 'someProp', | |
...(tooltip && {'v-tippy': `{placement: 'top', arrow: true, animation: 'scale'}`}), | |
}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
function WithLoading(Component) { | |
function WihLoadingComponent({ isLoading, error, ...props }) { | |
if (!isLoading && !error) return <Component {...props} />; | |
return <p>there is a problem in fetching url</p>; | |
} | |
WihLoadingComponent.propTypes = { | |
isLoading: PropTypes.bool.isRequired, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Fetch from '../Utilities/fetch'; | |
import List from './render-list'; | |
import WithLoading from './handle-loading'; | |
const ListWithLoading = WithLoading(List); | |
class FetchinUserInfo extends Component { | |
constructor(props) { | |
super(props); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(connect(null, mapDispatchToProps) as any) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.formatOnSave": false, | |
"[typescriptreact]": { | |
"editor.formatOnSave": true | |
}, | |
"[typescript]": { | |
"editor.formatOnSave": true | |
} | |
} |
NewerOlder