Skip to content

Commit 0b1fcc4

Browse files
committed
First skeleton
1 parent 0ab669c commit 0b1fcc4

File tree

11 files changed

+107
-0
lines changed

11 files changed

+107
-0
lines changed

Admin.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace User;
4+
5+
class Admin
6+
{
7+
function __construct()
8+
{
9+
//action
10+
}
11+
}

Ajax.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace User;
4+
5+
class Ajax
6+
{
7+
function __construct()
8+
{
9+
//action
10+
}
11+
}

Api.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace User;
4+
5+
class Api
6+
{
7+
function __construct()
8+
{
9+
//action
10+
}
11+
}

Assets/css/pack-user.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* pack-user.css */

Assets/js/pack-user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* pack-user.js */

Assets/media/user/no.png

2.5 KB
Loading

Config/Routes/User.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
$router->respond('get', '/user', 'User\Page::index')
4+
->respond('get', '/u/\?(.*)', 'User\Page::index')
5+
->respond('get', 'u/login', 'User\Page::login')
6+
7+
//AJAX ----------
8+
->respond('post', 'x/put', 'User\Ajax::put')
9+
->respond('post', 'x/save', 'User\Ajax::save')
10+
->respond('post', 'x/checklink', 'User\Ajax::checkLink')
11+
->respond('post', 'x/delete/(?<id>(\d+)?)', 'User\Ajax::delete')
12+
->respond('post', 'x/upload/(?<id>(\d+)?)', 'User\Ajax::upload')
13+
14+
//ADMIN
15+
->respond('get', 'u/admin', 'User\Admin::index')
16+
->respond('get', 'u/admin/(\d+)/(\d+)/(\d+)', 'User\Admin::pagination');

Html/login.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="description" content="">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title>Login</title>
8+
<link rel="stylesheet" href="css/style.css">
9+
<link rel="author" href="humans.txt">
10+
</head>
11+
<body>
12+
13+
<h1>Login</h1>
14+
15+
<script src="js/main.js"></script>
16+
</body>
17+
</html>

Html/perfil.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="description" content="">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title>Perfil</title>
8+
<link rel="stylesheet" href="css/style.css">
9+
<link rel="author" href="humans.txt">
10+
</head>
11+
<body>
12+
13+
<h1>Perfil</h1>
14+
15+
<script src="js/main.js"></script>
16+
</body>
17+
</html>

Model/User.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace User\Model;
4+
5+
class User
6+
{
7+
function __construct()
8+
{
9+
//action
10+
}
11+
}

0 commit comments

Comments
 (0)