Skip to content

Commit

Permalink
Merge pull request #50 from keitaroinc/license_copyright_notices
Browse files Browse the repository at this point in the history
License copyright notices
  • Loading branch information
duskobogdanovski authored Apr 9, 2021
2 parents aa723c8 + 02c7063 commit 590bdf3
Show file tree
Hide file tree
Showing 32 changed files with 260 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Aleksandar Jovanov
Copyright (c) 2019 Keitaro AB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
6 changes: 6 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ckanext-visualize
Copyright (c) 2019 Keitaro AB
****************************************************************
Third party dependencies included as source files can be found
in the ckanext-visualize/ckanext/visualize/assets/js/vendor
directory, along with their copyright headers
8 changes: 8 additions & 0 deletions ckanext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""

# encoding: utf-8

# this is a namespace package
Expand Down
9 changes: 9 additions & 0 deletions ckanext/visualize/assets/css/data_viewer.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

body {
background: none;
margin: 15px;
}

8 changes: 8 additions & 0 deletions ckanext/visualize/assets/css/hide_preview_button.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

button[name='preview'] {
display: none;
}
9 changes: 9 additions & 0 deletions ckanext/visualize/assets/css/visualize_main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

/* Visualize CSS */
.visualize-wrapper {
margin-top: 1rem;
Expand Down Expand Up @@ -354,3 +362,4 @@ input[type='color']::-webkit-color-swatch {
}

@media (max-width: 1200px) {}

Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

/* This CKAN module handles setting the chart type icon to the default one. */

ckan.module('visualize-chart-icon-reset', function($) {
Expand All @@ -23,3 +31,4 @@ ckan.module('visualize-chart-icon-reset', function($) {
}
};
});

9 changes: 9 additions & 0 deletions ckanext/visualize/assets/js/modules/visualize-chart-type.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

/* This CKAN module handles showing image preview when choosing an image for chart type. */

ckan.module('visualize-chart-type', function($) {
Expand Down Expand Up @@ -30,3 +38,4 @@ ckan.module('visualize-chart-type', function($) {
}
};
});

Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

/* This CKAN module handles adding a color from the admin settings. */

ckan.module('visualize-colors-settings-add', function ($) {
Expand Down Expand Up @@ -31,3 +39,4 @@ ckan.module('visualize-colors-settings-add', function ($) {
}
};
});

Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

/* This CKAN module handles removing a color from the admin settings. */

ckan.module('visualize-colors-settings-remove', function ($) {
Expand Down Expand Up @@ -32,3 +40,4 @@ ckan.module('visualize-colors-settings-remove', function ($) {
}
};
});

Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

/* This CKAN module handles resetting colors to default from the admin settings. */

ckan.module('visualize-colors-settings-reset', function($) {
Expand Down Expand Up @@ -43,3 +51,4 @@ ckan.module('visualize-colors-settings-reset', function($) {
}
};
});

9 changes: 9 additions & 0 deletions ckanext/visualize/assets/js/modules/visualize-data.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

/* This CKAN module handles the creation of the Data Viewer. Data is rendered
on a chart based on the resource that has been provided. The resource must be
uploaded to DataStore. */
Expand Down Expand Up @@ -730,3 +738,4 @@ ckan.module('visualize-data', function($) {
}
};
});

8 changes: 8 additions & 0 deletions ckanext/visualize/default_color_palette.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""

DEFAULT_COLORS = [
'#332288',
'#117733',
Expand Down
8 changes: 8 additions & 0 deletions ckanext/visualize/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""

import json

from ckan.plugins import toolkit
Expand Down
8 changes: 8 additions & 0 deletions ckanext/visualize/plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""

import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit
from ckan.common import config
Expand Down
9 changes: 9 additions & 0 deletions ckanext/visualize/templates/admin/base.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

{% ckan_extends %}

{% block content_primary_nav %}
{{ super() }}
{{ h.build_nav_icon('admin_visualize.visualize_data', _('Visualize'), icon='bar-chart-o') }}
{% endblock %}

9 changes: 9 additions & 0 deletions ckanext/visualize/templates/admin/visualize_data.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

{% extends 'admin/base.html' %}

{% block scripts %}
Expand Down Expand Up @@ -156,3 +164,4 @@ <h2 class="module-heading">
</div>
</div>
{% endblock %}

9 changes: 9 additions & 0 deletions ckanext/visualize/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

{% ckan_extends %}

{% block scripts %}
Expand All @@ -14,3 +22,4 @@
{% endblock %}



8 changes: 8 additions & 0 deletions ckanext/visualize/templates/package/view_edit_base.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

{% extends "package/resource_edit_base.html" %}

{% set logged_in = true if c.userobj else false %}
Expand Down
9 changes: 9 additions & 0 deletions ckanext/visualize/templates/snippets/visualize_view_show.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

{# Adds 'Visualize View' #}

<div class="visualize-wrapper" data-module="visualize-data" data-module-resource-id="{{ resource_id }}"
Expand Down Expand Up @@ -134,3 +142,4 @@ <h5 class="text-muted desc-muted">Data Types</h5>
</div>
</div>
</div>

9 changes: 9 additions & 0 deletions ckanext/visualize/templates/visualize/data_viewer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

{% asset 'visualize/data_viewer' %}

{% extends 'base.html' %}
Expand All @@ -18,3 +26,4 @@
%}
{% endblock %}


8 changes: 8 additions & 0 deletions ckanext/visualize/templates/visualize_form.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

<!-- Hidden fields needed for the visualize module -->
{% asset 'visualize/hide_preview_button' %}
<input type="hidden" name="visualize_x_axis" />
Expand Down
9 changes: 9 additions & 0 deletions ckanext/visualize/templates/visualize_view.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->

{% block visualize_view_show %}
{% snippet 'snippets/visualize_view_show.html',
fields=fields,
Expand All @@ -8,3 +16,4 @@
point_chart_icon=point_chart_icon
%}
{% endblock %}

7 changes: 7 additions & 0 deletions ckanext/visualize/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""
8 changes: 8 additions & 0 deletions ckanext/visualize/tests/test_blueprints.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""

import pytest

from ckan.tests import helpers, factories
Expand Down
8 changes: 8 additions & 0 deletions ckanext/visualize/tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""

import pytest

from ckan.tests import helpers as core_helpers
Expand Down
8 changes: 8 additions & 0 deletions ckanext/visualize/tests/test_view.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""

import pytest
import ckan.plugins as p
from ckan.tests import helpers, factories
Expand Down
7 changes: 7 additions & 0 deletions ckanext/visualize/views/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
Copyright (c) 2019 Keitaro AB
Use of this source code is governed by an MIT license
that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""
Loading

0 comments on commit 590bdf3

Please sign in to comment.