Skip to content

Commit

Permalink
Merge pull request #170 from puikinsh/master
Browse files Browse the repository at this point in the history
Merge pull request #168 from puikinsh/Datatable_bug_fix_and_package_u…
  • Loading branch information
puikinsh authored May 15, 2024
2 parents d0bbbeb + 6389368 commit e0e254e
Show file tree
Hide file tree
Showing 58 changed files with 21,989 additions and 724 deletions.
13 changes: 4 additions & 9 deletions .babelrc
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"presets": ["@babel/preset-env"],
"plugins": [
"transform-class-properties",
"transform-object-rest-spread"
],
"presets": [
["env", {
"modules": false
}],
"stage-0"
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread"
]
}
}
56 changes: 56 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"extends": "airbnb-base",
"parser": "@babel/eslint-parser",
"settings": {
"ecmascript": 7
},
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"modules": true,
"destructuring": true,
"classes": true,
"forOf": true,
"blockBindings": true,
"arrowFunctions": true
}
},
"env": {
"browser": true
},
"rules": {
"arrow-body-style": 0,
"prefer-arrow-callback": 0,
"arrow-parens": 0,
"no-param-reassign": 0,
"no-new": 0,
"consistent-return": 0,
"key-spacing": 0,
"no-multi-spaces": 0,
"no-underscore-dangle": 0,
"one-var": 0,
"global-require": 0,
"class-methods-use-this": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"func-names": 0,
"function-paren-newline": 0,
"indent": 2,
"new-cap": 0,
"no-plusplus": 0,
"no-return-assign": 0,
"quote-props": 0,
"template-curly-spacing": 0,
"no-unused-expressions": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"linebreak-style": ["error", "windows"]
}
}
66 changes: 0 additions & 66 deletions .eslintrc.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Merge checks

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run build
- name: Get version
run: echo "::set-output name=version::v$(./ci/getVersion.sh)"
id: version

- name: Verify version
run: |
./ci/verifyVersion.sh ${{ steps.version.outputs.version }}
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: NodeJS with Webpack

on:
push:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run release:minified
zip -r -j static_minified.zip dist/*
npm run release:unminified
zip -r -j static_unminified.zip dist/*
- name: Get version
run: echo "::set-output name=version::v$(./ci/getVersion.sh)"
id: version

- name: Verify version
run: |
./ci/verifyVersion.sh ${{ steps.version.outputs.version }}
# Verify changelog has entry with new version
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}
files: |
static_minified.zip
static_unminified.zip
fail_on_unmatched_files: true
prerelease: false
draft: false
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ logs
npm-debug.log*
node_modules
yarn.lock
package-lock.json

# ----------------------------
# Project Folders
# ----------------------------

build/
dist/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
9 changes: 9 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "stylelint-config-standard",
"rules": {
"at-rule-no-unknown": null,
"at-rule-empty-line-before": null,
"selector-list-comma-newline-after": null,
"block-opening-brace-space-before": null
}
}
7 changes: 0 additions & 7 deletions .stylelintrc.yml

This file was deleted.

18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
### Changelog
# Changelog

#### 1.0.0
## [2.1.0]
- Upgraded all dependencies

## [2.0.0]

### Changed
- Upgrade to Bootstrap 5

## [1.1.0]

### Changed
- Upgrade to webpack 5

## [1.0.0]

### Added
- Intial release
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Adminator HTML5 Admin Template
**Adminator** is a responsive Bootstrap 4 Admin Template. It provides you with a collection of ready to use code snippets and utilities, custom pages, a collection of applications and some useful widgets. Preview of this awesome admin template available here: https://colorlib.com/polygon/adminator/index.html
# Adminator Bootstrap 5 Admin Template
**Adminator** is a responsive Bootstrap 5 Admin Template. It provides you with a collection of ready to use code snippets and utilities, custom pages, a collection of applications and some useful widgets. Preview of this awesome admin template available here: https://colorlib.com/polygon/adminator/index.html

# Preview

Expand All @@ -13,6 +13,7 @@
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installing & Local Development](#installing--local-development)
- [Adminator for other platforms and frameworks](#adminator-for-other-platforms-and-frameworks)
- [Files/Folder Structure](#filesfolders-structure)
- [Deployment](#deployment)
- [Built With](#built-with)
Expand All @@ -22,10 +23,10 @@


## Getting Started
In order to run **Adminator** on your local machine all what you need to do is to have the prerequisites stated below installed on your machine and follow the installation steps down below.
In order to run **Adminator** on your local machine all what you need to do is to have the prerequisites stated below installed on your machine and follow the installation steps down below. Prebuilt static assets can be found under [releases](https://github.com/puikinsh/Adminator-admin-dashboard/releases).

#### Prerequisites
- Node.js
- Node.js 14+
- Yarn or NPM
- Git
- libpng-dev *linux only*
Expand All @@ -39,7 +40,8 @@ Start by typing the following commands in your terminal in order to get **Admina
> npm install
> npm run dev
```

## Adminator for other platforms and frameworks
* [Adminator right to left](https://github.com/mortezakarimi/Adminator-admin-dashboard-rtl) Adminator modified to work with right to left languages like Persian and Arabic

## Files/Folders Structure
Here is a brief explanation of the template folder structure and some of its main files usage:
Expand Down
12 changes: 11 additions & 1 deletion browserslist
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
Last 3 versions
# https://github.com/browserslist/browserslist#readme

>= 0.5%
last 2 major versions
not dead
Chrome >= 60
Firefox >= 60
Firefox ESR
iOS >= 12
Safari >= 12
not Explorer <= 11
1 change: 1 addition & 0 deletions ci/getVersion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo $(sed 's/.*"version": "\(.*\)".*/\1/;t;d' ./package.json)
9 changes: 9 additions & 0 deletions ci/verifyVersion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
VERSION=$1
TAG_EXISTS=$(git ls-remote --tags origin $VERSION | wc -l)

if [ $TAG_EXISTS -eq "1" ]; then
echo "The tag '$VERSION' already exists. Please update version in package.json.";
exit 1;
fi

echo "The tag '$VERSION' does not exist - success.";
Loading

0 comments on commit e0e254e

Please sign in to comment.