._.
This commit is contained in:
parent
9baaba223d
commit
a2a6a0df40
@ -3,8 +3,7 @@ import random
|
||||
|
||||
import jwt
|
||||
|
||||
from API.data.connect import Document, DocumentCategory, Comment
|
||||
from data.connect import init_db, connect, User
|
||||
from data.connect import init_db, connect, User, Document, DocumentCategory, Comment
|
||||
from flask import Flask, Response, request, jsonify
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
15
Desktop/1.py
15
Desktop/1.py
@ -0,0 +1,15 @@
|
||||
def plus(a, b):
|
||||
return a * b
|
||||
|
||||
|
||||
def multiple(func_plus, count):
|
||||
h = 0
|
||||
|
||||
for i in range(count):
|
||||
h += func_plus(1, 2)
|
||||
|
||||
return h
|
||||
|
||||
|
||||
c = multiple(plus, 5)
|
||||
print(c)
|
||||
41
WEB/app/.gitignore
vendored
Normal file
41
WEB/app/.gitignore
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.*
|
||||
.yarn/*
|
||||
!.yarn/patches
|
||||
!.yarn/plugins
|
||||
!.yarn/releases
|
||||
!.yarn/versions
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# next.js
|
||||
/.next/
|
||||
/out/
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
# debug
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# env files (can opt-in for committing if needed)
|
||||
.env*
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
next-env.d.ts
|
||||
36
WEB/app/README.md
Normal file
36
WEB/app/README.md
Normal file
@ -0,0 +1,36 @@
|
||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
|
||||
|
||||
## Getting Started
|
||||
|
||||
First, run the development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
|
||||
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
|
||||
|
||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||
|
||||
## Learn More
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
|
||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
||||
|
||||
## Deploy on Vercel
|
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||
7
WEB/app/jsconfig.json
Normal file
7
WEB/app/jsconfig.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
4
WEB/app/next.config.mjs
Normal file
4
WEB/app/next.config.mjs
Normal file
@ -0,0 +1,4 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {};
|
||||
|
||||
export default nextConfig;
|
||||
2307
WEB/app/package-lock.json
generated
Normal file
2307
WEB/app/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
20
WEB/app/package.json
Normal file
20
WEB/app/package.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "app",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"next": "15.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"postcss": "^8",
|
||||
"tailwindcss": "^3.4.1"
|
||||
}
|
||||
}
|
||||
8
WEB/app/postcss.config.mjs
Normal file
8
WEB/app/postcss.config.mjs
Normal file
@ -0,0 +1,8 @@
|
||||
/** @type {import('postcss-load-config').Config} */
|
||||
const config = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
BIN
WEB/app/public/Logo.png
Normal file
BIN
WEB/app/public/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
23
WEB/app/src/app/app.css
Normal file
23
WEB/app/src/app/app.css
Normal file
@ -0,0 +1,23 @@
|
||||
.page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
background-color: #E3F2C7;
|
||||
height: 7vw;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-evenly;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-string {
|
||||
width: 89%;
|
||||
border: none !important;
|
||||
height: 50px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
28
WEB/app/src/app/components/header.js
Normal file
28
WEB/app/src/app/components/header.js
Normal file
@ -0,0 +1,28 @@
|
||||
'use client';
|
||||
|
||||
import Image from "next/image";
|
||||
import { useState } from "react";
|
||||
|
||||
const Header = () => {
|
||||
const [searchString, setSearchString] = useState('');
|
||||
|
||||
|
||||
const onSearchStringChange = (e) => {
|
||||
setSearchString(e.target.value);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="header">
|
||||
<Image src={"/Logo.png"} width={80} height={80} alt=""/>
|
||||
<input
|
||||
type="text"
|
||||
value={searchString}
|
||||
onChange={onSearchStringChange}
|
||||
placeholder="Введите для поиска"
|
||||
className="search-string"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Header;
|
||||
28
WEB/app/src/app/layout.js
Normal file
28
WEB/app/src/app/layout.js
Normal file
@ -0,0 +1,28 @@
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }) {
|
||||
return (
|
||||
<html lang="ru">
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
36
WEB/app/src/app/page.js
Normal file
36
WEB/app/src/app/page.js
Normal file
@ -0,0 +1,36 @@
|
||||
import './app.css';
|
||||
import Header from './components/header.js';
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="page">
|
||||
|
||||
<Header/>
|
||||
|
||||
<div className="user-list">
|
||||
|
||||
</div>
|
||||
|
||||
<div className="content">
|
||||
|
||||
<div className="calendar-and-events">
|
||||
|
||||
<div className="calendar">
|
||||
|
||||
</div>
|
||||
|
||||
<div className="events">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div className="news">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
17
WEB/app/tailwind.config.mjs
Normal file
17
WEB/app/tailwind.config.mjs
Normal file
@ -0,0 +1,17 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: [
|
||||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
background: "var(--background)",
|
||||
foreground: "var(--foreground)",
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user