浏览代码

initial commit

master
yusmardianto 3 年前
当前提交
ead74cff08
共有 34 个文件被更改,包括 12501 次插入0 次删除
  1. +16
    -0
      .editorconfig
  2. +2
    -0
      .env.example
  3. +3
    -0
      .eslintignore
  4. +27
    -0
      .eslintrc
  5. +114
    -0
      .gitignore
  6. +3
    -0
      README.md
  7. +0
    -0
      api/.gitkeep
  8. +52
    -0
      api/booking/config/routes.json
  9. +8
    -0
      api/booking/controllers/booking.js
  10. +8
    -0
      api/booking/models/booking.js
  11. +55
    -0
      api/booking/models/booking.settings.json
  12. +8
    -0
      api/booking/services/booking.js
  13. +52
    -0
      api/fasilitas-kamar/config/routes.json
  14. +8
    -0
      api/fasilitas-kamar/controllers/fasilitas-kamar.js
  15. +8
    -0
      api/fasilitas-kamar/models/fasilitas-kamar.js
  16. +25
    -0
      api/fasilitas-kamar/models/fasilitas-kamar.settings.json
  17. +8
    -0
      api/fasilitas-kamar/services/fasilitas-kamar.js
  18. +52
    -0
      api/jenis-kamar/config/routes.json
  19. +8
    -0
      api/jenis-kamar/controllers/jenis-kamar.js
  20. +8
    -0
      api/jenis-kamar/models/jenis-kamar.js
  21. +41
    -0
      api/jenis-kamar/models/jenis-kamar.settings.json
  22. +8
    -0
      api/jenis-kamar/services/jenis-kamar.js
  23. +15
    -0
      config/database.js
  24. +13
    -0
      config/functions/bootstrap.js
  25. +21
    -0
      config/functions/cron.js
  26. +5
    -0
      config/functions/responses/404.js
  27. +9
    -0
      config/server.js
  28. +0
    -0
      extensions/.gitkeep
  29. +3
    -0
      extensions/users-permissions/config/jwt.js
  30. 二进制
      favicon.ico
  31. +39
    -0
      package.json
  32. +3
    -0
      public/robots.txt
  33. +0
    -0
      public/uploads/.gitkeep
  34. +11879
    -0
      yarn.lock

+ 16
- 0
.editorconfig 查看文件

@@ -0,0 +1,16 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

+ 2
- 0
.env.example 查看文件

@@ -0,0 +1,2 @@
HOST=0.0.0.0
PORT=1337

+ 3
- 0
.eslintignore 查看文件

@@ -0,0 +1,3 @@
.cache
build
**/node_modules/**

+ 27
- 0
.eslintrc 查看文件

@@ -0,0 +1,27 @@
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"es6": true,
"node": true,
"browser": false
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": false
},
"sourceType": "module"
},
"globals": {
"strapi": true
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}

+ 114
- 0
.gitignore 查看文件

@@ -0,0 +1,114 @@
############################
# OS X
############################

.DS_Store
.AppleDouble
.LSOverride
Icon
.Spotlight-V100
.Trashes
._*


############################
# Linux
############################

*~


############################
# Windows
############################

Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp


############################
# Packages
############################

*.7z
*.csv
*.dat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.com
*.class
*.dll
*.exe
*.o
*.seed
*.so
*.swo
*.swp
*.swn
*.swm
*.out
*.pid


############################
# Logs and databases
############################

.tmp
*.log
*.sql
*.sqlite
*.sqlite3


############################
# Misc.
############################

*#
ssl
.idea
nbproject
public/uploads/*
!public/uploads/.gitkeep

############################
# Node.js
############################

lib-cov
lcov.info
pids
logs
results
node_modules
.node_history

############################
# Tests
############################

testApp
coverage

############################
# Strapi
############################

.env
license.txt
exports
*.cache
build
.strapi-updater.json

+ 3
- 0
README.md 查看文件

@@ -0,0 +1,3 @@
# Strapi application

A quick description of your strapi application

+ 0
- 0
api/.gitkeep 查看文件


+ 52
- 0
api/booking/config/routes.json 查看文件

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/bookings",
"handler": "booking.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/bookings/count",
"handler": "booking.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/bookings/:id",
"handler": "booking.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/bookings",
"handler": "booking.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/bookings/:id",
"handler": "booking.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/bookings/:id",
"handler": "booking.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/booking/controllers/booking.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};

+ 8
- 0
api/booking/models/booking.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};

+ 55
- 0
api/booking/models/booking.settings.json 查看文件

@@ -0,0 +1,55 @@
{
"kind": "collectionType",
"collectionName": "bookings",
"info": {
"name": "Booking",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"namaPemesan": {
"type": "string"
},
"emailPemesan": {
"type": "email"
},
"teleponPemesan": {
"type": "string"
},
"pemesan": {
"type": "string"
},
"requestKamar": {
"type": "string"
},
"catatan": {
"type": "text"
},
"hargaKamar": {
"type": "biginteger"
},
"namaKamar": {
"type": "string"
},
"ppnKamar": {
"type": "decimal"
},
"hargaTotal": {
"type": "biginteger"
},
"jumlahPengunjung": {
"type": "string"
},
"checkIn": {
"type": "string"
},
"checkOut": {
"type": "string"
}
}
}

+ 8
- 0
api/booking/services/booking.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
* to customize this service
*/

module.exports = {};

+ 52
- 0
api/fasilitas-kamar/config/routes.json 查看文件

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/fasilitas-kamars",
"handler": "fasilitas-kamar.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/fasilitas-kamars/count",
"handler": "fasilitas-kamar.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/fasilitas-kamars/:id",
"handler": "fasilitas-kamar.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/fasilitas-kamars",
"handler": "fasilitas-kamar.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/fasilitas-kamars/:id",
"handler": "fasilitas-kamar.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/fasilitas-kamars/:id",
"handler": "fasilitas-kamar.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/fasilitas-kamar/controllers/fasilitas-kamar.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};

+ 8
- 0
api/fasilitas-kamar/models/fasilitas-kamar.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};

+ 25
- 0
api/fasilitas-kamar/models/fasilitas-kamar.settings.json 查看文件

@@ -0,0 +1,25 @@
{
"kind": "collectionType",
"collectionName": "fasilitas_kamars",
"info": {
"name": "FasilitasKamar"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"namaFasilitas": {
"type": "string"
},
"jenis_kamar": {
"via": "fasilitas_kamars",
"model": "jenis-kamar"
},
"hargaFasilitas": {
"type": "biginteger"
}
}
}

+ 8
- 0
api/fasilitas-kamar/services/fasilitas-kamar.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
* to customize this service
*/

module.exports = {};

+ 52
- 0
api/jenis-kamar/config/routes.json 查看文件

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/jenis-kamars",
"handler": "jenis-kamar.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/jenis-kamars/count",
"handler": "jenis-kamar.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/jenis-kamars/:id",
"handler": "jenis-kamar.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/jenis-kamars",
"handler": "jenis-kamar.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/jenis-kamars/:id",
"handler": "jenis-kamar.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/jenis-kamars/:id",
"handler": "jenis-kamar.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/jenis-kamar/controllers/jenis-kamar.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};

+ 8
- 0
api/jenis-kamar/models/jenis-kamar.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};

+ 41
- 0
api/jenis-kamar/models/jenis-kamar.settings.json 查看文件

@@ -0,0 +1,41 @@
{
"kind": "collectionType",
"collectionName": "jenis_kamars",
"info": {
"name": "JenisKamar",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"namaKamar": {
"type": "string"
},
"hargaKamar": {
"type": "biginteger"
},
"jumlahKamar": {
"type": "biginteger"
},
"fasilitas_kamars": {
"via": "jenis_kamar",
"collection": "fasilitas-kamar"
},
"imgKamar": {
"model": "file",
"via": "related",
"allowedTypes": [
"images",
"files",
"videos"
],
"plugin": "upload",
"required": false,
"pluginOptions": {}
}
}
}

+ 8
- 0
api/jenis-kamar/services/jenis-kamar.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
* to customize this service
*/

module.exports = {};

+ 15
- 0
config/database.js 查看文件

@@ -0,0 +1,15 @@
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'sqlite',
filename: env('DATABASE_FILENAME', '.tmp/data.db'),
},
options: {
useNullAsDefault: true,
},
},
},
});

+ 13
- 0
config/functions/bootstrap.js 查看文件

@@ -0,0 +1,13 @@
'use strict';

/**
* An asynchronous bootstrap function that runs before
* your application gets started.
*
* This gives you an opportunity to set up your data model,
* run jobs, or perform some special logic.
*
* See more details here: https://strapi.io/documentation/developer-docs/latest/setup-deployment-guides/configurations.html#bootstrap
*/

module.exports = () => {};

+ 21
- 0
config/functions/cron.js 查看文件

@@ -0,0 +1,21 @@
'use strict';

/**
* Cron config that gives you an opportunity
* to run scheduled jobs.
*
* The cron format consists of:
* [SECOND (optional)] [MINUTE] [HOUR] [DAY OF MONTH] [MONTH OF YEAR] [DAY OF WEEK]
*
* See more details here: https://strapi.io/documentation/developer-docs/latest/setup-deployment-guides/configurations.html#cron-tasks
*/

module.exports = {
/**
* Simple example.
* Every monday at 1am.
*/
// '0 1 * * 1': () => {
//
// }
};

+ 5
- 0
config/functions/responses/404.js 查看文件

@@ -0,0 +1,5 @@
'use strict';

module.exports = async (/* ctx */) => {
// return ctx.notFound('My custom message 404');
};

+ 9
- 0
config/server.js 查看文件

@@ -0,0 +1,9 @@
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
admin: {
auth: {
secret: env('ADMIN_JWT_SECRET', 'ea704c52f457e83bff1b8a05b9c3a835'),
},
},
});

+ 0
- 0
extensions/.gitkeep 查看文件


+ 3
- 0
extensions/users-permissions/config/jwt.js 查看文件

@@ -0,0 +1,3 @@
module.exports = {
jwtSecret: process.env.JWT_SECRET || 'db5cfb09-9ac9-411f-8ffc-30fb7be102a6'
};

二进制
favicon.ico 查看文件

之前 之后

+ 39
- 0
package.json 查看文件

@@ -0,0 +1,39 @@
{
"name": "tbg-catania-hotel",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"knex": "0.21.18",
"sqlite3": "5.0.0",
"strapi": "3.6.8",
"strapi-admin": "3.6.8",
"strapi-connector-bookshelf": "3.6.8",
"strapi-plugin-content-manager": "3.6.8",
"strapi-plugin-content-type-builder": "3.6.8",
"strapi-plugin-email": "3.6.8",
"strapi-plugin-graphql": "3.6.8",
"strapi-plugin-i18n": "3.6.8",
"strapi-plugin-upload": "3.6.8",
"strapi-plugin-users-permissions": "3.6.8",
"strapi-utils": "3.6.8"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "64646ad5-7507-4cd8-93e5-3dbc4aedf338"
},
"engines": {
"node": ">=10.16.0 <=14.x.x",
"npm": "^6.0.0"
},
"license": "MIT"
}

+ 3
- 0
public/robots.txt 查看文件

@@ -0,0 +1,3 @@
# To prevent search engines from seeing the site altogether, uncomment the next two lines:
# User-Agent: *
# Disallow: /

+ 0
- 0
public/uploads/.gitkeep 查看文件


+ 11879
- 0
yarn.lock
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存