Compare commits
18 Commits
774d695414
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4612a4a90e | |||
| aa81664d8f | |||
| 3fe09c21d7 | |||
| cf1fe7eb26 | |||
| 8509ca6077 | |||
| dd6fab7c58 | |||
| 78fc372bc3 | |||
| e3cb3e8a8b | |||
| 2f8410a18b | |||
| 8ea68b0ca3 | |||
| aa0362e7cc | |||
| b5d88122d5 | |||
| 76cf25d136 | |||
| df5021139d | |||
| b1d8182eb7 | |||
| 592f7743dd | |||
| 70dafac03a | |||
| fd152c481c |
21
.gitea/workflows/prod.yaml
Normal file
21
.gitea/workflows/prod.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: ASP.NET Core CI/Deploy
|
||||
run-name: ${{ gitea.actor }} is testing out gitea Actions 🚀
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
- name: List files in the repository
|
||||
run: ls -a
|
||||
- run: docker compose -f docker-compose.yaml down
|
||||
- name: Remove all un-used container and images
|
||||
run: docker system prune -af
|
||||
- run: docker compose -f docker-compose.yaml up -d --build --force-recreate
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
@@ -55,7 +55,7 @@ namespace ConstructorApp.BusinessLayer.Concrete
|
||||
|
||||
public void TProjectStatusPassive(int id)
|
||||
{
|
||||
_projectDal.rojectStatusPassive(id);
|
||||
_projectDal.ProjectStatusPassive(id);
|
||||
}
|
||||
|
||||
public void TUpdate(Project entity)
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
public interface IProjectDal : IGenericDal<Project>
|
||||
{
|
||||
void ProjectStatusActive(int id);
|
||||
void rojectStatusPassive(int id);
|
||||
void ProjectStatusPassive(int id);
|
||||
int CountAll();
|
||||
Project GetBySlug(string slug);
|
||||
Project GetProjectWithImagesBySlug(string slug);
|
||||
|
||||
@@ -30,10 +30,10 @@ namespace ConstructorApp.DataAccessLayer.Concrete
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
//lokal migration
|
||||
//optionsBuilder.UseSqlServer("Server=SABI\\SQLEXPRESS;initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer("Server=SABI;initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True");
|
||||
|
||||
//uzak migration
|
||||
optionsBuilder.UseSqlServer("Server=94.138.207.4;initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer("Server=94.138.207.4;initial Catalog=CONSTRUCTOR;User ID=sa;Password=XeFu*t7VXFE&s%)_HwKDk!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True");
|
||||
|
||||
//optionsBuilder.ConfigureWarnings(warnings => warnings.Ignore(RelationalEventId.PendingModelChangesWarning));
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace ConstructorApp.DataAccessLayer.EntityFramework
|
||||
context.SaveChanges();
|
||||
}
|
||||
|
||||
public void rojectStatusPassive(int id)
|
||||
public void ProjectStatusPassive(int id)
|
||||
{
|
||||
var values = context.Projects.Find(id);
|
||||
values.IsActive = false;
|
||||
|
||||
@@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
{
|
||||
[DbContext(typeof(ConstructorContext))]
|
||||
[Migration("20250501115426_InitialCreate")]
|
||||
[Migration("20251110062259_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
@@ -58,7 +58,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
ConcurrencyStamp = "3abf73f8-a18f-4452-9c3f-d8abf48c18c5",
|
||||
ConcurrencyStamp = "861b2f73-621f-401d-ae7f-90386fb8ee33",
|
||||
Name = "Admin",
|
||||
NormalizedName = "ADMIN"
|
||||
});
|
||||
@@ -151,7 +151,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
{
|
||||
Id = 1,
|
||||
AccessFailedCount = 0,
|
||||
ConcurrencyStamp = "b899157c-b38b-43f9-8fdf-f04d21a0370c",
|
||||
ConcurrencyStamp = "49a67b10-c6cd-45a8-a985-a0f3a0fc638b",
|
||||
ConfirmCode = 0,
|
||||
Email = "admin@example.com",
|
||||
EmailConfirmed = true,
|
||||
@@ -161,9 +161,9 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
LockoutEnabled = false,
|
||||
NormalizedEmail = "ADMIN@EXAMPLE.COM",
|
||||
NormalizedUserName = "ADMIN",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAEDNJ/hC+Ey7MpD2q6eaGnJn6CQmUyNUgiZiUCdHqiAhGJsnhm+Q3VY+xhEZALFzeOA==",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAEN1z37odF5cuQmrziBf4IXBIfLIAFvlO6rQM8GKxsuyQWTBG8Bv6bkA+61SWFl1R5g==",
|
||||
PhoneNumberConfirmed = false,
|
||||
SecurityStamp = "6d0581e4-af84-4438-aa89-17362a9302f4",
|
||||
SecurityStamp = "553407f9-7fee-4c07-b1e7-4523592d191f",
|
||||
TwoFactorEnabled = false,
|
||||
UserName = "admin"
|
||||
});
|
||||
@@ -388,12 +388,12 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
migrationBuilder.InsertData(
|
||||
table: "AspNetRoles",
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
|
||||
values: new object[] { 1, "3abf73f8-a18f-4452-9c3f-d8abf48c18c5", "Admin", "ADMIN" });
|
||||
values: new object[] { 1, "861b2f73-621f-401d-ae7f-90386fb8ee33", "Admin", "ADMIN" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "AspNetUsers",
|
||||
columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "ConfirmCode", "Email", "EmailConfirmed", "FirstName", "ImageUrl", "LastName", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UserName" },
|
||||
values: new object[] { 1, 0, "b899157c-b38b-43f9-8fdf-f04d21a0370c", 0, "admin@example.com", true, "Admin", "/SeedData/defaultuser.png", "Admin", false, null, "ADMIN@EXAMPLE.COM", "ADMIN", "AQAAAAIAAYagAAAAEDNJ/hC+Ey7MpD2q6eaGnJn6CQmUyNUgiZiUCdHqiAhGJsnhm+Q3VY+xhEZALFzeOA==", null, false, "6d0581e4-af84-4438-aa89-17362a9302f4", false, "admin" });
|
||||
values: new object[] { 1, 0, "49a67b10-c6cd-45a8-a985-a0f3a0fc638b", 0, "admin@example.com", true, "Admin", "/SeedData/defaultuser.png", "Admin", false, null, "ADMIN@EXAMPLE.COM", "ADMIN", "AQAAAAIAAYagAAAAEN1z37odF5cuQmrziBf4IXBIfLIAFvlO6rQM8GKxsuyQWTBG8Bv6bkA+61SWFl1R5g==", null, false, "553407f9-7fee-4c07-b1e7-4523592d191f", false, "admin" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "CompanyInfo",
|
||||
@@ -55,7 +55,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
ConcurrencyStamp = "3abf73f8-a18f-4452-9c3f-d8abf48c18c5",
|
||||
ConcurrencyStamp = "861b2f73-621f-401d-ae7f-90386fb8ee33",
|
||||
Name = "Admin",
|
||||
NormalizedName = "ADMIN"
|
||||
});
|
||||
@@ -148,7 +148,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
{
|
||||
Id = 1,
|
||||
AccessFailedCount = 0,
|
||||
ConcurrencyStamp = "b899157c-b38b-43f9-8fdf-f04d21a0370c",
|
||||
ConcurrencyStamp = "49a67b10-c6cd-45a8-a985-a0f3a0fc638b",
|
||||
ConfirmCode = 0,
|
||||
Email = "admin@example.com",
|
||||
EmailConfirmed = true,
|
||||
@@ -158,9 +158,9 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
||||
LockoutEnabled = false,
|
||||
NormalizedEmail = "ADMIN@EXAMPLE.COM",
|
||||
NormalizedUserName = "ADMIN",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAEDNJ/hC+Ey7MpD2q6eaGnJn6CQmUyNUgiZiUCdHqiAhGJsnhm+Q3VY+xhEZALFzeOA==",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAEN1z37odF5cuQmrziBf4IXBIfLIAFvlO6rQM8GKxsuyQWTBG8Bv6bkA+61SWFl1R5g==",
|
||||
PhoneNumberConfirmed = false,
|
||||
SecurityStamp = "6d0581e4-af84-4438-aa89-17362a9302f4",
|
||||
SecurityStamp = "553407f9-7fee-4c07-b1e7-4523592d191f",
|
||||
TwoFactorEnabled = false,
|
||||
UserName = "admin"
|
||||
});
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"ConnectionStrings": {
|
||||
"mssql": "Server=mssql_container;initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True"
|
||||
"mssql": "Server=mssql_container;initial Catalog=CONSTRUCTOR;User ID=sa;Password=XeFu*t7VXFE&s%)_HwKDk!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="wwwroot\Images\" />
|
||||
<Folder Include="wwwroot\SeedData\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -40,6 +40,17 @@ namespace ConstructorAppUI.Controllers
|
||||
[HttpGet]
|
||||
public IActionResult CreateProject()
|
||||
{
|
||||
ViewBag.StatusList = Enum.GetValues(typeof(ProjectStatus))
|
||||
.Cast<ProjectStatus>()
|
||||
.Select(e => new SelectListItem
|
||||
{
|
||||
Value = ((int)e).ToString(), // INT OLARAK VALUE
|
||||
Text = e.GetType()
|
||||
.GetMember(e.ToString())
|
||||
.First()
|
||||
.GetCustomAttribute<DisplayAttribute>()?.Name ?? e.ToString()
|
||||
}).ToList();
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -116,9 +127,7 @@ namespace ConstructorAppUI.Controllers
|
||||
return View(values);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return View();
|
||||
return View(new UpdateProjectDto());
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
|
||||
@@ -116,7 +116,5 @@ namespace ConstructorAppUI.Controllers
|
||||
|
||||
return RedirectToAction("Index", "ProjectGallery", new { id = projectId });
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,15 +4,13 @@
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<!-- Head -->
|
||||
<head>
|
||||
|
||||
<title>Constructor Web-App Login</title>
|
||||
<title>PLK Construct Login</title>
|
||||
|
||||
<!-- Meta-Tags -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
@@ -83,7 +83,13 @@
|
||||
<input type="file" class="form-control" name="FloorPlanFile" id="FloorPlanFile">
|
||||
<span asp-validation-for="FloorPlanUrl" class="text-danger"></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="Status">Proje Durumu</label>
|
||||
<select asp-for="Status" class="form-control" asp-items="@(ViewBag.StatusList as List<SelectListItem>)">
|
||||
<option value="">Durum Seçiniz</option>
|
||||
</select>
|
||||
<span asp-validation-for="Status" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -46,10 +46,10 @@
|
||||
</div>
|
||||
<!-- Görsel CoverUrl -->
|
||||
<div class="form-group">
|
||||
<label for="ImageFile">Kapak Görseli</label><br />
|
||||
<label for="CoverFile">Kapak Görseli</label><br />
|
||||
<span class="badge badge-danger">Tema Bütünlüğü için Görsel Boyutu 775x524 olmalıdır.</span>
|
||||
<input type="file" class="form-control" name="CoverFile" id="ImageFile">
|
||||
@if (!string.IsNullOrEmpty(Model.CoverUrl))
|
||||
<input type="file" class="form-control" name="CoverFile" id="CoverFile">
|
||||
@if (Model != null && !string.IsNullOrEmpty(Model.CoverUrl))
|
||||
{
|
||||
<img src="@Model.CoverUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
|
||||
}
|
||||
@@ -85,10 +85,10 @@
|
||||
|
||||
<!-- Görsel FloorPlanFile -->
|
||||
<div class="form-group">
|
||||
<label for="ImageFile">Kat Planı</label><br />
|
||||
<label for="FloorPlanFile">Kat Planı</label><br />
|
||||
<span class="badge badge-danger">Tema Bütünlüğü için Görsel Boyutu 775x524 olmalıdır.</span>
|
||||
<input type="file" class="form-control" name="FloorPlanFile" id="FloorPlanFile">
|
||||
@if (!string.IsNullOrEmpty(Model.FloorPlanUrl))
|
||||
@if (Model != null && !string.IsNullOrEmpty(Model.FloorPlanUrl))
|
||||
{
|
||||
<img src="@Model.FloorPlanUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>AdminLTE 3 | Dashboard</title>
|
||||
<title>PLK Construct | Admin Panel</title>
|
||||
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
<head>
|
||||
<title>Home</title>
|
||||
<meta charset="utf-8">
|
||||
<title>PLK Construct | Müteahitler ve İnşaat Firmaları için Admin Panelli Dinamik Web Sitesi </title>
|
||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
|
||||
<meta name="keywords" content="yazılım geliştirme, web sitesi tasarımı, bilişim firması">
|
||||
<meta name="description" content="Profesyonel yazılım geliştirme ve web tasarım hizmetleri sunuyoruz. İşletmeniz için modern ve etkili çözümler.">
|
||||
<link rel="canonical" href="https://www.polikarbilisim.com">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Montserrat:300,400,500,700,800">
|
||||
<link rel="stylesheet" href="~/WebTheme/css/bootstrap.css">
|
||||
<link rel="stylesheet" href="~/WebTheme/css/fonts.css">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"ConnectionStrings": {
|
||||
"mssql": "Server=SABI\\SQLEXPRESS;initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True"
|
||||
"mssql": "Server=SABI;initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True"
|
||||
},
|
||||
"ApiSettings": {
|
||||
"BaseUrl": "https://localhost:7040"
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"ConnectionStrings": {
|
||||
"mssql": "Server=mssql_container;initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True"
|
||||
"mssql": "Server=mssql_container;initial Catalog=CONSTRUCTOR;User ID=sa;Password=XeFu*t7VXFE&s%)_HwKDk!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True"
|
||||
},
|
||||
"ApiSettings": {
|
||||
"BaseUrl": "https://dev.triada.polikarbilisim.com"
|
||||
"BaseUrl": "https://dev.cond.polikarbilisim.com"
|
||||
},
|
||||
"SignalRHubSettings": {
|
||||
"BaseUrl": "https://dev.triada.polikarbilisim.com"
|
||||
"BaseUrl": "https://dev.cond.polikarbilisim.com"
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 471 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user