Compare commits
10
Commits
034eb75908
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64a3f0f10e | ||
|
|
aea00e4941 | ||
|
|
65c2d2b2f6 | ||
|
|
daad40b0b8 | ||
|
|
fe8a044ae5 | ||
|
|
74baac6c0e | ||
|
|
f919dec481 | ||
|
|
914d5855d4 | ||
|
|
3d878f62f0 | ||
|
|
f213a9ead3 |
No files matched your search
@@ -0,0 +1,33 @@
|
|||||||
|
<p align="center">
|
||||||
|
<a href="https://http://slackthemes.net" target="_blank"><img src="https://raw.githubusercontent.com/paracycle/slackthemes/master/source/favicon-32.png"></a>
|
||||||
|
<br /><strong>Slack Themes</strong>
|
||||||
|
</p>
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://travis-ci.org/paracycle/slackthemes" target="_blank"><img src="https://travis-ci.org/paracycle/slackthemes.svg?branch=master"></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
### About the project
|
||||||
|
|
||||||
|
slackthemes.net is a platform for browsing and sharing themes for [Slack](https://slack.com/).
|
||||||
|
It is not affiliated with [Slack](https://slack.com/) in any way or form; but it is a great tool, use it.
|
||||||
|
|
||||||
|
|
||||||
|
### How to contribute (themes)
|
||||||
|
|
||||||
|
1. Fork this project.
|
||||||
|
2. Add your theme to the `data/themes.yml` file.
|
||||||
|
3. Create a pull request.
|
||||||
|
|
||||||
|
### How to contribute (core)
|
||||||
|
|
||||||
|
1. Fork this project.
|
||||||
|
2. Install dependencies using `bundle install`
|
||||||
|
3. Make changes.
|
||||||
|
4. Build the project using `bundle exec middleman build`
|
||||||
|
5. You can [run a local webserver](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server) to test the project. (make sure to use the `./build` folder as your DocumentRoot).
|
||||||
|
6. Create a pull request.
|
||||||
|
|
||||||
|
### Contributors
|
||||||
|
|
||||||
|
* [Contributors](https://github.com/paracycle/slackthemes/graphs/contributors)
|
||||||
@@ -105,4 +105,12 @@ helpers do
|
|||||||
))
|
))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def default_theme
|
||||||
|
theme = data.themes.first
|
||||||
|
OpenStruct.new(theme.merge(
|
||||||
|
slug: theme['name'].parameterize.underscore,
|
||||||
|
digest: Digest::MD5.new.hexdigest(theme['colors'])
|
||||||
|
))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
@@ -251,3 +251,7 @@
|
|||||||
- { colors: '#E3E6EA,#EDEFF1,#D1571C,#FFFFFF,#1DB3C5,#333232,#48B8AD,#D3561A', name: 'beNext' }
|
- { colors: '#E3E6EA,#EDEFF1,#D1571C,#FFFFFF,#1DB3C5,#333232,#48B8AD,#D3561A', name: 'beNext' }
|
||||||
- { colors: '#000000,#a8a8a8,#000000,#a6a6a6,#000000,#7d7d7d,#078500,#bf0000', name: 'mishaor' }
|
- { colors: '#000000,#a8a8a8,#000000,#a6a6a6,#000000,#7d7d7d,#078500,#bf0000', name: 'mishaor' }
|
||||||
- { colors: '#222222,#333333,#9FC65D,#FFFFFF,#4A5664,#F4F4F4,#9FC65D,#ffbc3b', name: 'Inpsyde' }
|
- { colors: '#222222,#333333,#9FC65D,#FFFFFF,#4A5664,#F4F4F4,#9FC65D,#ffbc3b', name: 'Inpsyde' }
|
||||||
|
- { colors: '#2e4f7e,#2C3849,#203251,#FFFFFF,#456494,#FFFFFF,#a6c056,#e9ae4c', name: 'Visual Composer' }
|
||||||
|
- { colors: '#323232,#E60A00,#E60A00,#FFFFFF,#505050,#F5F5F5,#E64600,#E60A00', name: '360Channel' }
|
||||||
|
- { colors: '#000639,#3E313C,#108043,#FFFFFF,#173630,#FFFFFF,#50B83C,#9C6ADE', name: 'Shopify'}
|
||||||
|
- { colors: '#0c234b,#AB0520,#AB0520,#ffffff,#07142b,#FFFFFF,#AB0520,#0c234B', name: 'University of Arizona'}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -9,10 +9,10 @@ app.config(['$stateProvider', '$urlRouterProvider',
|
|||||||
url: "/:slug",
|
url: "/:slug",
|
||||||
controller: 'ThemeController',
|
controller: 'ThemeController',
|
||||||
params: {
|
params: {
|
||||||
slug: { value: '<%= themes.first.slug %>' }
|
slug: { value: '<%= default_theme.slug %>' }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$urlRouterProvider.otherwise('/<%= themes.first.slug %>');
|
$urlRouterProvider.otherwise('/<%= default_theme.slug %>');
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
app.controller('ThemeController', ['$scope', '$stateParams', '$state', '$location',
|
app.controller('ThemeController', ['$scope', '$stateParams', '$state', '$location',
|
||||||
|
|||||||
Reference in new issue
Block a user