Skip to content

Commit

Permalink
Updated news
Browse files Browse the repository at this point in the history
  • Loading branch information
nikbabchenko committed Apr 21, 2018
1 parent 87f4f56 commit 351b61d
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 2 deletions.
11 changes: 9 additions & 2 deletions createSvg.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const outputFileName ='svg.json';

try {
fs.readdir(svgsPath, function (err, files) {
if (err) {
console.log(err);
return;
}

const result = {};
files
.filter( function(elm) {
Expand All @@ -20,8 +25,10 @@ try {
result[file] = fs.readFileSync(path, 'utf8');
});

fs.writeFile(outputPath + outputFileName, JSON.stringify(result), 'utf8', function () {
console.log('writing...done');
fs.writeFile(outputPath + outputFileName, JSON.stringify(result), 'utf8', function (err) {
if (err) {
console.log(err);
}
});
});
}
Expand Down
42 changes: 42 additions & 0 deletions src/app/pages/charity/charity-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,47 @@ export const charityList = [
goal: 'Оплата реабилитации',
summ: '10 030 грн.',
add: '<img src="/assets/images/charity/gavrilova.png" alt="Оплата реабилитации" class="responsive-image popup">'
},
{
name: 'Холин А.П.',
goal: 'Покупка медицинского оборудования',
summ: '5 500 грн.',
add: '<img src="/assets/images/charity/holin.jpg" alt="Оплата реабилитации" class="responsive-image popup">'
},
{
name: 'Калашинский Павел',
goal: 'Покупка беговой дорожки для реабилитации',
summ: '11 079 грн.',
add: '<img src="/assets/images/charity/kalashinsky.png" alt="Оплата реабилитации" class="responsive-image popup">'
},
{
name: 'Дунаевская Оксана',
goal: 'Покупка медикаментов',
summ: '63 600 грн.',
add: '<img src="/assets/images/charity/dunaevskaya.jpg" alt="Покупка медикаментов" class="responsive-image popup">'
},
{
name: 'Слепухина Варвара',
goal: 'Покупка медикаментов',
summ: '2 399 грн.',
add: '<img src="/assets/images/charity/slepuxina.jpg" alt="Покупка медикаментов" class="responsive-image popup">'
},
{
name: 'Мельничук Максим',
goal: 'Оплата услуг реабилитации',
summ: '29 040 грн.',
add: '<img src="/assets/images/charity/melnichuk.jpg" alt="Оплата услуг реабилитации" class="responsive-image popup">'
},
{
name: 'Андониев Виталий',
goal: 'Оплата услуг реабилитации',
summ: '21 626 грн.',
add: '<img src="/assets/images/charity/andoniev.jpg" alt="Покупка медикаментов" class="responsive-image popup">'
},
{
name: 'Васильченко Владислав',
goal: 'Оплата услуг реабилитации',
summ: '15 470 грн.',
add: '<img src="/assets/images/charity/vasilchenko.jpg" alt="Покупка медикаментов" class="responsive-image popup">'
}
];
Binary file added src/assets/images/charity/andoniev.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/dunaevskaya.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/holin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/kalashinsky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/melnichuk.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/slepuxina.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/vasilchenko.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- "0.11"
# whitelist
branches:
only:
- master
env:
global:
- secure: h6i/QFDLprVJe7u/ZT...
- secure: CeolZiNWmqNp03j2bF...
after_success:
- ./deploy.sh

0 comments on commit 351b61d

Please sign in to comment.