Skip to content

Commit 41115e5

Browse files
committed
modify
1 parent f174db8 commit 41115e5

Some content is hidden

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

55 files changed

+439700
-14342
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.ts]
12-
quote_type = single
13-
1411
[*.md]
1512
max_line_length = off
1613
trim_trailing_whitespace = false

README.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#A következő kódrészletek hozzáadása szükséges a FooEvents-hez
1+
[![pages-build-deployment](https://github.com/Bider01/ticket-reports/actions/workflows/pages/pages-build-deployment/badge.svg?branch=gh-pages)](https://github.com/Bider01/ticket-reports/actions/workflows/pages/pages-build-deployment)
22

3-
##fooevents/classes/apihelper.php
3+
# A következő kódrészletek hozzáadása szükséges a FooEvents-hez
4+
5+
## fooevents/classes/apihelper.php
46

57
function getEventUpdatedTicketsWithStatus($eventID, $since) {
68

@@ -49,7 +51,7 @@
4951

5052
}
5153

52-
##fooevents/classes/restapihelper.php
54+
## fooevents/classes/restapihelper.php
5355

5456
public function fooevents_callback_get_check_in(WP_REST_Request $request) {
5557
$authorize_result = $this->fooevents_is_authorized_user($request->get_headers());
@@ -75,7 +77,7 @@
7577
exit();
7678
}
7779

78-
Kódrészlet amit le ki kell egészíteni:
80+
### Kódrészlet amit le ki kell egészíteni:
7981

8082
$rest_api_endpoints = array('login_status',
8183
'get_all_data',
@@ -90,3 +92,26 @@ Kódrészlet amit le ki kell egészíteni:
9092

9193
'get_check_in'
9294
);
95+
96+
### Az elejére el kell helyezni a cross origin engedélyezéséhez:
97+
98+
<? if (isset($_SERVER['HTTP_ORIGIN']) && $_SERVER['HTTP_ORIGIN'] == 'https://bider01.github.io') {
99+
header("Access-Control-Allow-Origin: https://bider01.github.io");
100+
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
101+
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
102+
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
103+
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
104+
header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
105+
exit(0);
106+
}
107+
} ?>
108+
109+
## Parancs a GitHub Page deploy előkészítéséhez:
110+
111+
ng build --output-path docs --base-href /ticket-reports/
112+
113+
##A fooevents.phphoz hozzá kell adni
114+
115+
//RESTAPIHelperOwn
116+
require_once($this->Config->classPath.'ownrestapihelper.php');
117+
$this->RESTAPIHelperOwn = new FooEvents_REST_API_Helper_Own();

angular.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"angular-9-basic-authentication-example": {
6+
"ticket-reports": {
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
10-
"style": "less"
10+
"style": "scss"
1111
}
1212
},
1313
"root": "",
@@ -29,7 +29,7 @@
2929
],
3030
"styles": [
3131
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
32-
"src/styles.less"
32+
"src/styles.scss"
3333
],
3434
"scripts": []
3535
},
@@ -67,19 +67,18 @@
6767
"serve": {
6868
"builder": "@angular-devkit/build-angular:dev-server",
6969
"options": {
70-
"browserTarget": "angular-9-basic-authentication-example:build",
71-
"proxyConfig": "src/proxy.conf.json"
70+
"browserTarget": "ticket-reports:build"
7271
},
7372
"configurations": {
7473
"production": {
75-
"browserTarget": "angular-9-basic-authentication-example:build:production"
74+
"browserTarget": "ticket-reports:build:production"
7675
}
7776
}
7877
},
7978
"extract-i18n": {
8079
"builder": "@angular-devkit/build-angular:extract-i18n",
8180
"options": {
82-
"browserTarget": "angular-9-basic-authentication-example:build"
81+
"browserTarget": "ticket-reports:build"
8382
}
8483
},
8584
"test": {
@@ -117,11 +116,11 @@
117116
"builder": "@angular-devkit/build-angular:protractor",
118117
"options": {
119118
"protractorConfig": "e2e/protractor.conf.js",
120-
"devServerTarget": "angular-9-basic-authentication-example:serve"
119+
"devServerTarget": "ticket-reports:serve"
121120
},
122121
"configurations": {
123122
"production": {
124-
"devServerTarget": "angular-9-basic-authentication-example:serve:production"
123+
"devServerTarget": "ticket-reports:serve:production"
125124
}
126125
}
127126
},
@@ -131,5 +130,5 @@
131130
}
132131
}
133132
},
134-
"defaultProject": "angular-9-basic-authentication-example"
135-
}
133+
"defaultProject": "ticket-reports"
134+
}

docs/444.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<base href="/ticket-reports/">
5+
<title>Karnevál 2022</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
<!-- bootstrap css -->
9+
<link href="//netdna.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" />
10+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
11+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
12+
</head>
13+
<body class="mat-typography">
14+
<app>Loading...</app>
15+
<script src="runtime-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills-es2015.js" type="module"></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es2015.js" type="module"></script><script src="main-es5.js" nomodule defer></script></body>
16+
</html>

docs/favicon.ico

948 Bytes
Binary file not shown.

docs/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<base href="/ticket-reports/">
5+
<title>Karnevál 2022</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
<!-- bootstrap css -->
9+
<link href="//netdna.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" />
10+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
11+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
12+
</head>
13+
<body class="mat-typography">
14+
<app>Loading...</app>
15+
<script src="runtime-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills-es2015.js" type="module"></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es2015.js" type="module"></script><script src="main-es5.js" nomodule defer></script></body>
16+
</html>

docs/login.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<base href="/ticket-reports/">
5+
<title>Karnevál 2022</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
<!-- bootstrap css -->
9+
<link href="//netdna.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" />
10+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
11+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
12+
</head>
13+
<body class="mat-typography">
14+
<app>Loading...</app>
15+
<script src="runtime-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills-es2015.js" type="module"></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es2015.js" type="module"></script><script src="main-es5.js" nomodule defer></script></body>
16+
</html>

0 commit comments

Comments
 (0)