This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1455 from omu/develop
Merge branch develop into master
- Loading branch information
Showing
109 changed files
with
1,619 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
--- | ||
engines: | ||
eslint: | ||
exclude_paths: | ||
- app/assets/javascripts/highcharts-maps/tr.js | ||
- plugins/tenant/omu/test/dummy/app/assets/javascripts/* | ||
- plugins/tenant/acme/test/dummy/app/assets/javascripts/* | ||
exclude_paths: | ||
- '**.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"extends": "standard" | ||
} | ||
"extends": "standard", | ||
"parser": "babel-eslint" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
//= link_directory ../stylesheets .css | ||
|
||
//= link application.js | ||
//= link chart.js | ||
//= link highcharts-langs/tr.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//= require echarts/dist/echarts.min | ||
//= require highcharts/highcharts | ||
//= require highcharts/modules/exporting | ||
//= require highcharts/modules/map | ||
//= require highcharts-maps/tr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable no-undef */ | ||
|
||
Highcharts.setOptions({ | ||
lang: { | ||
contextButtonTitle: 'Grafik İşlem Menüsü', | ||
decimalPoint: ',', | ||
downloadJPEG: 'JPEG olarak indir', | ||
downloadPDF: 'PDF olarak indir', | ||
downloadPNG: 'PNG olarak indir', | ||
downloadSVG: 'SVG olarak indir', | ||
exportButtonTitle: 'Dışarı Aktar', | ||
loading: 'Yükleniyor...', | ||
months: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'], | ||
printButtonTitle: 'Yazdır', | ||
printChart: 'Yazdır', | ||
rangeSelectorFrom: 'Başlangış', | ||
rangeSelectorTo: 'Bitiş', | ||
rangeSelectorZoom: 'Aralık seç', | ||
resetZoom: 'Yakınlaşmayı Sıfırla', | ||
resetZoomTitle: 'Yakınlaşmayı Sıfırla', | ||
shortMonths: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'], | ||
thousandsSep: '.', | ||
viewFullscreen: 'Tam Ekran Görüntüle', | ||
weekdays: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'] | ||
} | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 11 additions & 10 deletions
21
app/assets/stylesheets/custom/loading.css → ...ets/stylesheets/custom/content_loader.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
|
||
|
||
.loading { | ||
position: fixed; | ||
position: absolute; | ||
z-index: 1000; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
background-color: rgb(0, 0, 0); | ||
background-color: rgba(0, 0, 0, 0.4); | ||
background: #d3d3d37a; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.loading>.loading-content { | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: #707070; | ||
text-align: center; | ||
} | ||
|
||
.snipper-large { | ||
width: 3em; | ||
height: 3em; | ||
.custom-card-header { | ||
padding: .25rem .75rem; | ||
} |
2 changes: 1 addition & 1 deletion
2
...ntrollers/studies/dashboard_controller.rb → ...ontrollers/detsis/dashboard_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
module Detsis | ||
class SdpCodesController < ApplicationController | ||
include SearchableModule | ||
|
||
def index | ||
@sdp_codes = pagy_by_search(SdpCode.order(:main)) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module Manager | ||
class DashboardController < ApplicationController | ||
def stats; end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
module Manager | ||
module Stats | ||
class ArticlesController < ApplicationController | ||
layout false | ||
|
||
def index; end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Manager | ||
module Stats | ||
class EmployeesController < ApplicationController | ||
layout false | ||
|
||
def index; end | ||
|
||
def academic | ||
@series = Employee.active.academic.group('titles.name').count | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# frozen_string_literal: true | ||
|
||
module Manager | ||
module Stats | ||
class StudentsController < ApplicationController | ||
layout false | ||
|
||
def index; end | ||
|
||
def cities | ||
@series = Xokul::Ubs::Statistic::Student.by_cities( | ||
schema: { | ||
city: :name, | ||
total: :value | ||
} | ||
).each { |item| item[:name] = item[:name].capitalize_turkish }.to_json | ||
end | ||
|
||
def double_major_and_minor | ||
@series = Xokul::Ubs::Statistic::Student.double_major_and_minor( | ||
schema: { | ||
category: :name, | ||
number_of_students: :y | ||
} | ||
).to_json | ||
end | ||
|
||
def genders | ||
@series = Xokul::Ubs::Statistic::Student.by_genders( | ||
schema: { | ||
gender: :name, | ||
number_of_students: :y | ||
} | ||
).to_json | ||
end | ||
|
||
def genders_and_degrees | ||
data = Xokul::Ubs::Statistic::Student.by_genders_and_degree | ||
@degrees = data.map { |item| item[:degree] }.uniq | ||
@series = data.group_by { |item| item[:gender] }.map do |gender, values| | ||
{ | ||
name: gender, | ||
data: @degrees.map do |degree| | ||
values.find { |v| v[:degree] == degree }&.fetch(:number_of_students, 0) | ||
end | ||
} | ||
end.to_json | ||
end | ||
|
||
def non_graduates | ||
data = Xokul::Ubs::Statistic::Student.non_graduates | ||
@degrees = data.map { |item| item[:degree] }.uniq | ||
@series = data.group_by { |item| item[:status] }.map do |status, values| | ||
{ | ||
name: status, | ||
data: @degrees.map do |degree| | ||
values.find { |v| v[:degree] == degree }&.fetch(:number_of_students, 0) | ||
end | ||
} | ||
end.to_json | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.