Skip to content

Commit

Permalink
Release v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Brend-Smits authored Nov 6, 2020
2 parents 79b8b17 + 94d7d2b commit bb1e840
Show file tree
Hide file tree
Showing 45 changed files with 860 additions and 220 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Security

## Release v.0.8.0-beta - 06-11-2020

### Added

- Added functionality to upload an project icon when creating a project - [#266](https://github.com/DigitalExcellence/dex-frontend/issues/266)
- Added an image to the background - [#320](https://github.com/DigitalExcellence/dex-frontend/issues/320)

### Changed

- Display uploaded project icons - [#311](https://github.com/DigitalExcellence/dex-frontend/issues/311)





## Release v.0.7.0-beta - 09-10-2020
Expand All @@ -31,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Changed all file line endings from CRLF to LF and added the .gitattributes to enforce it - [#163](https://github.com/DigitalExcellence/dex-backend/issues/163)
- Changed footer styling to be responsive on small screens - [#163](https://github.com/DigitalExcellence/dex-frontend/issues/163)
- Changed footer styling to be responsive on small screens - [#163](https://github.com/DigitalExcellence/dex-frontend/issues/163)
- Changed header styling to be responsive on small screens - [#258](https://github.com/DigitalExcellence/dex-frontend/issues/258)
- Highlight now shows highlight description instead of project description. - [#273](https://github.com/DigitalExcellence/dex-frontend/issues/273)
- Changed images on the login and home page to new copyright-free images from unDraw - [#97](https://github.com/DigitalExcellence/dex-frontend/issues/97)
Expand Down
64 changes: 37 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
# DeX-Frontend

Angular Frontend for DeX platform

What is Digital Excellence?
A lot of employees and students of FHICT create a lot of nice products. As a hobby, for their work or because of a school project. These can be software solutions, small scripts, research papers, thesis but possibly also project ideas and proposals for others to pick up. Unfortunately, most of them remain private and are not known by the majority of the population. The goal of the DeX-platform (short: DeX) is to make all this work more findable and thus improving collaboration.

Commonly heard criticism is that “we already have GitLab for this”. This, however, is only one specific source. A content creator can choose to use a different platform for its project. DeX will search for all sources that are linked to the platform. Moreover, GitLab is mostly used in software development. Research papers, for instance, have a different source. We want to find all relevant information and thus search in all available sources, not only GitLab.
The benefits of using DeX will include, but probably not be limited to:

VISIBILITY
Projects that are now only known by a small group of people will be more visible to the whole community. This increases the visibility of innovative solutions as well as their collaborators.

COLLABORATE
People can easily find the collaborators of a project (proposal) and collaborate with them more easily. This creates a sort of open-source community in which all our collaborative ideas are shared.

AGGREGATE
People have a better overview of their own work. This can be useful for instance when maintaining a portfolio or using examples in class, both as a teacher as well as a student. A student can show his or her previous work and maybe even demonstrate certain learning outcomes within that particular semester.

SHOWCASE
Administrators can more easily find good examples of innovative solutions (showcases) that are built by the community. This can then, for instance, be used for promotional use. The interesting projects will be praised by the community and will be identified sooner and more easily. Such projects can then be put on the website of FHICT for instance.

CENTRALIZE
It can be a central place where all project proposals can be gathered. Internships, minors, challenges for certain semesters such as Open Innovation all have their own format and system where employees and students need to work with. This can all potentially be grouped into one system.

SUGGEST
DeX can suggest interesting projects for you as a person, based on interest such as techniques, a certain topic or based on the collaborators which (some of them) you follow and/or share the same interests. This way you will be informed and up-to-date with the latest news and trends.

![Production Deployment](https://github.com/DigitalExcellence/dex-frontend/workflows/Production%20Deployment/badge.svg) ![Staging Deployment](https://github.com/DigitalExcellence/dex-frontend/workflows/Staging%20Deployment/badge.svg) ![Angular Workflow](https://github.com/DigitalExcellence/dex-frontend/workflows/Angular%20Workflow/badge.svg) [![GitHub issues](https://img.shields.io/github/issues/DigitalExcellence/dex-frontend?style=plastic)](https://github.com/DigitalExcellence/dex-frontend/issues) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=DigitalExcellence_dex-frontend&metric=alert_status)](https://sonarcloud.io/dashboard?id=DigitalExcellence_dex-frontend) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=DigitalExcellence_dex-frontend&metric=ncloc)](https://sonarcloud.io/dashboard?id=DigitalExcellence_dex-frontend)


This repository contains the Angular Frontend for [DeX platform](https://dex.software).

## Quick links

* [Check out the Wiki](https://github.com/DigitalExcellence/dex-frontend/wiki)
* [View all releases](https://github.com/DigitalExcellence/dex-frontend/releases)
* [Changelog](CHANGELOG.md)
* [Read the license (LGPL-3.0)](LICENSE.md)
* [Coding guidelines](https://github.com/DigitalExcellence/dex-frontend/wiki/Coding-Guidelines)

## What is Digital Excellence?
A lot of employees and students of Fontys School of ICT (FHICT) create a lot of nice products. As a hobby, for their work or because of a school project. These can be software solutions, small scripts, research papers, thesis but possibly also project ideas and proposals for others to pick up. Unfortunately, most of them remain private and are not known by the majority of the population. The goal of the DeX-platform (short: DeX) is to make all this work more findable and thus improving collaboration.

Commonly heard criticism is that “we already have GitLab for this”. This, however, is only one specific source. A content creator can choose to use a different platform for its project. DeX will search for all sources that are linked to the platform. Moreover, GitLab is mostly used in software development. Research papers, for instance, have a different source. We want to find all relevant information and thus search in all available sources, not only GitLab.
The benefits of using DeX will include, but probably not be limited to:

#### VISIBILITY
Projects that are now only known by a small group of people will be more visible to the whole community. This increases the visibility of innovative solutions as well as their collaborators.

#### COLLABORATE
People can easily find the collaborators of a project (proposal) and collaborate with them more easily. This creates a sort of open-source community in which all our collaborative ideas are shared.

#### AGGREGATE
People have a better overview of their own work. This can be useful for instance when maintaining a portfolio or using examples in class, both as a teacher as well as a student. A student can show his or her previous work and maybe even demonstrate certain learning outcomes within that particular semester.

#### SHOWCASE
Administrators can more easily find good examples of innovative solutions (showcases) that are built by the community. This can then, for instance, be used for promotional use. The interesting projects will be praised by the community and will be identified sooner and more easily. Such projects can then be put on the website of FHICT for instance.

#### CENTRALIZE
It can be a central place where all project proposals can be gathered. Internships, minors, challenges for certain semesters such as Open Innovation all have their own format and system where employees and students need to work with. This can all potentially be grouped into one system.

#### SUGGEST
DeX can suggest interesting projects for you as a person, based on interest such as techniques, a certain topic or based on the collaborators which (some of them) you follow and/or share the same interests. This way you will be informed and up-to-date with the latest news and trends.

8 changes: 8 additions & 0 deletions src/app/components/app-layout/app-layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,13 @@
<router-outlet></router-outlet>
</div>
</div>

<svg class='background' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 355.4 374.9">
<polygon points="240.9 166 347.7 0 245.2 0 188.7 92.5 240.9 166" fill="#e85b3f" />
<polygon
points="230.9 181 215.8 159.8 112.1 0 5.3 0 122.1 185.3 0 374.9 108.3 374.9 176.7 258.7 246.2 374.9 355.4 374.9 230.9 181"
fill="#1d1d1b" />
</svg>

<app-footer *ngIf="!displayContentWithoutLayout"></app-footer>
</div>
14 changes: 14 additions & 0 deletions src/app/components/app-layout/app-layout.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,20 @@
}
}

.background {
position: fixed;
top: 0;
right: 0;
z-index: -1;
opacity: .075;
width: 100vw;
height: 100vh;

polygon{
transform: rotate(16deg) translate(-10vw, -25vh) scale(1.9);
}
}

.content-container {
padding: 24px;
display: flex;
Expand Down
41 changes: 41 additions & 0 deletions src/app/components/file-uploader/DndDirective.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import {
Directive,
Output,
Input,
EventEmitter,
HostBinding,
HostListener
} from '@angular/core';

@Directive({
selector: '[app-DndDirective]'
})
export class DndDirective {
@HostBinding('class.fileover') fileOver: boolean;
@Output() fileDropped = new EventEmitter<any>();

// Dragover listener
@HostListener('dragover', ['$event']) onDragOver(evt) {
evt.preventDefault();
evt.stopPropagation();
this.fileOver = true;
}

// Dragleave listener
@HostListener('dragleave', ['$event']) public onDragLeave(evt) {
evt.preventDefault();
evt.stopPropagation();
this.fileOver = false;
}

// Drop listener
@HostListener('drop', ['$event']) public ondrop(evt) {
evt.preventDefault();
evt.stopPropagation();
this.fileOver = false;
const files = evt.dataTransfer.files;
if (files.length > 0) {
this.fileDropped.emit(files);
}
}
}
30 changes: 30 additions & 0 deletions src/app/components/file-uploader/file-uploader.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div class="container" DndDirective>
<input type="file" #fileDropRef id="fileDropRef" (change)="fileBrowseHandler($event.target)"
[multiple]="acceptMultiple" [accept]="acceptedTypes.join(',')" />
<img src="assets/images/file-dnd.svg" alt="file-dnd-icon">
<label for="fileDropRef">
<strong>Choose a file</strong>
<span class="box__dragndrop"> or drag it here</span>.
</label>
</div>
<div class="files-list">
<div class="single-file" *ngFor="let file of files; let i = index">
<div class="file-info">
<button type="button" class="btn btn-icon btn-danger" aria-label="error"
(click)="deleteFile(i)"><span aria-hidden="true">&times;</span>
</button>
<img alt="image-preview" class="file-icon" [src]=file?.preview >
<h4 class="file-name">
{{ file?.name }}
</h4>
<h4 class="file-size">
{{ file?.readableSize }}
</h4>
</div>
<div *ngIf="file.progress" class="file-progress" >
<div class="progress-bar" id="progress-bar-{{i}}" [style.width]="file.progress + '%'">{{file.progress}}%
</div>
</div>

</div>
</div>
104 changes: 104 additions & 0 deletions src/app/components/file-uploader/file-uploader.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
@import "assets/styles/variables";

.container {
width: 100%;
height: 200px;
padding: 2rem;
text-align: center;
border: dashed 1px $light-mode-grey-primary;
position: relative;
margin: 0 auto 20px auto;


input {
opacity: 0;
position: absolute;
z-index: 2;
width: 100%;
height: 100%;
top: 0;
left: 0;
}

label {
max-width: 80%;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
overflow: hidden;
font-size: 1.2rem;
}

img {
width: 100%;
height: 80px;
margin-bottom: 20px;
}

strong {
color: $accent-color-red-primary;
}
}

.files-list {
background-color: $light-mode-grey-quaternary;
transition: 0.5s all;
border-radius: 6px;

div.single-file:not(:last-child) {
border-bottom: 3px solid $light-mode-grey-primary;
border-radius: 2px;
}

div.single-file {
padding: 0 10px;

div.file-info {
display: flex;
align-items: center;
margin-bottom: 10px;

.file-icon {
max-width: 128px;
height: 128px;
object-fit: cover;
}

.file-name {
font-size: 1rem;
margin: 0 auto 0 5%;
}

.file-size {
color: gray;
margin: 0 auto 0 auto;
}

.delete {
font-size: 2rem;
margin: 0 20px 0 auto;
}

button {
background: $accent-color-red-primary;
border-radius: 50px;
width: 50px;
height: 50px;
border: none;
font-size: 25px;
font-weight: 800;
margin-right: 1em;
}
}

.file-progress {
min-width: 100%;
}

.progress-bar {
background-color: $accent-color-red-primary;
transition: 0.5s all;
border-radius: 25px;
}
}
}
Loading

0 comments on commit bb1e840

Please sign in to comment.