author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
163,176
28.09.2019 15:47:12
-28,800
2488f82e63f5c7a9855b9b76d648a058a04815da
Doing grayscale PoC on tile image
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "@@ -10,6 +10,7 @@ import WMTS from \"ol/source/WMTS\";\nimport WMTSTileGrid from \"ol/tilegrid/WMTS\";\nimport { get as getProjection } from \"ol/proj\";\nimport { getWid...
Python
MIT License
disfactory/disfactory
Doing grayscale PoC on tile image
163,176
28.09.2019 15:47:48
-28,800
dd94f7dfe506d80a83c89ed76ea8ba55957edc35
Handle click event for pixel on map
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "@@ -28,7 +28,7 @@ export default class OSM extends Vue {\nmatrixIds[z] = z;\n}\n- new Map({\n+ const map = new Map({\ntarget: \"map\",\nlayers: [\nnew TileLayer({\n@@ -85...
Python
MIT License
disfactory/disfactory
Handle click event for pixel on map
163,161
01.10.2019 18:28:00
-28,800
154f9ca76eba06fbd092689f5f66adef98299ebd
init api views
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/serializers.py", "diff": "+from rest_framework.serializers import Serializer\n+\n+from .models import Factory\n+\n+\n+class FactorySerializer(Serializer):\n+ # TODO\n+ pass\n" }, { "change_type": "ADD", "old_path": null, ...
Python
MIT License
disfactory/disfactory
init api views
163,176
02.10.2019 20:27:19
-28,800
9559db6e06b563a741d768778ebbfff29bc37ec8
Remove jsconfig
[ { "change_type": "DELETE", "old_path": "frontend/jsconfig.json", "new_path": null, "diff": "-{\n- \"compilerOptions\": {\n- \"checkJs\": true,\n- // Point to the JSDoc typed sources when using modules from the ol package\n- \"baseUrl\": \"./\",\n- \"paths\": {\n- \"ol\": [\"node_modules/ol/src\"],\n...
Python
MIT License
disfactory/disfactory
Remove jsconfig
163,176
02.10.2019 20:40:45
-28,800
fba73e81292c4788f89b90626bc6ac7d4c08ee01
Install eslint-typescript plugin
[ { "change_type": "MODIFY", "old_path": "frontend/.eslintrc.js", "new_path": "frontend/.eslintrc.js", "diff": "@@ -14,5 +14,8 @@ module.exports = {\n},\nparserOptions: {\nparser: '@typescript-eslint/parser'\n- }\n+ },\n+ plugins: [\n+ '@typescript-eslint'\n+ ]\n}\n" }, { "change_type": "MODIF...
Python
MIT License
disfactory/disfactory
Install eslint-typescript plugin
163,161
03.10.2019 12:09:22
-28,800
b7c2d339a9c31395bb58d49c44646fc0d4193778
change settings for GeoDjango
[ { "change_type": "MODIFY", "old_path": "backend/gis_project/settings.py", "new_path": "backend/gis_project/settings.py", "diff": "@@ -37,6 +37,9 @@ INSTALLED_APPS = [\n\"django.contrib.sessions\",\n\"django.contrib.messages\",\n\"django.contrib.staticfiles\",\n+\n+ # for gis\n+ \"django.contrib.gis\...
Python
MIT License
disfactory/disfactory
change settings for GeoDjango
163,161
03.10.2019 12:46:44
-28,800
c6c441890d0132bf5746a5de8c33a14bcb763e29
api models use contrib.gis.db
[ { "change_type": "MODIFY", "old_path": "backend/api/models.py", "new_path": "backend/api/models.py", "diff": "-from django.db import models\n+from django.contrib.gis.db import models\n# TODO: Design and implement these models\n-class Factory:\n+class Factory(models.Model):\n\"\"\"Factories that are ...
Python
MIT License
disfactory/disfactory
api models use contrib.gis.db
163,161
04.10.2019 11:22:01
-28,800
ed9ac9cb2a51a966af9962c3e3e152174e21527a
geoDjango model example
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0001_initial.py", "diff": "+# Generated by Django 2.2.3 on 2019-10-04 03:19\n+\n+import django.contrib.gis.db.models.fields\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ in...
Python
MIT License
disfactory/disfactory
geoDjango model example
163,161
04.10.2019 13:56:20
-28,800
ca9f50feef6e8f0d7bcf83636afed93996975895
setup docker compose for GeoDjango
[ { "change_type": "MODIFY", "old_path": "backend/Dockerfile", "new_path": "backend/Dockerfile", "diff": "@@ -8,6 +8,9 @@ ENV PYTHONUNBUFFERED 1\n# Set work directory\nWORKDIR /Disfactory\n+RUN apt-get update\n+RUN apt-get install -y binutils libproj-dev gdal-bin\n+\n# Install dependencies\nCOPY Pipfi...
Python
MIT License
disfactory/disfactory
setup docker compose for GeoDjango
163,161
05.10.2019 15:01:37
-28,800
15ecfb7a6ddd37a95c768ebc81e35bbfcb2bbba5
SRID use 3857 instead of 3826
[ { "change_type": "MODIFY", "old_path": "backend/api/migrations/0001_initial.py", "new_path": "backend/api/migrations/0001_initial.py", "diff": "@@ -16,7 +16,7 @@ class Migration(migrations.Migration):\nname='Factory',\nfields=[\n('id', models.AutoField(auto_created=True, primary_key=True, serialize=...
Python
MIT License
disfactory/disfactory
SRID use 3857 instead of 3826
163,161
09.10.2019 19:48:47
-28,800
fb64b686d508ce44c24c4db82b0b3d98eb193d31
fix settings to allow all host
[ { "change_type": "MODIFY", "old_path": "backend/.env.sample", "new_path": "backend/.env.sample", "diff": "@@ -3,3 +3,5 @@ DISFACTORY_BACKEND_DEFAULT_DB_USER=postgres\nDISFACTORY_BACKEND_DEFAULT_DB_PASSWORD=postgres\nDISFACTORY_BACKEND_DEFAULT_DB_HOST=db\nDISFACTORY_BACKEND_DEFAULT_DB_PORT=5432\n+\n+...
Python
MIT License
disfactory/disfactory
fix settings to allow all host
163,164
09.10.2019 20:51:15
-28,800
ca221935f1371d7c6778a31077b0eb5b9e97a61d
Add easymap script
[ { "change_type": "MODIFY", "old_path": "backend/Pipfile", "new_path": "backend/Pipfile", "diff": "[[source]]\n+\nname = \"pypi\"\nurl = \"https://pypi.org/simple\"\nverify_ssl = true\n+\n[dev-packages]\n+\nblack = \"==19.3b0\"\n+\n[packages]\n+\ndjango = \"==2.2.3\"\n-psycopg2-binary = \"==2.8.3\"\n...
Python
MIT License
disfactory/disfactory
Add easymap script
163,176
13.10.2019 16:20:01
-28,800
35be18c396f5d68f9c95a9d9a55947b974c3f139
Extract createImageProcessor method
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/image.ts", "new_path": "frontend/src/lib/image.ts", "diff": "-export function toGrayScale (src: string) {\n+type PixelMapper = (data: Uint8ClampedArray) => void\n+\n+export const createImageProcessor = (processor: PixelMapper) => (src: string)...
Python
MIT License
disfactory/disfactory
Extract createImageProcessor method
163,176
13.10.2019 16:42:28
-28,800
24dfa8be246b80881d324606f7f2f64c76f63866
Transform argricultural land to transparent layer otherwise transform to black
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "@@ -10,7 +10,7 @@ import WMTS from 'ol/source/WMTS'\nimport WMTSTileGrid from 'ol/tilegrid/WMTS'\nimport { get as getProjection } from 'ol/proj'\nimport { getWidth, getTo...
Python
MIT License
disfactory/disfactory
Transform argricultural land to transparent layer - otherwise transform to black
163,164
15.10.2019 16:56:16
-28,800
6099a0cc707e0931aacde750887e505d5556a075
Handle error in a few more places
[ { "change_type": "MODIFY", "old_path": "backend/easymap.py", "new_path": "backend/easymap.py", "diff": "@@ -16,9 +16,9 @@ def get_session():\nsess = requests.Session()\n# XXX don't need this?\n# sess.headers.update({\"User-Agent\": \"Mozilla/5.0\"})\n- sess.get(easymap_url)\n+ resp = sess.get(easyma...
Python
MIT License
disfactory/disfactory
Handle error in a few more places
163,162
16.10.2019 21:16:07
-28,800
0598ece8477ab57fd0af20f79d61183fb72fa880
Convert to vue composition api
[ { "change_type": "MODIFY", "old_path": "frontend/package-lock.json", "new_path": "frontend/package-lock.json", "diff": "}\n}\n},\n+ \"@vue/composition-api\": {\n+ \"version\": \"0.3.2\",\n+ \"resolved\": \"https://registry.npmjs.org/@vue/composition-api/-/composition-api-0.3.2.tgz\",\n+ \"integrity\...
Python
MIT License
disfactory/disfactory
Convert to vue composition api
163,162
16.10.2019 21:16:38
-28,800
4c4ddb8a624b4def59c5dc9b54faec6af083ac02
Remove default template file
[ { "change_type": "DELETE", "old_path": "frontend/src/assets/logo.png", "new_path": "frontend/src/assets/logo.png", "diff": "Binary files a/frontend/src/assets/logo.png and /dev/null differ\n" }, { "change_type": "DELETE", "old_path": "frontend/src/components/HelloWorld.vue", "new_pat...
Python
MIT License
disfactory/disfactory
Remove default template file
163,161
20.10.2019 14:07:18
-28,800
9d94086a48e02e25d0b7966d9a9dbb58138f1a4a
seed fewer data when testing and add a model test
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/tests/test_models.py", "diff": "+from django.test import TestCase\n+from django.contrib.gis.geos import Point\n+from django.contrib.gis.measure import D\n+\n+from api.models import Factory\n+\n+\n+class ModelsTestCase(TestCase):\n+\n...
Python
MIT License
disfactory/disfactory
seed fewer data when testing and add a model test
163,161
20.10.2019 14:13:55
-28,800
99770c9dd0c386942ef560217147ca83844dc3db
remove empty and add backend vscode settings
[ { "change_type": "DELETE", "old_path": ".vscode/settings.json", "new_path": null, "diff": "-// Place your settings in this file to overwrite default and user settings.\n-{\n-}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "backend/.vscode/settings.json", "diff": "+{...
Python
MIT License
disfactory/disfactory
remove empty and add backend vscode settings
163,161
20.10.2019 14:35:23
-28,800
cc704956e28499dd22cf0d38a2d8eb027313acb1
restructure api.views
[ { "change_type": "DELETE", "old_path": "backend/api/views.py", "new_path": null, "diff": "-from django.http import HttpResponse, JsonResponse\n-\n-from rest_framework.decorators import api_view\n-\n-from .serializers import FactorySerializer\n-\n-\n-def _get_nearby_factories(latitude, longitude, rad...
Python
MIT License
disfactory/disfactory
restructure api.views
163,161
20.10.2019 14:46:24
-28,800
8871a4ca4d6d000b285558afa2b30e29ea27c3a4
implement get_nearby_factory util function
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/views/tests/test_utils.py", "diff": "+from unittest.mock import patch\n+\n+from django.test import TestCase\n+from django.contrib.gis.geos import Point\n+from django.contrib.gis.measure import D\n+\n+from ..utils import _get_nearby_f...
Python
MIT License
disfactory/disfactory
implement get_nearby_factory util function
163,161
20.10.2019 16:04:04
-28,800
7092f68993f6a45aaaa51d448ab3040d0e78ab43
implement serializers, and rename image_set to images of Factory model
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0003_change_factory_image_relate_name.py", "diff": "+# Generated by Django 2.2.3 on 2019-10-20 09:24\n+\n+from django.db import migrations, models\n+import django.db.models.deletion\n+\n+\n+class Migration(migrations.Migra...
Python
MIT License
disfactory/disfactory
implement serializers, and rename image_set to images of Factory model
163,161
20.10.2019 17:29:22
-28,800
012670b54b3a4ec849316c4092b1a9deb42dbf22
implement factory get method and rename the file
[ { "change_type": "MODIFY", "old_path": "backend/api/urls.py", "new_path": "backend/api/urls.py", "diff": "@@ -24,7 +24,7 @@ from .views import (\nurlpatterns = [\n- path(\"factories/\", get_nearby_or_create_factories),\n+ path(\"factories\", get_nearby_or_create_factories),\npath(\"factories/<id>/\"...
Python
MIT License
disfactory/disfactory
implement factory get method and rename the file
163,164
23.10.2019 17:09:45
-28,800
1ed940dac8ca413fa896db5d8292eac61452771a
fix: dotenv should override os.environ
[ { "change_type": "MODIFY", "old_path": "backend/manage.py", "new_path": "backend/manage.py", "diff": "@@ -6,7 +6,7 @@ import sys\nfrom dotenv import load_dotenv\ndef main():\n- load_dotenv(verbose=True)\n+ load_dotenv(verbose=True, override=True)\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"...
Python
MIT License
disfactory/disfactory
fix: dotenv should override os.environ
163,164
23.10.2019 20:47:04
-28,800
147b3344bdd8d56d8a3250565ffd41565612c5a0
fix: add more build instructions update README add docker compose config for windows wsl
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/docker-compose-win.yml", "diff": "+version: '3.7'\n+\n+services:\n+ web:\n+ build: .\n+ command: python /Disfactory/manage.py runserver 0.0.0.0:8000\n+ volumes:\n+ - .:/mnt/Disfactory\n+ ports:\n+ - 8000:8000\n+ depends_on:\n+ - db\n+ en...
Python
MIT License
disfactory/disfactory
fix: add more build instructions - update README - add docker compose config for windows wsl
163,160
05.11.2019 14:49:17
-28,800
0394f68674306dd52e31b397084b300dcd9440ca
add _upload_image in utils.py
[ { "change_type": "MODIFY", "old_path": "backend/api/views/tests/test_utils.py", "new_path": "backend/api/views/tests/test_utils.py", "diff": "+from io import BytesIO\n+\nfrom unittest.mock import patch\nfrom django.test import TestCase\nfrom django.contrib.gis.geos import Point\nfrom django.contrib....
Python
MIT License
disfactory/disfactory
add _upload_image in utils.py
163,161
06.11.2019 19:54:25
-28,800
dd1743282f85059e13a6c1abe79f5225b559fd33
put imgur related things in .env
[ { "change_type": "MODIFY", "old_path": "backend/.env.sample", "new_path": "backend/.env.sample", "diff": "@@ -4,4 +4,7 @@ DISFACTORY_BACKEND_DEFAULT_DB_PASSWORD=postgres\nDISFACTORY_BACKEND_DEFAULT_DB_HOST=db\nDISFACTORY_BACKEND_DEFAULT_DB_PORT=5432\n+DISFACTORY_IMGUR_CLIENT_ID=your_imgur_id\n+DISFA...
Python
MIT License
disfactory/disfactory
put imgur related things in .env
163,162
06.11.2019 20:34:59
-28,800
05cd04daa07ee263ea405432e5c6f374a2e0357d
Reduce performance for image processor
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/image.ts", "new_path": "frontend/src/lib/image.ts", "diff": "type PixelMapper = (data: Uint8ClampedArray) => void\n-export const createImageProcessor = (processor: PixelMapper) => (src: string) => {\n- const canvas = document.createElement('ca...
Python
MIT License
disfactory/disfactory
Reduce performance for image processor
163,161
07.11.2019 15:57:18
-28,800
d499229d5eff360ddd5ab82e23dcc36d931b9221
argumentallize ci
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "-version: 2\n-jobs:\n- frontend-lint:\n+ref:\n+ frontend_docker_default: &frontend_docker_default\ndocker:\n- image: circleci/node:lts\nworking_directory: ~/Disfactory\n+\n+version: 2\n+jobs:\...
Python
MIT License
disfactory/disfactory
argumentallize ci
163,161
07.11.2019 16:36:11
-28,800
9312791e843b3114921ed83e14cd9e09f2ce7e90
init backend CI
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -3,6 +3,17 @@ ref:\ndocker:\n- image: circleci/node:lts\nworking_directory: ~/Disfactory\n+ backend_docker_default: &backend_docker_default\n+ docker:\n+ - image: circleci/python:3.7.5\n+ -...
Python
MIT License
disfactory/disfactory
init backend CI
163,161
07.11.2019 17:08:09
-28,800
500c2eeb6d8f405fd6199efa77f1d3f73e1736dd
disable black temporarily
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -87,9 +87,10 @@ jobs:\n- run:\nname: Setup .env\ncommand: cp .env.sample .env\n- - run:\n- name: Run Linter\n- command: make lint\n+ # - run:\n+ # name: Run Linter\n+ # command: make lint\n...
Python
MIT License
disfactory/disfactory
disable black temporarily
163,161
07.11.2019 17:12:01
-28,800
360b41514ab071a901bd9dfb96f78fa66a773296
install gdal in python image
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -84,6 +84,11 @@ jobs:\n- run:\nname: Install\ncommand: sudo pipenv install --dev --system\n+ - run:\n+ name: Install GDAL\n+ command: |\n+ sudo apt-get update\n+ sudo apt-get install -y gda...
Python
MIT License
disfactory/disfactory
install gdal in python image
163,161
08.11.2019 17:34:11
-28,800
338a2a5df5ae29fcf0ac9293bca750261887f3c5
allow Image field factory_id to be null
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0004_auto_20191108_0933.py", "diff": "+# Generated by Django 2.2.4 on 2019-11-08 09:33\n+\n+from django.db import migrations, models\n+import django.db.models.deletion\n+\n+\n+class Migration(migrations.Migration):\n+\n+ d...
Python
MIT License
disfactory/disfactory
allow Image field factory_id to be null
163,161
08.11.2019 17:49:32
-28,800
db23d4ac12c0e4cdcf24eca0dafdfb64ef85e1f9
set factory_status default A, and better migration names
[ { "change_type": "RENAME", "old_path": "backend/api/migrations/0004_auto_20191108_0933.py", "new_path": "backend/api/migrations/0004_allow_image_factory_null_20191108_0933.py", "diff": "" }, { "change_type": "MODIFY", "old_path": "backend/api/models.py", "new_path": "backend/api/mode...
Python
MIT License
disfactory/disfactory
set factory_status default A, and better migration names
163,161
08.11.2019 18:10:24
-28,800
e4b2aec902d970135393d139545f8ce9441c5f87
more test for serializer, and implment it
[ { "change_type": "MODIFY", "old_path": "backend/api/serializers.py", "new_path": "backend/api/serializers.py", "diff": "@@ -2,6 +2,7 @@ from rest_framework.serializers import (\nModelSerializer,\nCharField,\nSerializerMethodField,\n+ ValidationError,\n)\nfrom .models import Factory, Image, ReportRec...
Python
MIT License
disfactory/disfactory
more test for serializer, and implment it
163,161
11.11.2019 16:52:43
-28,800
773c0ce5f6a2d18d3f3c032e8cca4e65750c45dd
close http session after getting the land number
[ { "change_type": "MODIFY", "old_path": "backend/easymap.py", "new_path": "backend/easymap.py", "diff": "@@ -66,6 +66,7 @@ def get_land_number(x, y):\ncity = get_point_city(sess, x=x, y=y)\ntoken = get_token(sess)\nland_number = get_door_info(sess, x=x, y=y, city=city, token=token)\n+ sess.close()\nr...
Python
MIT License
disfactory/disfactory
close http session after getting the land number
163,161
12.11.2019 15:08:48
-28,800
6f97139edae60beeeec8346826b2d22be679f67e
add a get_user_ip util
[ { "change_type": "MODIFY", "old_path": "backend/api/views/utils.py", "new_path": "backend/api/views/utils.py", "diff": "@@ -25,3 +25,15 @@ def _get_nearby_factories(latitude, longitude, radius):\npnt = Point(x=longitude, y=latitude, srid=4326)\npnt.transform(settings.POSTGIS_SRID)\nreturn Factory.ob...
Python
MIT License
disfactory/disfactory
add a get_user_ip util
163,161
12.11.2019 15:12:37
-28,800
9ad33a35808c190b221d3f682a5e93ac90298569
install freezegun for datetime test
[ { "change_type": "MODIFY", "old_path": "backend/Pipfile", "new_path": "backend/Pipfile", "diff": "@@ -5,6 +5,7 @@ verify_ssl = true\n[dev-packages]\nblack = \"==19.3b0\"\n+freezegun = \"*\"\n[packages]\ndjango = \"==2.2.4\"\n" }, { "change_type": "MODIFY", "old_path": "backend/Pipfile.lo...
Python
MIT License
disfactory/disfactory
install freezegun for datetime test
163,161
12.11.2019 15:13:25
-28,800
a2badcc0f72f0f48a278bb3a25442cd44b874a52
implement create_factory
[ { "change_type": "MODIFY", "old_path": "backend/api/views/factories_cr.py", "new_path": "backend/api/views/factories_cr.py", "diff": "+from typing import List\n+import json\n+import datetime\n+\nfrom django.http import HttpResponse, JsonResponse\nfrom django.utils.datastructures import MultiValueDic...
Python
MIT License
disfactory/disfactory
implement create_factory
163,161
14.11.2019 17:27:19
-28,800
5849b0294070ab1d9337b1eb637e908067ce1346
do not let dotenv overwrite environment variable
[ { "change_type": "MODIFY", "old_path": "backend/manage.py", "new_path": "backend/manage.py", "diff": "@@ -5,8 +5,9 @@ import sys\nfrom dotenv import load_dotenv\n+\ndef main():\n- load_dotenv(verbose=True, override=True)\n+ load_dotenv(verbose=True, override=False)\nos.environ.setdefault(\"DJANGO_SE...
Python
MIT License
disfactory/disfactory
do not let dotenv overwrite environment variable
163,161
15.11.2019 21:56:33
-28,800
5da3412e19847a4ef4a55f2e1769d9e028f33730
install pillow
[ { "change_type": "MODIFY", "old_path": "backend/Pipfile", "new_path": "backend/Pipfile", "diff": "@@ -13,6 +13,7 @@ django = \"==2.2.4\"\ndjangorestframework = \"==3.9.2\"\npython-dotenv = \"==0.10.3\"\nrequests = \"*\"\n+pillow = \"*\"\n[requires]\npython_version = \"3.7\"\n" }, { "change_t...
Python
MIT License
disfactory/disfactory
install pillow
163,161
15.11.2019 22:23:59
-28,800
272cea91d6d9b4f87f3593f23977ab0dfb8983a4
implement and unittest _get_image_original_date
[ { "change_type": "ADD", "old_path": "backend/api/views/tests/20180311_132133.jpg", "new_path": "backend/api/views/tests/20180311_132133.jpg", "diff": "Binary files /dev/null and b/backend/api/views/tests/20180311_132133.jpg differ\n" }, { "change_type": "MODIFY", "old_path": "backend/api...
Python
MIT License
disfactory/disfactory
implement and unittest _get_image_original_date
163,161
15.11.2019 22:52:34
-28,800
398b05aa7eff794adff341a473b5bb79cff01b3f
update cache key for CI
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -79,8 +79,8 @@ jobs:\npath: ~/Disfactory\n- restore_cache:\nkeys:\n- - disfactory-backend-cache-191115-{{ checksum \"Pipfile.lock\" }}\n- - disfactory-backend-cache-191115\n+ - disfactory-b...
Python
MIT License
disfactory/disfactory
update cache key for CI
163,161
18.11.2019 17:27:35
-28,800
24fab63b52fa00f309dab52d192e0e4720e0c750
add a util to check if file uploaded is a image
[ { "change_type": "MODIFY", "old_path": "backend/api/views/tests/test_utils.py", "new_path": "backend/api/views/tests/test_utils.py", "diff": "@@ -13,6 +13,7 @@ from ..utils import (\n_get_nearby_factories,\n_upload_image,\n_get_image_original_date,\n+ _is_image,\n)\nHERE = Path(__file__).resolve().p...
Python
MIT License
disfactory/disfactory
add a util to check if file uploaded is a image
163,161
18.11.2019 18:07:56
-28,800
2da366e37d25cbbea0e4a4c2d35e9975dc6b8744
modify image_upload url to be w/o trailing slash
[ { "change_type": "MODIFY", "old_path": "backend/api/urls.py", "new_path": "backend/api/urls.py", "diff": "@@ -27,5 +27,5 @@ urlpatterns = [\npath(\"factories\", get_nearby_or_create_factories),\npath(\"factories/<id>/\", update_factory_attribute),\npath(\"factories/<id>/image/\", post_factory_image)...
Python
MIT License
disfactory/disfactory
modify image_upload url to be w/o trailing slash
163,161
18.11.2019 18:19:49
-28,800
43d460fff41a1f9ad3ae3c8f6111b78615baf5c6
implement and test image upload view
[ { "change_type": "MODIFY", "old_path": "backend/api/views/__init__.py", "new_path": "backend/api/views/__init__.py", "diff": "from .factories_cr import get_nearby_or_create_factories\nfrom .update_factory_attribute import update_factory_attribute\n-from .post_image import post_image\n+from .image_c ...
Python
MIT License
disfactory/disfactory
implement and test image upload view
163,161
18.11.2019 19:07:18
-28,800
1912b6c35cb7e4b37779d66d99eb5f5e0acb4b2f
handle empty exif case
[ { "change_type": "MODIFY", "old_path": "backend/api/views/utils.py", "new_path": "backend/api/views/utils.py", "diff": "@@ -45,8 +45,12 @@ def _get_client_ip(request):\ndef _get_image_original_date(f_image):\nimg = Image.open(f_image)\n+ exif_raw = img._getexif()\n+ if exif_raw is None:\n+ return No...
Python
MIT License
disfactory/disfactory
handle empty exif case
163,161
18.11.2019 19:08:12
-28,800
83ab7df4319f4475756e31bd2ed3b5839dae0365
reset uploaded image file handler
[ { "change_type": "MODIFY", "old_path": "backend/api/views/image_c.py", "new_path": "backend/api/views/image_c.py", "diff": "@@ -14,7 +14,9 @@ from .utils import (\ndef post_image(request):\nf_image = request.FILES['image']\nif _is_image(f_image):\n+ f_image.seek(0)\npath = _upload_image(f_image, set...
Python
MIT License
disfactory/disfactory
reset uploaded image file handler
163,161
18.11.2019 19:35:50
-28,800
c4ad9817e8faefe62533058172bd759972d289ae
fix wrong url for uploading factory image
[ { "change_type": "MODIFY", "old_path": "backend/api/urls.py", "new_path": "backend/api/urls.py", "diff": "@@ -26,6 +26,6 @@ from .views import (\nurlpatterns = [\npath(\"factories\", get_nearby_or_create_factories),\npath(\"factories/<id>/\", update_factory_attribute),\n- path(\"factories/<id>/image...
Python
MIT License
disfactory/disfactory
fix wrong url for uploading factory image
163,161
18.11.2019 19:37:25
-28,800
ba5d605f8707188fb4a44e5877731e325956a2e5
rename post_factory_image to factory_image_c
[ { "change_type": "MODIFY", "old_path": "backend/api/views/__init__.py", "new_path": "backend/api/views/__init__.py", "diff": "from .factories_cr import get_nearby_or_create_factories\nfrom .update_factory_attribute import update_factory_attribute\nfrom .image_c import post_image\n-from .post_factory...
Python
MIT License
disfactory/disfactory
rename post_factory_image to factory_image_c
163,161
18.11.2019 19:38:14
-28,800
b36a8023ee1b143a34bd64adf5ab01c1d255e4d0
add a test for image wo exif
[ { "change_type": "ADD", "old_path": "backend/api/views/tests/20180311_132133_noexif.jpg", "new_path": "backend/api/views/tests/20180311_132133_noexif.jpg", "diff": "Binary files /dev/null and b/backend/api/views/tests/20180311_132133_noexif.jpg differ\n" }, { "change_type": "MODIFY", "ol...
Python
MIT License
disfactory/disfactory
add a test for image wo exif
163,161
18.11.2019 21:30:57
-28,800
af4d36eabd0a6a7c68f4d3a6393dace27df670fb
implement and test post factory image
[ { "change_type": "MODIFY", "old_path": "backend/api/urls.py", "new_path": "backend/api/urls.py", "diff": "@@ -26,6 +26,6 @@ from .views import (\nurlpatterns = [\npath(\"factories\", get_nearby_or_create_factories),\npath(\"factories/<id>/\", update_factory_attribute),\n- path(\"factories/<id>/image...
Python
MIT License
disfactory/disfactory
implement and test post factory image
163,161
18.11.2019 21:31:34
-28,800
e361833ae233963740c84ef40662f4d098b0c9d2
update CI cache key
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -82,6 +82,7 @@ jobs:\nkeys:\n- disfactory-backend-cache-191118-{{ .Branch }}-{{ checksum \"Pipfile.lock\" }}\n- disfactory-backend-cache-191118-{{ .Branch }}\n+\n- run:\nname: Install\ncomm...
Python
MIT License
disfactory/disfactory
update CI cache key
163,161
18.11.2019 21:45:07
-28,800
a9856110cba90ba4d526538a4bdeb87ffc97566a
add a test to catch not-related images' factory ID not modified
[ { "change_type": "MODIFY", "old_path": "backend/api/views/tests/test_factory_cr.py", "new_path": "backend/api/views/tests/test_factory_cr.py", "diff": "@@ -86,6 +86,7 @@ class GetNearbyOrCreateFactoriesViewTestCase(TestCase):\nfactory_type = \"2-3\"\nim1 = Image.objects.create(image_path=\"https://i...
Python
MIT License
disfactory/disfactory
add a test to catch not-related images' factory ID not modified
163,161
18.11.2019 21:39:46
-28,800
af2e6c83468a8cab7b0683164aac5ca50af5bdf7
allow contact to be null when create factory
[ { "change_type": "MODIFY", "old_path": "backend/api/views/factories_cr.py", "new_path": "backend/api/views/factories_cr.py", "diff": "@@ -97,12 +97,6 @@ def get_nearby_or_create_factories(request):\nstatus=400,\n)\n- if 'contact' not in post_body:\n- return HttpResponse(\n- \"please provide `contact...
Python
MIT License
disfactory/disfactory
allow contact to be null when create factory
163,176
23.10.2019 21:23:22
-28,800
86a518fea6b439d7ecec50f25fcf8a484165aa03
Fix map pixel click event
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "<template>\n- <div ref=\"root\" />\n+ <div ref=\"root\" id=\"map\" />\n</template>\n<script lang=\"ts\">\n-// import { Component, Prop, Vue } from 'vue-property-decorator...
Python
MIT License
disfactory/disfactory
Fix map pixel click event
163,176
30.10.2019 09:10:02
-28,800
a373b9329a722b58714f072c7b0c0afd294b62ad
Try the offical draw guide
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "<script lang=\"ts\">\nimport { createComponent, onMounted, ref } from '@vue/composition-api'\n+\nimport { Map, View } from 'ol'\n-import TileLayer from 'ol/layer/Tile'\ni...
Python
MIT License
disfactory/disfactory
Try the offical draw guide
163,176
30.10.2019 20:59:58
-28,800
17adbc714b87c683da44d4a78683d92943d453ed
Set non-agricultural land to black
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/image.ts", "new_path": "frontend/src/lib/image.ts", "diff": "@@ -77,16 +77,17 @@ export const flipArgriculturalLand = createImageProcessor(data => {\nconst color = Array.from(data.slice(i, i + 3))\nif (isArgriculturalLand(color)) {\n- // set t...
Python
MIT License
disfactory/disfactory
Set non-agricultural land to black
163,176
20.11.2019 20:22:51
-28,800
79dad095ce7be6411a9cfed5bf4d6530f13c896e
Add factory markers from API
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "<script lang=\"ts\">\nimport { createComponent, onMounted, ref } from '@vue/composition-api'\n-import { Map, View } from 'ol'\n+import { Map, View, Feature } from 'ol'\ni...
Python
MIT License
disfactory/disfactory
Add factory markers from API
163,176
20.11.2019 21:04:31
-28,800
055a731cca593e346557ddde65304a1a1995a49c
Set id for feature
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "@@ -154,9 +154,11 @@ export default createComponent({\nconst data = await res.json()\nconst features = (data as any[]).map(data => {\n- return new Feature({\n+ const feat...
Python
MIT License
disfactory/disfactory
Set id for feature
163,176
20.11.2019 21:15:42
-28,800
555e8a5d9491c252e2141777a794738645ab2a70
Add factories list type
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "@@ -17,6 +17,7 @@ import { OSM, Vector as VectorSource } from 'ol/source'\nimport { Circle as CircleStyle, Fill, Stroke, Style } from 'ol/style'\nimport GeometryType from...
Python
MIT License
disfactory/disfactory
Add factories list type
163,176
20.11.2019 22:16:02
-28,800
f83380f24253373d55fde1ac403b4d666115083c
Add factory dynamically
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "<script lang=\"ts\">\nimport { createComponent, onMounted, ref } from '@vue/composition-api'\n-import { Map, View, Feature } from 'ol'\n+import { Map as OlMap, View, Feat...
Python
MIT License
disfactory/disfactory
Add factory dynamically
163,176
20.11.2019 22:42:40
-28,800
310e73ecdaed39883515552276449be6de816ebd
Set custom icon for feature
[ { "change_type": "ADD", "old_path": "frontend/public/images/marker-red.png", "new_path": "frontend/public/images/marker-red.png", "diff": "Binary files /dev/null and b/frontend/public/images/marker-red.png differ\n" }, { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.v...
Python
MIT License
disfactory/disfactory
Set custom icon for feature
163,160
20.11.2019 21:35:51
-28,800
eddbd40694050a9155cf512d2fa0e240f89e65d3
set allowed_host
[ { "change_type": "MODIFY", "old_path": "backend/.env.sample", "new_path": "backend/.env.sample", "diff": "@@ -4,6 +4,7 @@ DISFACTORY_BACKEND_DEFAULT_DB_PASSWORD=postgres\nDISFACTORY_BACKEND_DEFAULT_DB_HOST=db\nDISFACTORY_BACKEND_DEFAULT_DB_PORT=5432\n+DIFACTORY_ALLOWED_HOST=host_url\nDISFACTORY_IMGU...
Python
MIT License
disfactory/disfactory
set allowed_host
163,159
13.11.2019 14:50:46
0
a0fb540b8088ed90cfd08497a5cbfb066c4a9638
initial work from simon
[ { "change_type": "MODIFY", "old_path": "backend/api/urls.py", "new_path": "backend/api/urls.py", "diff": "@@ -25,7 +25,7 @@ from .views import (\nurlpatterns = [\npath(\"factories\", get_nearby_or_create_factories),\n- path(\"factories/<id>/\", update_factory_attribute),\n+ path(\"factories/<id>\", ...
Python
MIT License
disfactory/disfactory
initial work from simon
163,161
22.11.2019 16:56:53
-28,800
d78f081293171a2cc614ad699cd1f7ef41ee6866
rename update_factory_attribute to factories_u
[ { "change_type": "MODIFY", "old_path": "backend/api/views/__init__.py", "new_path": "backend/api/views/__init__.py", "diff": "from .factories_cr import get_nearby_or_create_factories\n-from .update_factory_attribute import update_factory_attribute\n+from .factories_u import update_factory_attribute\...
Python
MIT License
disfactory/disfactory
rename update_factory_attribute to factories_u
163,161
22.11.2019 18:19:47
-28,800
6acd66ee6ab03f65f9712f5790320dfe713d79a0
modify Factory status_time field
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0006_auto_20191122_0956.py", "diff": "+# Generated by Django 2.2.4 on 2019-11-22 09:56\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ ('api', '0005_fa...
Python
MIT License
disfactory/disfactory
modify Factory status_time field
163,161
22.11.2019 18:20:01
-28,800
3101e0e27ea8958cc5fdb322dd54544e25afa000
modify url for factory update
[ { "change_type": "MODIFY", "old_path": "backend/api/urls.py", "new_path": "backend/api/urls.py", "diff": "@@ -25,7 +25,7 @@ from .views import (\nurlpatterns = [\npath(\"factories\", get_nearby_or_create_factories),\n- path(\"factories/<id>\", update_factory_attribute),\n+ path(\"factories/<factory_...
Python
MIT License
disfactory/disfactory
modify url for factory update
163,161
22.11.2019 18:20:37
-28,800
96807e9c9b4cfa091178ca3853cd842c061f12a3
implement factories_u
[ { "change_type": "MODIFY", "old_path": "backend/api/views/factories_u.py", "new_path": "backend/api/views/factories_u.py", "diff": "-from rest_framework.decorators import api_view\n+import json\n+from datetime import datetime\n-from django.http import HttpResponse\n-from ..models import Factory\n+fr...
Python
MIT License
disfactory/disfactory
implement factories_u
163,161
22.11.2019 18:27:15
-28,800
c67798ed535e898af19ce302216a0b4eb4a059af
allow imgur client id to be null
[ { "change_type": "MODIFY", "old_path": "backend/.env.sample", "new_path": "backend/.env.sample", "diff": "@@ -6,6 +6,5 @@ DISFACTORY_BACKEND_DEFAULT_DB_PORT=5432\nDIFACTORY_ALLOWED_HOST=host_url\nDISFACTORY_IMGUR_CLIENT_ID=your_imgur_id\n-DISFACTORY_IMGUR_SECRET=imgur_secret\nDISFACTORY_BACKEND_DEBU...
Python
MIT License
disfactory/disfactory
allow imgur client id to be null
163,176
24.11.2019 17:52:51
-28,800
b417dc427461049afc8b9520505879b09c2facfa
Remove map element id attribute new vue api <3
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "<template>\n- <div ref=\"root\" id=\"map\" />\n+ <div ref=\"root\" class=\"map\" />\n</template>\n<script lang=\"ts\">\n@@ -178,7 +178,7 @@ export default createComponent...
Python
MIT License
disfactory/disfactory
Remove map element id attribute new vue api <3
163,176
27.11.2019 21:40:31
-28,800
e51ec274eb465fcbb8ed3bce6ff1ff4192faa7b7
Extract addFactories method
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "@@ -16,9 +16,10 @@ import { Vector as VectorSource } from 'ol/source'\nimport { Style, Icon } from 'ol/style'\nimport IconAnchorUnits from 'ol/style/IconAnchorUnits'\nimp...
Python
MIT License
disfactory/disfactory
Extract addFactories method
163,176
27.11.2019 22:22:26
-28,800
a80bd5fa66b0c2b3a4e0d17f66f0347ef0ad09ae
Implement filter factory method
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -6,10 +6,10 @@ import { transform } from 'ol/proj'\nimport { Point } from 'ol/geom'\nimport { Vector as VectorLayer } from 'ol/layer'\n-import { FactoryData } from '../types'\n+import...
Python
MIT License
disfactory/disfactory
Implement filter factory method
163,176
27.11.2019 22:40:17
-28,800
592fde8284603d8d15443a39eb45a901973e30cc
Add AppNavbar component
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/src/components/AppNavbar.vue", "diff": "+<template>\n+ <nav :class=\"{ dark }\">\n+ <slot />\n+ </nav>\n+</template>\n+\n+<script lang=\"ts\">\n+import { createComponent, PropType, computed } from '@vue/composition-api'\n+\n+export defa...
Python
MIT License
disfactory/disfactory
Add AppNavbar component
163,176
27.11.2019 22:57:21
-28,800
a30313fc1713cb388121994d5692d9a54c9e4cc1
Extract map related methods to map.ts move code around to create commits(?
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppNavbar.vue", "new_path": "frontend/src/components/AppNavbar.vue", "diff": "@@ -24,9 +24,7 @@ export default createComponent({\n<style lang=\"scss\" scoped>\n@import '@/styles/variables';\nnav {\n- z-index: 1;\n- position: fixed;\n- w...
Python
MIT License
disfactory/disfactory
Extract map related methods to map.ts - move code around to create commits(?
163,176
27.11.2019 23:24:28
-28,800
412f6091ddaed87c7d2aaaa1ef5816076759d870
Correct pin colors base on factory status
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/public/images/marker-blue.svg", "diff": "+<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"41\" viewBox=\"0 0 32 41\">\n+ <path fill=\"#447287\" fill-rule=\"evenodd\" d=\"M15.966 0C7.185 0 0 6.919 0 15.434 0 18.805 1.153 ...
Python
MIT License
disfactory/disfactory
Correct pin colors base on factory status
163,176
29.11.2019 08:21:00
-28,800
3171d121366bb13cb5c98b36d6b24fab6617a866
Fix factory filter by simply show/hide them
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -32,12 +32,19 @@ const iconStyleMap = Object.entries(factoryStatusImageMap).reduce((acc, [status,\n})\n}), {}) as {[key in FactoryStatusType]: Style}\n+const nullStyle = new Style({})...
Python
MIT License
disfactory/disfactory
Fix factory filter by simply show/hide them
163,176
01.12.2019 10:08:18
-28,800
a08f0f518554212e3ed355294b0f31ec1375fbfe
Impl FilterModal
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/src/components/AppModal.vue", "diff": "+<template>\n+ <div class=\"app-modal-component\"\n+ :class=\"{ open }\"\n+ >\n+ <div class=\"app-modal-backdrop\" @click=\"dismiss\" />\n+ <div class=\"app-modal\">\n+ <div class=\"close\" />\n+ <...
Python
MIT License
disfactory/disfactory
Impl FilterModal
163,176
01.12.2019 10:32:23
-28,800
26dfad38a211b1bd3edd3b583c2d6cc555a8035b
Satisfy our linter
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/FilterModal.vue", "new_path": "frontend/src/components/FilterModal.vue", "diff": "</app-modal>\n</template>\n-\n<script lang=\"ts\">\nimport AppModal from '@/components/AppModal.vue'\nimport AppButton from '@/components/AppButton.vue'\n...
Python
MIT License
disfactory/disfactory
Satisfy our linter
163,176
01.12.2019 11:43:33
-28,800
6fe5c1423d19d32c5f3463cccda09f418b233ba8
Add create factory button
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppButton.vue", "new_path": "frontend/src/components/AppButton.vue", "diff": "@@ -38,7 +38,7 @@ button {\nbox-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);\nborder: 1px solid #fff;\nborder-radius: 24px;\n- padding: 10px;\n+ padding: 10px 21px...
Python
MIT License
disfactory/disfactory
Add create factory button
163,176
01.12.2019 15:08:53
-28,800
2ba6b19a16d021bca3b322a49c82b53a515503c0
Layout create form page
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppTextField.vue", "new_path": "frontend/src/components/AppTextField.vue", "diff": "@@ -41,6 +41,8 @@ input {\npadding: 10px 15px;\noutline: none;\n+ width: 100%;\n+\nfont-size: $form-font-size;\n&::placeholder {\n" }, { "change...
Python
MIT License
disfactory/disfactory
Layout create form page
163,176
01.12.2019 15:34:13
-28,800
90373f0d9bdb575a3e4c45c5e993692f451ee118
Update app navbar layout
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppNavbar.vue", "new_path": "frontend/src/components/AppNavbar.vue", "diff": "<template>\n- <nav :class=\"{ dark }\">\n+ <nav :class=\"{ dark, fixed }\">\n<slot />\n</nav>\n</template>\n@@ -16,6 +16,10 @@ export default createComponent(...
Python
MIT License
disfactory/disfactory
Update app navbar layout
163,176
01.12.2019 17:23:18
-28,800
81251f6839808b851330a4082a370e0eaca7b0e4
Bind missing close button event
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppModal.vue", "new_path": "frontend/src/components/AppModal.vue", "diff": ">\n<div class=\"app-modal-backdrop\" @click=\"dismiss\" />\n<div class=\"app-modal\">\n- <div class=\"close\" />\n+ <div class=\"close\" @click=\"dismiss\" />\n...
Python
MIT License
disfactory/disfactory
Bind missing close button event
163,176
01.12.2019 22:46:23
-28,800
c05bbf8e676d910f68e53737a6b00442102c0ee3
Install axios
[ { "change_type": "MODIFY", "old_path": "frontend/package-lock.json", "new_path": "frontend/package-lock.json", "diff": "\"integrity\": \"sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==\",\n\"dev\": true\n},\n+ \"axios\": {\n+ \"version\": \"0.19.0\",\n...
Python
MIT License
disfactory/disfactory
Install axios
163,176
01.12.2019 23:25:53
-28,800
13b349065429db3eefd8c57e4d17a88046448141
Impl image upload
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/src/api/index.ts", "diff": "+import axios from 'axios';\n+\n+const instance = axios.create({\n+ baseURL: '/server/api'\n+})\n+\n+type ImageResponse = {\n+ token: string\n+}\n+\n+type UploadedImages = {\n+ token: string\n+ src: string //...
Python
MIT License
disfactory/disfactory
Impl image upload
163,176
01.12.2019 23:39:18
-28,800
2184324f87427c2135fa732e9a3390a0846aad29
Satify our little unhappy linter
[ { "change_type": "MODIFY", "old_path": "frontend/src/api/index.ts", "new_path": "frontend/src/api/index.ts", "diff": "-import axios from 'axios';\n+import axios from 'axios'\nconst instance = axios.create({\nbaseURL: '/server/api'\n})\ntype ImageResponse = {\n- token: string\n+ token: string;\n}\n-t...
Python
MIT License
disfactory/disfactory
Satify our little unhappy linter
163,176
02.12.2019 20:29:39
-28,800
678adaa66d79d3d31f43c219af258b246bd248af
Impl select factory location page interaction
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppNavbar.vue", "new_path": "frontend/src/components/AppNavbar.vue", "diff": "<template>\n- <nav :class=\"{ dark, fixed }\">\n+ <nav :class=\"{ dark, fixed, hide }\">\n<div class=\"back-button\" @click=\"onBackClick()\" v-show=\"!dark\"...
Python
MIT License
disfactory/disfactory
Impl select factory location page interaction
163,176
02.12.2019 20:49:35
-28,800
c01861f81635cec51c2aedb663cfa1f417bc1787
Choose location center point
[ { "change_type": "MODIFY", "old_path": "frontend/src/styles/variables.scss", "new_path": "frontend/src/styles/variables.scss", "diff": "@@ -7,3 +7,5 @@ $second-color: rgb(153, 166, 57);\n$form-font-size: 1.3rem;\n$background-color: #fff;\n+\n+$red-color: #a22929;\n" } ]
Python
MIT License
disfactory/disfactory
Choose location center point
163,176
02.12.2019 20:56:37
-28,800
360eff5f3481409d97ba0c9562bf56854a920fa9
Support map onMoved handler
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/Map.vue", "new_path": "frontend/src/components/Map.vue", "diff": "@@ -44,7 +44,11 @@ export default createComponent({\nconst root = ref<HTMLElement>(null)\nonMounted(() => {\n- initializeMap(root.value!)\n+ initializeMap(root.value!, {\...
Python
MIT License
disfactory/disfactory
Support map onMoved handler
163,176
03.12.2019 10:35:56
-28,800
343f7cc6f8fb171bba5db3b5fa682ac23e0f3ca1
Bind map moved event
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/Map.vue", "new_path": "frontend/src/components/Map.vue", "diff": "@@ -45,8 +45,8 @@ export default createComponent({\nonMounted(() => {\ninitializeMap(root.value!, {\n- onMoved: function () {\n-\n+ onMoved: function ([longitude, latitud...
Python
MIT License
disfactory/disfactory
Bind map moved event
163,176
03.12.2019 19:58:17
-28,800
c66906f6c76eb0bc7d41eb8d670daa3f74e25e85
Select factory location
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": ":toggleFactoryPage=\"toggleFactoryPage\"\n:selectFactoryMode=\"selectFactoryMode\"\n:exitSelectFactoryMode=\"exitSelectFactoryMode\"\n+ :setFactoryLocation=\"setFactoryLocation\"\n/>\n<form-pa...
Python
MIT License
disfactory/disfactory
Select factory location
163,176
03.12.2019 20:41:28
-28,800
0b5ec121baa8cd2a84522698efb1b9917b89a17c
Post factory api flow
[ { "change_type": "MODIFY", "old_path": "frontend/src/api/index.ts", "new_path": "frontend/src/api/index.ts", "diff": "import axios from 'axios'\n+import { FactoryPostData, FactoryData } from '@/types'\nconst instance = axios.create({\nbaseURL: '/server/api'\n@@ -35,3 +36,18 @@ export async function ...
Python
MIT License
disfactory/disfactory
Post factory api flow
163,176
03.12.2019 20:44:03
-28,800
dfb4b9209fa5c01129fd8e61e35d9022bad5d6dd
Oh yeah the mighty TypeScript
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "@@ -64,8 +64,8 @@ export default createComponent({\ncreateFactoryPageOpen.value = false\n}\n- const factoryLocation = ref([])\n- const setFactoryLocation = (value) => {\n+ const factoryLocatio...
Python
MIT License
disfactory/disfactory
Oh yeah the mighty TypeScript
163,176
03.12.2019 20:47:22
-28,800
596430d0365427d4acbe15b940ac1bdc0657a9a5
Cheer our unfortunate little linter
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "@@ -78,7 +78,9 @@ export default createComponent({\n}\nconst createFactorySuccessModalOpen = ref(false)\n- const setCreateFactorySuccessModal = (open: boolean) => createFactorySuccessModalOpen...
Python
MIT License
disfactory/disfactory
Cheer our unfortunate little linter
163,176
03.12.2019 20:51:19
-28,800
85bbe84b2cc1ee3d094807ca46bbaccb66937448
Render factory on map after post succeed
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/FormPage.vue", "new_path": "frontend/src/components/FormPage.vue", "diff": "@@ -78,6 +78,7 @@ import AppSelect from '@/components/AppSelect.vue'\nimport ImageUploadModal from '@/components/ImageUploadModal.vue'\nimport { UploadedImages,...
Python
MIT License
disfactory/disfactory
Render factory on map after post succeed
163,176
03.12.2019 20:54:23
-28,800
5d35bbdcfc0c0851f24676bc0228201ea2cc73d0
Tune the offset of red point center
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/Map.vue", "new_path": "frontend/src/components/Map.vue", "diff": "@@ -117,6 +117,6 @@ export default createComponent({\nleft: 0;\nz-index: 2;\n- transform: translate(calc(50vw - 12.5px), calc(50vh - 12.5px));\n+ transform: translate(cal...
Python
MIT License
disfactory/disfactory
Tune the offset of red point center
163,176
03.12.2019 21:06:58
-28,800
1237c992f067f1ccb17c3f0cd573e1c6ac808f48
Update vue dev server proxy config
[ { "change_type": "MODIFY", "old_path": "frontend/vue.config.js", "new_path": "frontend/vue.config.js", "diff": "module.exports = {\n- lintOnSave: false\n+ lintOnSave: false,\n+ devServer: {\n+ proxy: {\n+ '/server': {\n+ target: 'https://middle2.disfactory.tw',\n+ changeOrigin: true,\n+ pathRewrite:...
Python
MIT License
disfactory/disfactory
Update vue dev server proxy config
163,161
04.12.2019 20:36:21
-28,800
12055c46f5e425bdc43345dd7fc3d5fdcb49372b
install django-cors-headers
[ { "change_type": "MODIFY", "old_path": "backend/Pipfile", "new_path": "backend/Pipfile", "diff": "@@ -14,6 +14,7 @@ djangorestframework = \"==3.9.2\"\npython-dotenv = \"==0.10.3\"\nrequests = \"*\"\npillow = \"*\"\n+django-cors-headers = \"*\"\n[requires]\npython_version = \"3.7\"\n" }, { "c...
Python
MIT License
disfactory/disfactory
install django-cors-headers
163,161
04.12.2019 20:38:12
-28,800
28fbd987b7bc6c6e1b8ca3932204a3c1fd162321
set CORS for github page
[ { "change_type": "MODIFY", "old_path": "backend/gis_project/settings.py", "new_path": "backend/gis_project/settings.py", "diff": "@@ -47,6 +47,8 @@ INSTALLED_APPS = [\n\"django.contrib.gis\",\n# 3rd party\n\"rest_framework\",\n+ \"corsheaders\",\n+\n# Local\n\"users.apps.UsersConfig\",\n\"api.apps.A...
Python
MIT License
disfactory/disfactory
set CORS for github page
163,176
04.12.2019 20:54:07
-28,800
5b59078f0e73e82aaa5525af5c70ad4ea176aad7
Set baseURL base on NODE_ENV
[ { "change_type": "MODIFY", "old_path": "frontend/src/api/index.ts", "new_path": "frontend/src/api/index.ts", "diff": "import axios from 'axios'\nimport { FactoryPostData, FactoryData } from '@/types'\n+const baseURL = process.env.NODE_ENV === 'production' ? 'https://middle2.disfactory.tw/api' : '/se...
Python
MIT License
disfactory/disfactory
Set baseURL base on NODE_ENV