This commit is contained in:
Milana
2023-10-02 13:59:38 +03:00
parent c80a29bb75
commit 2f898e6755
19 changed files with 586 additions and 11 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
node_modules/
webpage/hugo.exe

View File

@@ -1,7 +1,7 @@
{
"name": "webpage",
"version": "1.0.0",
"description": "Для визуализации работы с git был использован интерфейс [ungit](https://github.com/FredrikNoren/ungit). Код и текст написаны в [Notepad++](https://notepad-plus-plus.org/).",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"

16
run.js
View File

@@ -1,14 +1,18 @@
const express = require('express');
const path = require('path');
const app = express();
const port = 8080;
app.use(express.static(path.join(__dirname, 'webpage/public')));
// app.use(express.static(path.join(__dirname, 'webpage/public')));
app.get('/', async(req, res) => {
res.sendFile(path.join(__dirname, 'public', 'index.html'));
// app.get('/', async(req, res) => {
//// res.sendFile(path.join(__dirname, 'webpage/public', 'index.html'));
// res.sendFile(path.join(__dirname, 'webpage/public', 'index.html'));
});
// });
app.listen(80, () => {
console.log("Server successfully running on port 8080");
app.use(express.static(path.join(__dirname, "webpage/public")));
// app.use("/posts", express.static(path.join(__dirname, "webpage/content/posts")))
app.listen(port, () => {
console.log(`Server successfully running on port ${port}`);
});

View File

@@ -0,0 +1,39 @@
+++
title = 'Gitea Repo'
date = 2023-10-02T12:09:19+03:00
draft = true
+++
## Открытый git репозиторий
Гайд рассматривает выгрузку существующего локального репозитория. Если вы хотите создавать репозиторий с нуля, предварительно выполните `git init` и `git add <файлы>`.
### Для выгрузки *локального* репозитория необходимо:
1. Зайти на [сайт](http://kormcraft.ddns.net:3000)
![gitea screen](/img/gitea/gitea.jpg)
2. [Зарегистрироваться](http://kormcraft.ddns.net:3000/user/sign_up), адрес электронной почты не обязан быть действительным.
3. Открыть [настройки](http://kormcraft.ddns.net:3000/user/settings):
![gitea user menu](/img/gitea/gitea-profile-menu.jpg)
4. *(Опционально)* На вкладке [Безопасность](http://kormcraft.ddns.net:3000/user/settings/security) подключите двухфакторную аутентификацию.
5. На вкладке [Приложения](http://kormcraft.ddns.net:3000/user/settings/applications), создайте новый токен, который будет использоваться для входа в git credentials manager.
1. Установите название для токена в первой строке
2. Откройте подменю прав, установите флажки:
* repo
* repo:status
* user
* read_user
6. [Создайте](http://kormcraft.ddns.net:3000/repo/create) репозиторий на сервере
7. После создания репозитория, скопируйте ссылку на новый репозиторий и выполните `git remote add origin <http://ссылка.git>`
8. Выполните `git push origin` для выгрузки вашего репозитория.
Важно!
* В репозитории обязан быть хотя бы один коммит.
* Если вы создали ветку `main` вместо `master`, переименуйте ветки.

View File

@@ -1,9 +1,8 @@
+++
title = 'Readme'
title = 'git. Readme.'
date = 2023-10-02T10:03:06+03:00
draft = true
draft = false
+++
## Репозиторий Антона Никитина из ИСП-420ИС
### Для задания [Лабораторная работа №2](https://drive.google.com/drive/folders/1VgvtI2H6wcwnoun6CbvdAcEcET6lXOoc) и задания [Лабораторная работа №3](https://drive.google.com/drive/folders/1VgvtI2H6wcwnoun6CbvdAcEcET6lXOoc) от 02.09.2023
Для визуализации работы с git был использован интерфейс [ungit](https://github.com/FredrikNoren/ungit). Код и текст написаны в [Notepad++](https://notepad-plus-plus.org/).

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

View File

@@ -94,6 +94,53 @@
<div class="pa3 pa4-ns w-100 w-70-ns center">
<h1 class="flex-none">
Recent Posts
</h1>
<section class="w-100 mw8">
<div class="relative w-100 mb4">
<article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l no-underline dark-gray">
<div class="flex flex-column flex-row-ns">
<div class="blah w-100">
<h1 class="f3 fw1 athelas mt0 lh-title">
<a href="/posts/readme/" class="color-inherit dim link">
git. Readme.
</a>
</h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad++.
Благодарю за внимание.
</div>
<a href="/posts/readme/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
</div>
</div>
</div>
</article>
</div>
</section>
</div>
</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">

View File

@@ -5,6 +5,17 @@
<link>http://localhost/</link>
<description>Recent content on Antone webdev</description>
<generator>Hugo -- gohugo.io</generator>
<language>ru-en</language><atom:link href="http://localhost/index.xml" rel="self" type="application/rss+xml" />
<language>ru-en</language>
<lastBuildDate>Mon, 02 Oct 2023 10:03:06 +0300</lastBuildDate><atom:link href="http://localhost/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>git. Readme.</title>
<link>http://localhost/posts/readme/</link>
<pubDate>Mon, 02 Oct 2023 10:03:06 +0300</pubDate>
<guid>http://localhost/posts/readme/</guid>
<description>Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad++.
Благодарю за внимание.</description>
</item>
</channel>
</rss>

View File

@@ -0,0 +1,153 @@
<!DOCTYPE html>
<html lang="ru-en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Gitea Repo | Antone webdev</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="##Открытый git репозиторий ###Для доступа к репозиторию необходимо: Зайти на сайт">
<meta name="generator" content="Hugo 0.119.0">
<meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" href="/ananke/css/main.min.css" >
<meta property="og:title" content="Gitea Repo" />
<meta property="og:description" content="##Открытый git репозиторий ###Для доступа к репозиторию необходимо: Зайти на сайт" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://localhost/posts/gitea-repo/" /><meta property="article:section" content="posts" />
<meta property="article:published_time" content="2023-10-02T12:09:19+03:00" />
<meta property="article:modified_time" content="2023-10-02T12:09:19+03:00" />
<meta itemprop="name" content="Gitea Repo">
<meta itemprop="description" content="##Открытый git репозиторий ###Для доступа к репозиторию необходимо: Зайти на сайт"><meta itemprop="datePublished" content="2023-10-02T12:09:19+03:00" />
<meta itemprop="dateModified" content="2023-10-02T12:09:19+03:00" />
<meta itemprop="wordCount" content="11">
<meta itemprop="keywords" content="" /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Gitea Repo"/>
<meta name="twitter:description" content="##Открытый git репозиторий ###Для доступа к репозиторию необходимо: Зайти на сайт"/>
</head>
<body class="ma0 avenir bg-near-white">
<header>
<div class="bg-black">
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
Antone webdev
</a>
<div class="flex-l items-center">
<div class="ananke-socials">
</div>
</div>
</div>
</nav>
</div>
</header>
<main class="pb7" role="main">
<article class="flex-l flex-wrap justify-between mw8 center ph3">
<header class="mt4 w-100">
<aside class="instapaper_ignoref b helvetica tracked">
POSTS
</aside>
<div id="sharing" class="mt3 ananke-socials">
</div>
<h1 class="f1 athelas mt3 mb1">Gitea Repo</h1>
<time class="f6 mv4 dib tracked" datetime="2023-10-02T12:09:19+03:00">October 2, 2023</time>
</header>
<div class="nested-copy-line-height lh-copy serif f4 nested-links mid-gray pr4-l w-two-thirds-l"><p>##Открытый git репозиторий
###Для доступа к репозиторию необходимо:
Зайти на сайт</p>
<ul class="pa0">
</ul>
<div class="mt6 instapaper_ignoref">
</div>
</div>
<aside class="w-30-l mt6-l">
</aside>
</article>
</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://localhost/" >
&copy; Antone webdev 2023
</a>
<div>
<div class="ananke-socials">
</div>
</div>
</div>
</footer>
</body>
</html>

View File

@@ -0,0 +1,126 @@
<!DOCTYPE html>
<html lang="ru-en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Antone webdev</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="">
<meta name="generator" content="Hugo 0.119.0">
<meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" href="/ananke/css/main.min.css" >
<link href="/posts/index.xml" rel="alternate" type="application/rss+xml" title="Antone webdev" />
<link href="/posts/index.xml" rel="feed" type="application/rss+xml" title="Antone webdev" />
<meta property="og:title" content="Posts" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://localhost/posts/" />
<meta itemprop="name" content="Posts">
<meta itemprop="description" content=""><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Posts"/>
<meta name="twitter:description" content=""/>
</head>
<body class="ma0 avenir bg-near-white">
<header>
<div class="pb3-m pb6-l bg-black">
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
Antone webdev
</a>
<div class="flex-l items-center">
<div class="ananke-socials">
</div>
</div>
</div>
</nav>
<div class="tc-l pv3 ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
Posts
</h1>
</div>
</div>
</header>
<main class="pb7" role="main">
<article class="pa3 pa4-ns nested-copy-line-height">
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"></section>
<section class="flex-ns flex-wrap justify-around mt5">
<div class="relative w-100 w-30-l mb4 bg-white">
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
<div class="bg-white mb3 pa4 gray overflow-hidden">
<span class="f6 db">Posts</span>
<h1 class="f3 near-black">
<a href="/posts/readme/" class="link black dim">
git. Readme.
</a>
</h1>
<div class="nested-links f5 lh-copy nested-copy-line-height">
Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad++.
Благодарю за внимание.
</div>
</div>
</div>
</div>
</section></article>
</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://localhost/" >
&copy; Antone webdev 2023
</a>
<div>
<div class="ananke-socials">
</div>
</div>
</div>
</footer>
</body>
</html>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Posts on Antone webdev</title>
<link>http://localhost/posts/</link>
<description>Recent content in Posts on Antone webdev</description>
<generator>Hugo -- gohugo.io</generator>
<language>ru-en</language>
<lastBuildDate>Mon, 02 Oct 2023 10:03:06 +0300</lastBuildDate><atom:link href="http://localhost/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>git. Readme.</title>
<link>http://localhost/posts/readme/</link>
<pubDate>Mon, 02 Oct 2023 10:03:06 +0300</pubDate>
<guid>http://localhost/posts/readme/</guid>
<description>Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad++.
Благодарю за внимание.</description>
</item>
</channel>
</rss>

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="ru-en">
<head>
<title>http://localhost/posts/</title>
<link rel="canonical" href="http://localhost/posts/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=http://localhost/posts/">
</head>
</html>

View File

@@ -0,0 +1,157 @@
<!DOCTYPE html>
<html lang="ru-en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>git. Readme. | Antone webdev</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad&#43;&#43;.
Благодарю за внимание.">
<meta name="generator" content="Hugo 0.119.0">
<meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" href="/ananke/css/main.min.css" >
<meta property="og:title" content="git. Readme." />
<meta property="og:description" content="Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad&#43;&#43;.
Благодарю за внимание." />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://localhost/posts/readme/" /><meta property="article:section" content="posts" />
<meta property="article:published_time" content="2023-10-02T10:03:06+03:00" />
<meta property="article:modified_time" content="2023-10-02T10:03:06+03:00" />
<meta itemprop="name" content="git. Readme.">
<meta itemprop="description" content="Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad&#43;&#43;.
Благодарю за внимание."><meta itemprop="datePublished" content="2023-10-02T10:03:06+03:00" />
<meta itemprop="dateModified" content="2023-10-02T10:03:06+03:00" />
<meta itemprop="wordCount" content="30">
<meta itemprop="keywords" content="" /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="git. Readme."/>
<meta name="twitter:description" content="Для задания Лабораторная работа №2 и задания Лабораторная работа №3 от 02.09.2023 Для визуализации работы с git был использован интерфейс ungit. Код и текст написаны в Notepad&#43;&#43;.
Благодарю за внимание."/>
</head>
<body class="ma0 avenir bg-near-white">
<header>
<div class="bg-black">
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
Antone webdev
</a>
<div class="flex-l items-center">
<div class="ananke-socials">
</div>
</div>
</div>
</nav>
</div>
</header>
<main class="pb7" role="main">
<article class="flex-l flex-wrap justify-between mw8 center ph3">
<header class="mt4 w-100">
<aside class="instapaper_ignoref b helvetica tracked">
POSTS
</aside>
<div id="sharing" class="mt3 ananke-socials">
</div>
<h1 class="f1 athelas mt3 mb1">git. Readme.</h1>
<time class="f6 mv4 dib tracked" datetime="2023-10-02T10:03:06+03:00">October 2, 2023</time>
</header>
<div class="nested-copy-line-height lh-copy serif f4 nested-links mid-gray pr4-l w-two-thirds-l"><h3 id="для-задания-лабораторная-работа-2httpsdrivegooglecomdrivefolders1vgvti2h6wcwnoun6cbvdacecet6lxooc-и-задания-лабораторная-работа-3httpsdrivegooglecomdrivefolders1vgvti2h6wcwnoun6cbvdacecet6lxooc-от-02092023">Для задания <a href="https://drive.google.com/drive/folders/1VgvtI2H6wcwnoun6CbvdAcEcET6lXOoc">Лабораторная работа №2</a> и задания <a href="https://drive.google.com/drive/folders/1VgvtI2H6wcwnoun6CbvdAcEcET6lXOoc">Лабораторная работа №3</a> от 02.09.2023</h3>
<p>Для визуализации работы с git был использован интерфейс <a href="https://github.com/FredrikNoren/ungit">ungit</a>. Код и текст написаны в <a href="https://notepad-plus-plus.org/">Notepad++</a>.</p>
<p>Благодарю за внимание.</p>
<ul class="pa0">
</ul>
<div class="mt6 instapaper_ignoref">
</div>
</div>
<aside class="w-30-l mt6-l">
</aside>
</article>
</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://localhost/" >
&copy; Antone webdev 2023
</a>
<div>
<div class="ananke-socials">
</div>
</div>
</div>
</footer>
</body>
</html>

View File

@@ -3,6 +3,13 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://localhost/</loc>
<lastmod>2023-10-02T10:03:06+03:00</lastmod>
</url><url>
<loc>http://localhost/posts/readme/</loc>
<lastmod>2023-10-02T10:03:06+03:00</lastmod>
</url><url>
<loc>http://localhost/posts/</loc>
<lastmod>2023-10-02T10:03:06+03:00</lastmod>
</url><url>
<loc>http://localhost/categories/</loc>
</url><url>

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB