diff --git a/gulpfile.js b/gulpfile.js index 5b32de29..f6447122 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -65,7 +65,6 @@ gulp.task("copy", function () { gulp.task('compile', function () { gulp.src([ './src/client/app.js', - './src/client/document.js', './src/client/instagram.js' ]) .pipe(named()) diff --git a/src/client/document.js b/src/client/document.js deleted file mode 100644 index bfe76cad..00000000 --- a/src/client/document.js +++ /dev/null @@ -1,32 +0,0 @@ -import UppercaseFirst from './filters/UppercaseFirst'; - -var app = angular.module("hudozhka.document", [ - "hudozhka.data", - "angulartics", - "angulartics.google.analytics" -]); - -app.factory("docname", function ($location) { - return function(){ - var abs = $location.absUrl(); - var doc_uri = /\/([\w-]+)$/.exec(abs); - if(doc_uri.length >= 2) { - return doc_uri[1]; - }else{ - return null; - } - } -}); - -app.controller("DocumentController", function ($rootScope, $scope, docs, docname) { - $scope.pageClass = "page-document"; - - var n = docname(); - if(n) { - var d = docs.doc(n); - $scope.document = d; - $rootScope.title = d.title; - } -}); - -UppercaseFirst(app); \ No newline at end of file diff --git a/src/models/document.js b/src/models/document.js deleted file mode 100644 index 3ed73b77..00000000 --- a/src/models/document.js +++ /dev/null @@ -1,115 +0,0 @@ -const DOCS = [ - { - "name": "statue-2013", - "title": "устав школы за 2013 год", - "url": "https://static.shburg.org/art/docs/hudozhka_statue-2013.pdf", - "preview": "https://static.shburg.org/art/graphics/statue-2013-preview.png", - "files": ["https://static.shburg.org/art/docs/hudozhka_statue-2013.pdf"] - }, - { - "name": "edu-license", - "title": "образовательная лицензия", - "url": "/document/edu-license", - "preview": "https://static.shburg.org/art/graphics/license_edu-preview.png", - "files": [ - "https://static.shburg.org/art/docs/hudozhka_license_edu.jpg", - "https://static.shburg.org/art/docs/hudozhka_license_edu_back.jpg", - "https://static.shburg.org/art/docs/hudozhka_license_edu_attachment.jpg" - ] - }, - { - "name": "gov-certificate", - "title": "свидетельство о государственной регистрации права", - "url": "/document/gov-certificate", - "preview": "https://static.shburg.org/art/graphics/certificate_gov-preview.png", - "files": ["https://static.shburg.org/art/docs/hudozhka_certificate_gov.jpg"] - }, - { - "name": "VAT", - "title": "ИНН", - "url": "/document/VAT", - "preview": "https://static.shburg.org/art/graphics/vatin-preview.png", - "files": ["https://static.shburg.org/art/docs/hudozhka_vatin.jpg"] - }, - { - "name": "EGRYL1", - "title": "свидетельство о внесении в «ЕГРЮЛ»", - "url": "/document/EGRYL1", - "preview": "https://static.shburg.org/art/graphics/certificate_egryl1-preview.png", - "files": ["https://static.shburg.org/art/docs/hudozhka_certificate_egryl1.jpg"] - }, - { - "name": "EGRYL2", - "title": "свидетельство о внесении в «ЕГРЮЛ»", - "url": "/document/EGRYL2", - "preview": "https://static.shburg.org/art/graphics/certificate_egryl2-preview.png", - "files": ["https://static.shburg.org/art/docs/hudozhka_certificate_egryl2.jpg"] - } -]; - -exports.docs = DOCS; -exports.doc = getDocByName; -exports.cap = makeCap; -// exports.extra = populateExtra; - -function getDocByName(name){ - if(name && typeof name == "string"){ - for(var i=0; i - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
-
- - \ No newline at end of file