diff --git a/apps/news/models.py b/apps/news/models.py index 1495574..d254e9d 100644 --- a/apps/news/models.py +++ b/apps/news/models.py @@ -3,6 +3,7 @@ # Create your models here. TYPES = [ + ('ongoing event', 'ongoing'), ('upcoming event', 'upcoming'), ('app update', 'app'), ('online competition', 'online'), diff --git a/apps/projects/views.py b/apps/projects/views.py index fb31840..97cae27 100644 --- a/apps/projects/views.py +++ b/apps/projects/views.py @@ -20,7 +20,7 @@ def get_projects(request): """ Get a list of projects """ - projects = Project.objects.filter(is_visible=True).order_by('title') + projects = Project.objects.filter(is_visible=True) serializer = ProjectSerializer( projects, many=True, context={'request': request}) response_data = serializer.data diff --git a/frontend/.gitignore b/frontend/.gitignore index 185e663..a62e7fa 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -19,3 +19,6 @@ yarn-error.log* *.njsproj *.sln *.sw* + +# Misc files +/src/config/config.js \ No newline at end of file diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9c28e60..48c78af 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -3151,6 +3151,15 @@ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", "dev": true }, + "cookies": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.7.3.tgz", + "integrity": "sha512-+gixgxYSgQLTaTIilDHAdlNPZDENDQernEMiIcZpYYP14zgHsCt4Ce1FEjFtcp6GefhozebB6orvhAAWx/IS0A==", + "requires": { + "depd": "~1.1.2", + "keygrip": "~1.0.3" + } + }, "copy-concurrently": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", @@ -3958,8 +3967,7 @@ "depd": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" }, "des.js": { "version": "1.0.0", @@ -7134,6 +7142,11 @@ "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==", "dev": true }, + "js-cookie": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz", + "integrity": "sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==" + }, "js-levenshtein": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", @@ -7249,6 +7262,11 @@ "verror": "1.10.0" } }, + "keygrip": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.0.3.tgz", + "integrity": "sha512-/PpesirAIfaklxUzp4Yb7xBper9MwP6hNRA6BGGUFCgbJ+BM5CKBtsoxinNXkLHAr+GXS1/lSlF2rP7cv5Fl+g==" + }, "killable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", diff --git a/frontend/package.json b/frontend/package.json index 4fd1544..874c945 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,8 @@ }, "dependencies": { "axios": "^0.18.1", + "cookies": "^0.7.3", + "js-cookie": "^2.2.1", "masonry-layout": "^4.2.2", "vue": "^2.5.17", "vue-carousel": "^0.18.0", diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico deleted file mode 100644 index f9e3fab..0000000 Binary files a/frontend/public/favicon.ico and /dev/null differ diff --git a/frontend/public/index.html b/frontend/public/index.html index eb18666..7e6bb02 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -4,7 +4,9 @@ - + + +