Skip to content

Commit fa4dd6f

Browse files
authored
Merge pull request #11 from Djacket/devel-v0.2.1
v0.2.1 confirmed.
2 parents 47b0ffa + d253e43 commit fa4dd6f

17 files changed

Lines changed: 4684 additions & 60 deletions

File tree

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Djacket project initiated in Dec, 2015. Below is the list of contributers.
22

3-
Moeen Zamani <moeenzdev@gmail.com>
3+
Moeen Zamani <moeen.zamani@gmail.com>
44
Marcos Cáceres <marcos@marcosc.com>

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@
1010
* Djacket is dockerized.
1111
- All the development/production processes are now moved to Docker.
1212
- Lots of useless content is deleted.
13+
14+
15+
# 0.2.1 (April 22, 2018)
16+
* Minor fixes and updates.
17+
- NPM packages updated along with adding `package-lock.json` file.
18+
- `NodeJS` installation version changed to 8.x LTS.
19+
- `404` errors for icons fixed.
20+
- JS scripts modified for new versions of `jQuery` and `Chart.js`.
21+
- `TypeError: get_available_name() got an unexpected keyword argument 'max_length'` issue fixed.

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.6
22

3-
LABEL maintainer="Moeen Zamani <moeenzdev@gmail.com>"
3+
LABEL maintainer="Moeen Zamani <moeen.zamani@gmail.com>"
44

5-
RUN apt-get update && apt-get install -y \
5+
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
6+
RUN apt-get install -y \
7+
nodejs \
68
git \
7-
nodejs-legacy \
8-
npm
9+
build-essential
910

1011
RUN npm install -g gulp
1112

@@ -15,6 +16,7 @@ ADD requirements.txt /srv/requirements.txt
1516
RUN pip install -r requirements.txt
1617

1718
COPY package.json /srv/package.json
19+
COPY package-lock.json /srv/package-lock.json
1820
RUN npm install
1921

2022
COPY ./core/backend/ /srv/core/backend/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 Djacket Project.
3+
Copyright (c) 2018 Djacket Project.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Project is fully documented and it can be reached by going to:
6262

6363
The MIT License (MIT)
6464

65-
Copyright (c) 2017 Djacket Project.
65+
Copyright (c) 2018 Djacket Project.
6666

6767
Permission is hereby granted, free of charge, to any person obtaining a copy
6868
of this software and associated documentation files (the "Software"), to deal

core/backend/djacket/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class OverwriteStorage(FileSystemStorage):
99
Overwrites to a file if it exists on file system.
1010
"""
1111

12-
def get_available_name(self, name):
12+
def get_available_name(self, name, max_length=None):
1313
"""
1414
If a file with the given name exists in MEDIA_ROOT,
1515
it will be removed otherwise it's name is returned.

core/frontend/gulpfile.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var paths = {
2626
"build": {
2727
"styles": build_folder + "static/styles",
2828
"scripts": build_folder + "static/scripts",
29+
"fonts": build_folder + "static/fonts",
2930
"libs": build_folder + "static/libs",
3031
"views": build_folder + "views",
3132
"ext": build_folder + "static"
@@ -58,7 +59,7 @@ gulp.task('libs', function () {
5859
'../../node_modules/nprogress/nprogress.js',
5960
'../../node_modules/moment/min/moment.min.js',
6061
'../../node_modules/marked/marked.min.js',
61-
'../../node_modules/chart.js/Chart.min.js'
62+
'../../node_modules/chart.js/dist/Chart.min.js'
6263
])
6364
.pipe(concat('djacket-libs.js'))
6465
.pipe(uglify())
@@ -76,6 +77,13 @@ gulp.task('libs', function () {
7677
outputStyle: 'compressed'
7778
}).on('error', sass.logError))
7879
.pipe(gulp.dest(paths.build.libs));
80+
81+
gulp
82+
.src([
83+
'../../node_modules/font-awesome/fonts/*',
84+
'../../node_modules/devicons/fonts/*',
85+
])
86+
.pipe(gulp.dest(paths.build.fonts));
7987
});
8088

8189
gulp.task('views', function () {

core/frontend/public/dev/static/scripts/djacket-session.js

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,17 @@ function _show_weekly_graphs (dataset) {
120120
datasets: [
121121
{
122122
label: "Weekly Commits",
123-
fillColor: "rgba(57,221,0,0.2)",
124-
strokeColor: "rgba(49,170,8,1)",
125-
pointColor: "rgba(26, 103, 0, 1)",
126-
pointStrokeColor: "#fff",
127-
pointHighlightFill: "#fff",
128-
pointHighlightStroke: "rgba(20, 75, 1, 1)",
123+
backgroundColor: "rgba(57,221,0,0.2)",
124+
borderColor: "rgba(49,170,8,1)",
125+
pointBackgroundColor: "#fff",
126+
pointBorderColor: "#fff",
129127
data: weekly_datas
130128
}
131129
]
132130
};
133131

134132
var weekly_ctx = $("#repo-graphs #weekly-commits-graph").get(0).getContext("2d");
135-
var weekly_commits = new Chart(weekly_ctx).Line(weekly_data);
133+
var weekly_commits = new Chart(weekly_ctx, {type: 'line', data: weekly_data});
136134
}
137135

138136

@@ -152,19 +150,18 @@ function _show_monthly_graphs (dataset) {
152150
datasets: [
153151
{
154152
label: "Monthly Commits",
155-
fillColor: "rgba(57,221,0,0.2)",
156-
strokeColor: "rgba(49,170,8,1)",
157-
pointColor: "rgba(26, 103, 0, 1)",
158-
pointStrokeColor: "#fff",
159-
pointHighlightFill: "#fff",
160-
pointHighlightStroke: "rgba(20, 75, 1, 1)",
153+
backgroundColor: "rgba(57,221,0,0.2)",
154+
borderColor: "rgba(49,170,8,1)",
155+
borderWidth: 3,
156+
pointBackgroundColor: "#fff",
157+
pointBorderColor: "#fff",
161158
data: monthly_datas
162159
}
163160
]
164161
};
165162

166163
var monthly_ctx = $("#repo-graphs #monthly-commits-graph").get(0).getContext("2d");
167-
var monthly_commits = new Chart(monthly_ctx).Bar(monthly_data);
164+
var monthly_commits = new Chart(monthly_ctx, {type: 'bar', data: monthly_data, options: {barThickness: 1.0}});
168165
}
169166

170167

@@ -194,19 +191,26 @@ function get_datasets () {
194191
}
195192
}
196193

194+
function setup_page () {
195+
highlight_codes();
196+
process_dates();
197+
setup_markdown();
198+
setup_file_icons();
199+
get_datasets();
200+
}
197201

198-
$(document).on('ready', function () {
202+
// Called upon first page ready event.
203+
jQuery(function ($) {
199204
setup_nprogress();
200205
setup_view_tabs();
201206
setup_static_tabs();
202207
setup_pjax();
208+
setup_page();
203209
});
204210

205-
206-
$(document).on('ready pjax:end', function () {
207-
highlight_codes();
208-
process_dates();
209-
setup_markdown();
210-
setup_file_icons();
211-
get_datasets();
211+
// Called upon every pjax request ending.
212+
jQuery(function ($) {
213+
$(document).on('pjax:end', function () {
214+
setup_page();
215+
});
212216
});

core/frontend/public/dev/static/scripts/djacket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function setup_static_tabs () {
1212
});
1313
}
1414

15-
$(document).on('ready', function () {
15+
jQuery(function ($) {
1616
setup_static_tabs();
1717

1818
$('a[href="#auth"]').on('click', function () {

core/frontend/public/dev/static/styles/_graphs.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ div#repo-graphs {
1313
canvas {
1414
display: block;
1515
margin: 64px auto;
16-
width: $default-graph-width;
17-
height: $default-graph-height;
1816
}
1917
}

0 commit comments

Comments
 (0)