Skip to content

Commit 43169e8

Browse files
committed
#326 add malewicz files
1 parent 1dd86e8 commit 43169e8

41 files changed

Lines changed: 1788 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/malewicz/.babelrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"modules": false,
5+
"targets": {
6+
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7+
}
8+
}],
9+
"stage-2"
10+
],
11+
"plugins": ["transform-vue-jsx", "transform-runtime"],
12+
"env": {
13+
"test": {
14+
"presets": ["env", "stage-2"],
15+
"plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]
16+
}
17+
}
18+
}

src/main/malewicz/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

src/main/malewicz/.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/build/
2+
/config/
3+
/dist/
4+
/*.js
5+
/test/unit/coverage/

src/main/malewicz/.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// https://eslint.org/docs/user-guide/configuring
2+
3+
module.exports = {
4+
root: true,
5+
parserOptions: {
6+
parser: 'babel-eslint'
7+
},
8+
env: {
9+
browser: true,
10+
},
11+
extends: [
12+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
13+
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
14+
'plugin:vue/essential',
15+
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
16+
'standard'
17+
],
18+
// required to lint *.vue files
19+
plugins: [
20+
'vue'
21+
],
22+
// add your custom rules here
23+
rules: {
24+
// allow async-await
25+
'generator-star-spacing': 'off',
26+
// allow debugger during development
27+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
28+
}
29+
}

src/main/malewicz/.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.DS_Store
2+
node_modules/
3+
/dist/
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
/test/unit/coverage/
8+
/test/e2e/reports/
9+
selenium-debug.log
10+
11+
# Editor directories and files
12+
.idea
13+
.vscode
14+
*.suo
15+
*.ntvs*
16+
*.njsproj
17+
*.sln

src/main/malewicz/.postcssrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// https://github.com/michael-ciniawsky/postcss-load-config
2+
3+
module.exports = {
4+
"plugins": {
5+
"postcss-import": {},
6+
"postcss-url": {},
7+
// to edit target browsers: use "browserslist" field in package.json
8+
"autoprefixer": {}
9+
}
10+
}

src/main/malewicz/.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
node_js:
3+
- "stable"
4+
script:
5+
- echo "skipping tests"
6+
- docker build -t mgramin/malewicz .
7+
8+
after_success:
9+
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
10+
- docker push mgramin/malewicz

src/main/malewicz/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 sql-boot
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/main/malewicz/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# malewicz
2+
3+
A hackable GUI SQL-manager written on SQL itself
4+
5+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1b7fb7abccda4a16a4f698f40d3bd4dc)](https://app.codacy.com/app/mgramin/malewicz?utm_source=github.com&utm_medium=referral&utm_content=sql-boot/malewicz&utm_campaign=Badge_Grade_Dashboard)
6+
[![Build Status](https://travis-ci.org/sql-boot/malewicz.svg?branch=master)](https://travis-ci.org/sql-boot/malewicz)
7+
8+
:warning: This project is in early stage of development and is currently available only as a demo (online or local) based on [simple Oracle sql-scripts](https://github.com/sql-boot/sql-boot-oracle).
9+
10+
Backend powered by [sql-boot](https://github.com/sql-boot/sql-boot)
11+
12+
### Try online demo
13+
14+
- [oracle/table/scott](http://217.73.63.31:8080/#/oracle/table/scott) - show all tables in "scott" schema for "oracle" database (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/schema/table/README.md) SQL-query)
15+
- [oracle/table/oracle/table/scott?page=1,2](http://217.73.63.31:8080/#/oracle/table/scott?page=1,2) - show all tables in "scott" schema with pagination (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/schema/table/README.md) SQL-query)
16+
- [oracle/table/scott.emp](http://217.73.63.31:8080/#/oracle/table/scott.emp) - show "scott.emp" table (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/schema/table/README.md) SQL-query)
17+
- [oracle/table/scott.dept](http://217.73.63.31:8080/#/oracle/table/scott.dept) - show "scott.dept" table (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/schema/table/README.md) SQL-query)
18+
- [oracle/column/scott.emp](http://217.73.63.31:8080/#/oracle/column/scott.emp) - show all column for table "scott.emp" (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/schema/table/column/README.md) SQL-query)
19+
20+
21+
- [oracle/active_session](http://217.73.63.31:8080/#/oracle/active_session/) - show active sessions (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/instance/active_session/README.md) SQL-query)
22+
- [oracle/table_size_rating](http://217.73.63.31:8080/#/oracle/table_size_rating) - show tables size (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/storage/tablespace/table_size_rating/README.md) SQL-query)
23+
- [oracle/locks](http://217.73.63.31:8080/#/oracle/locks) - show object locks (base on [this](https://github.com/sql-boot/sql-boot-oracle/blob/master/database/instance/locks/README.md) SQL-query)
24+
25+
26+
### Try local demo
27+
28+
1. Run demo
29+
```bash
30+
git clone https://github.com/sql-boot/malewicz.git
31+
cd malewicz
32+
docker-compose up -d --build
33+
http://localhost:8080
34+
```
35+
36+
2. Go to the sql-boot/conf/sql-boot-oracle and play with scripts

src/main/malewicz/build/build.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
'use strict'
2+
require('./check-versions')()
3+
4+
process.env.NODE_ENV = 'production'
5+
6+
const ora = require('ora')
7+
const rm = require('rimraf')
8+
const path = require('path')
9+
const chalk = require('chalk')
10+
const webpack = require('webpack')
11+
const config = require('../config')
12+
const webpackConfig = require('./webpack.prod.conf')
13+
14+
const spinner = ora('building for production...')
15+
spinner.start()
16+
17+
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18+
if (err) throw err
19+
webpack(webpackConfig, (err, stats) => {
20+
spinner.stop()
21+
if (err) throw err
22+
process.stdout.write(stats.toString({
23+
colors: true,
24+
modules: false,
25+
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
26+
chunks: false,
27+
chunkModules: false
28+
}) + '\n\n')
29+
30+
if (stats.hasErrors()) {
31+
console.log(chalk.red(' Build failed with errors.\n'))
32+
process.exit(1)
33+
}
34+
35+
console.log(chalk.cyan(' Build complete.\n'))
36+
console.log(chalk.yellow(
37+
' Tip: built files are meant to be served over an HTTP server.\n' +
38+
' Opening index.html over file:// won\'t work.\n'
39+
))
40+
})
41+
})

0 commit comments

Comments
 (0)