Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 23, 2022
1 parent 24b385d commit f09d198
Show file tree
Hide file tree
Showing 64 changed files with 374 additions and 460 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Ignore artifacts:
build
coverage
api-generator
dist
out
public
styles
node_modules
.vscode
4 changes: 2 additions & 2 deletions api-generator/build-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const library = {
const fileModules = {};

const files = fs.readdirSync(componentPath);
files.forEach(file => {
files.forEach((file) => {
const { name } = path.parse(file);

fileModules[name] = require(`./components//${name}`);
Expand Down Expand Up @@ -49,7 +49,7 @@ const createWebTypes = (component) => {
webTypes.tags.push(tag);
};

Object.keys(fileModules).forEach(p => {
Object.keys(fileModules).forEach((p) => {
createWebTypes(fileModules[p][p]);
});
const webTypesJson = JSON.stringify(webTypes, null, 4);
Expand Down
2 changes: 1 addition & 1 deletion api-generator/components/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const AccordionStyles = [
name: 'p-accordion-content',
description: 'Container of a tab.'
}
]
];

module.exports = {
accordion: {
Expand Down
8 changes: 2 additions & 6 deletions api-generator/components/accordiontab.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,9 @@ const AccordionTabProps = [
}
];

const AccordionTabEvents = [
const AccordionTabEvents = [];

];

const AccordionTabStyles = [

];
const AccordionTabStyles = [];

module.exports = {
accordiontab: {
Expand Down
10 changes: 3 additions & 7 deletions api-generator/components/avatargroup.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
const AvatarGroupProps = [
const AvatarGroupProps = [];

];
const AvatarGroupEvents = [];

const AvatarGroupEvents = [

];

const AvatarGroupStyles = [ { name: 'p-avatar-group', description: 'Container element.' } ];
const AvatarGroupStyles = [{ name: 'p-avatar-group', description: 'Container element.' }];

module.exports = {
avatargroup: {
Expand Down
4 changes: 1 addition & 3 deletions api-generator/components/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ const BadgeProps = [
}
];

const BadgeEvents = [

];
const BadgeEvents = [];

const BadgeStyles = [
{ name: 'p-badge', description: 'Badge element' },
Expand Down
2 changes: 1 addition & 1 deletion api-generator/components/blockui.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const BlockUIEvents = [
name: 'onUnblocked',
description: 'Fired when the element gets unblocked.',
arguments: []
},
}
];

const BlockUIStyles = [
Expand Down
4 changes: 1 addition & 3 deletions api-generator/components/breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const BreadCrumbProps = [
}
];

const BreadCrumbEvents = [

];
const BreadCrumbEvents = [];

const BreadCrumbStyles = [
{ name: 'p-breadcrumb', description: 'Container element.' },
Expand Down
4 changes: 1 addition & 3 deletions api-generator/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ const ButtonProps = [
}
];

const ButtonEvents = [

];
const ButtonEvents = [];

const ButtonStyles = [
{ name: 'p-button', description: 'Button element' },
Expand Down
1 change: 0 additions & 1 deletion api-generator/components/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ const CalendarEvents = [
}
]
}

];

const CalendarStyles = [
Expand Down
62 changes: 30 additions & 32 deletions api-generator/components/captcha.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
const CaptchaProps = [
{
name: 'id',
type: 'string',
default: 'null',
description: 'Unique identifier of the element.'
name: 'id',
type: 'string',
default: 'null',
description: 'Unique identifier of the element.'
},
{
name: 'siteKey',
type: 'string',
default: 'null',
description: 'Public sitekey.'
name: 'siteKey',
type: 'string',
default: 'null',
description: 'Public sitekey.'
},
{
name: 'theme',
type: 'string',
default: 'light',
description: 'The color scheme of the widget.'
name: 'theme',
type: 'string',
default: 'light',
description: 'The color scheme of the widget.'
},
{
name: 'type',
type: 'string',
default: 'image',
description: 'The type of CAPTCHA to serve.'
name: 'type',
type: 'string',
default: 'image',
description: 'The type of CAPTCHA to serve.'
},
{
name: 'size',
type: 'string',
default: 'normal',
description: 'The size of the widget.'
name: 'size',
type: 'string',
default: 'normal',
description: 'The size of the widget.'
},
{
name: 'tabIndex',
type: 'number',
default: '0',
description: 'The tabIndex of the widget and challenge.'
name: 'tabIndex',
type: 'number',
default: '0',
description: 'The tabIndex of the widget and challenge.'
},
{
name: 'language',
type: 'string',
default: 'en',
description: 'Language of the widget.'
name: 'language',
type: 'string',
default: 'en',
description: 'Language of the widget.'
}
];
];

const CaptchaEvents = [
{
Expand All @@ -62,9 +62,7 @@ const CaptchaEvents = [
}
];

const CaptchaStyles = [

];
const CaptchaStyles = [];

module.exports = {
captcha: {
Expand Down
4 changes: 1 addition & 3 deletions api-generator/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ const CardProps = [
}
];

const CardEvents = [

];
const CardEvents = [];

const CardStyles = [
{ name: 'p-card', description: 'Container element.' },
Expand Down
8 changes: 2 additions & 6 deletions api-generator/components/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@ const ChartProps = [
}
];

const ChartEvents = [
const ChartEvents = [];

];

const ChartStyles = [

];
const ChartStyles = [];

module.exports = {
chart: {
Expand Down
4 changes: 2 additions & 2 deletions api-generator/components/chips.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const ChipsProps = [
type: 'boolean',
default: 'null',
description: 'Whether to add an item when the input loses focus.'
},
}
];

const ChipsEvents = [
Expand Down Expand Up @@ -173,7 +173,7 @@ const ChipsEvents = [
description: 'Browser event'
}
]
},
}
];

const ChipsStyles = [
Expand Down
4 changes: 2 additions & 2 deletions api-generator/components/colorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ const ColorPickerEvents = [
},
{
name: 'onShow',
description: 'Callback to invoke when overlay panel becomes visible.',
description: 'Callback to invoke when overlay panel becomes visible.'
},
{
name: 'onHide',
description: 'Callback to invoke when overlay panel becomes hidden.',
description: 'Callback to invoke when overlay panel becomes hidden.'
}
];

Expand Down
4 changes: 1 addition & 3 deletions api-generator/components/column.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,7 @@ const ColumnEvents = [
}
];

const ColumnStyles = [

];
const ColumnStyles = [];

module.exports = {
column: {
Expand Down
12 changes: 3 additions & 9 deletions api-generator/components/columngroup.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
const ColumnGroupProps = [
const ColumnGroupProps = [];

];
const ColumnGroupEvents = [];

const ColumnGroupEvents = [

];

const ColumnGroupStyles = [

];
const ColumnGroupStyles = [];

module.exports = {
columngroup: {
Expand Down
Loading

0 comments on commit f09d198

Please sign in to comment.