Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/frontend faq #119

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/frontendTests(1).yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
pull_request:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: gnd-app/package-lock.json

- name: Install Chrome
run: |
sudo apt-get update
sudo apt-get install -y google-chrome-stable

- run: |
cd gnd-app
npm ci
- run: |
cd gnd-app
npm test -- --watch=false --browsers=ChromeHeadless
11 changes: 11 additions & 0 deletions .vscode(1)/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"python.testing.unittestArgs": [
"-v",
"-s",
"./backend",
"-p",
"*test*.py"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true
}
3 changes: 3 additions & 0 deletions GDPR Non-compliant Detector(1)/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore bin and obj folders
bin/
obj/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\User\\Documents\\Academics\\2024\\COS 301 SOFTWARE ENGINEERING\\AprilFour\\GDPR-data-noncompliance-detector\\GDPR Non-compliant Detector\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{42462CC7-CC95-4833-A563-2DBEAF24F031}|GDPR Non-compliant Detector.csproj|c:\\users\\user\\documents\\academics\\2024\\cos 301 software engineering\\aprilfour\\gdpr-data-noncompliance-detector\\gdpr non-compliant detector\\homepage.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{42462CC7-CC95-4833-A563-2DBEAF24F031}|GDPR Non-compliant Detector.csproj|solutionrelative:homepage.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{42462CC7-CC95-4833-A563-2DBEAF24F031}|GDPR Non-compliant Detector.csproj|c:\\users\\user\\documents\\academics\\2024\\cos 301 software engineering\\aprilfour\\gdpr-data-noncompliance-detector\\gdpr non-compliant detector\\homepage.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
"RelativeMoniker": "D:0:0:{42462CC7-CC95-4833-A563-2DBEAF24F031}|GDPR Non-compliant Detector.csproj|solutionrelative:homepage.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "HomePage.xaml.cs",
"DocumentMoniker": "C:\\Users\\User\\Documents\\Academics\\2024\\COS 301 SOFTWARE ENGINEERING\\AprilFour\\GDPR-data-noncompliance-detector\\GDPR Non-compliant Detector\\HomePage.xaml.cs",
"RelativeDocumentMoniker": "HomePage.xaml.cs",
"ToolTip": "C:\\Users\\User\\Documents\\Academics\\2024\\COS 301 SOFTWARE ENGINEERING\\AprilFour\\GDPR-data-noncompliance-detector\\GDPR Non-compliant Detector\\HomePage.xaml.cs",
"RelativeToolTip": "HomePage.xaml.cs",
"ViewState": "AQIAAAcAAAAAAAAAAAAgwA8AAAAJAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-06-01T13:11:46.422Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "HomePage.xaml",
"DocumentMoniker": "C:\\Users\\User\\Documents\\Academics\\2024\\COS 301 SOFTWARE ENGINEERING\\AprilFour\\GDPR-data-noncompliance-detector\\GDPR Non-compliant Detector\\HomePage.xaml",
"RelativeDocumentMoniker": "HomePage.xaml",
"ToolTip": "C:\\Users\\User\\Documents\\Academics\\2024\\COS 301 SOFTWARE ENGINEERING\\AprilFour\\GDPR-data-noncompliance-detector\\GDPR Non-compliant Detector\\HomePage.xaml",
"RelativeToolTip": "HomePage.xaml",
"ViewState": "AQIAAA0AAAAAAAAAAAAYwBsAAAAvAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-06-01T13:11:14.044Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions GDPR Non-compliant Detector(1)/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:GDPR_Non_compliant_Detector"
x:Class="GDPR_Non_compliant_Detector.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
12 changes: 12 additions & 0 deletions GDPR Non-compliant Detector(1)/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace GDPR_Non_compliant_Detector
{
public partial class App : Application
{
public App()
{
InitializeComponent();

MainPage = new AppShell();
}
}
}
16 changes: 16 additions & 0 deletions GDPR Non-compliant Detector(1)/AppShell.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="GDPR_Non_compliant_Detector.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:GDPR_Non_compliant_Detector"
Shell.FlyoutBehavior="Disabled"
Title="GDPR_Non_compliant_Detector">

<ShellContent
StyleClass="Text-Center"
Title="Deloitte."
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />

</Shell>
10 changes: 10 additions & 0 deletions GDPR Non-compliant Detector(1)/AppShell.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace GDPR_Non_compliant_Detector
{
public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
}
}
}
76 changes: 76 additions & 0 deletions GDPR Non-compliant Detector(1)/GDPR Non-compliant Detector.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->

<!-- Note for MacCatalyst:
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->

<OutputType>Exe</OutputType>
<RootNamespace>GDPR_Non_compliant_Detector</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<!-- Display name -->
<ApplicationTitle>GDPR Non-compliant Detector</ApplicationTitle>

<!-- App Identifier -->
<ApplicationId>com.companyname.gdprnoncompliantdetector</ApplicationId>

<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup>

<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />

<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />

<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />

<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />

<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="Microsoft.Maui.Essentials" Version="8.0.40" />
</ItemGroup>

<ItemGroup>
<MauiXaml Update="HomePage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="loginPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>

</Project>

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework>
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
</PropertyGroup>
<ItemGroup>
<MauiXaml Update="HomePage.xaml">
<SubType>Designer</SubType>
</MauiXaml>
<MauiXaml Update="loginPage.xaml">
<SubType>Designer</SubType>
</MauiXaml>
</ItemGroup>
<ItemGroup>
<None Update="App.xaml">
<SubType>Designer</SubType>
</None>
<None Update="AppShell.xaml">
<SubType>Designer</SubType>
</None>
<None Update="MainPage.xaml">
<SubType>Designer</SubType>
</None>
<None Update="Platforms\Windows\App.xaml">
<SubType>Designer</SubType>
</None>
<None Update="Platforms\Windows\Package.appxmanifest">
<SubType>Designer</SubType>
</None>
<None Update="Resources\Styles\Colors.xaml">
<SubType>Designer</SubType>
</None>
<None Update="Resources\Styles\Styles.xaml">
<SubType>Designer</SubType>
</None>
</ItemGroup>
</Project>
27 changes: 27 additions & 0 deletions GDPR Non-compliant Detector(1)/GDPR Non-compliant Detector.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.34916.146
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GDPR Non-compliant Detector", "GDPR Non-compliant Detector.csproj", "{42462CC7-CC95-4833-A563-2DBEAF24F031}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{42462CC7-CC95-4833-A563-2DBEAF24F031}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42462CC7-CC95-4833-A563-2DBEAF24F031}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42462CC7-CC95-4833-A563-2DBEAF24F031}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{42462CC7-CC95-4833-A563-2DBEAF24F031}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42462CC7-CC95-4833-A563-2DBEAF24F031}.Release|Any CPU.Build.0 = Release|Any CPU
{42462CC7-CC95-4833-A563-2DBEAF24F031}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7895B33F-6D82-4926-8FC0-B89E338F333E}
EndGlobalSection
EndGlobal
Loading
Loading