Skip to content
Permalink
Browse files

initial commit

  • Loading branch information...
zolamk committed Sep 20, 2018
0 parents commit a692dd70eb0e6be374cd2ff2a051f6435c0e4442
Showing with 18,976 additions and 0 deletions.
  1. +22 −0 .gitignore
  2. +17 −0 .gitlab-ci.yml
  3. +5 −0 .postcssrc.js
  4. +74 −0 CODE_OF_CONDUCT.md
  5. +46 −0 CONTRIBUTING.md
  6. +21 −0 LICENSE
  7. +2 −0 Makefile
  8. +34 −0 README.md
  9. +5 −0 babel.config.js
  10. +3 −0 netlify.toml
  11. +12,322 −0 package-lock.json
  12. +46 −0 package.json
  13. +40 −0 public/config.yml
  14. +15 −0 public/index.html
  15. +28 −0 src/SaleinaCMS.vue
  16. +3 −0 src/assets/icons/add.svg
  17. +3 −0 src/assets/icons/collection.svg
  18. +3 −0 src/assets/icons/delete.svg
  19. +3 −0 src/assets/icons/media.svg
  20. +3 −0 src/assets/icons/remove.svg
  21. +194 −0 src/assets/logo.green.svg
  22. +194 −0 src/assets/logo.svg
  23. +159 −0 src/components/collection/add.vue
  24. +58 −0 src/components/collection/collection.vue
  25. +238 −0 src/components/collection/edit-file-collection.vue
  26. +238 −0 src/components/collection/edit-folder-collection.vue
  27. +50 −0 src/components/collection/edit.vue
  28. +33 −0 src/components/collection/file-collection.vue
  29. +137 −0 src/components/collection/folder-collection.vue
  30. +120 −0 src/components/inc/button.vue
  31. +11 −0 src/components/inc/index.js
  32. +46 −0 src/components/inc/input.vue
  33. +40 −0 src/components/inc/loading.vue
  34. +164 −0 src/components/inc/media-preview.vue
  35. +43 −0 src/components/inc/tabs/components/Tab.vue
  36. +128 −0 src/components/inc/tabs/components/Tabs.vue
  37. +30 −0 src/components/inc/tabs/expiringStorage.js
  38. +11 −0 src/components/inc/tabs/index.js
  39. +43 −0 src/components/login.vue
  40. +219 −0 src/components/main.vue
  41. +194 −0 src/components/media.vue
  42. +94 −0 src/components/widgets/boolean.vue
  43. +58 −0 src/components/widgets/date.vue
  44. +60 −0 src/components/widgets/datetime.vue
  45. +9 −0 src/components/widgets/hidden.vue
  46. +113 −0 src/components/widgets/image.vue
  47. +11 −0 src/components/widgets/index.js
  48. +237 −0 src/components/widgets/list.vue
  49. +77 −0 src/components/widgets/markdown.vue
  50. +37 −0 src/components/widgets/number.vue
  51. +85 −0 src/components/widgets/object.vue
  52. +32 −0 src/components/widgets/select.vue
  53. +32 −0 src/components/widgets/string.vue
  54. +35 −0 src/components/widgets/text.vue
  55. +485 −0 src/config.js
  56. +209 −0 src/main.js
  57. +42 −0 src/router.js
  58. +1 −0 src/store/actions.js
  59. +293 −0 src/store/backends/gitlab/actions.js
  60. +15 −0 src/store/backends/gitlab/index.js
  61. +71 −0 src/store/backends/gitlab/media.actions.js
  62. +22 −0 src/store/backends/gitlab/media.mutations.js
  63. +5 −0 src/store/backends/gitlab/mutations.js
  64. +48 −0 src/store/index.js
  65. +34 −0 src/store/mutations.js
  66. +382 −0 src/styles.css
  67. +122 −0 src/utils/lib.js
  68. +104 −0 src/utils/schema.js
  69. +34 −0 vue.config.js
  70. +19 −0 website/README.md
  71. +16 −0 website/config.toml
  72. +2 −0 website/content/_index.md
  73. +184 −0 website/content/docs/add-to-your-site.md
  74. +29 −0 website/content/docs/backends.md
  75. +17 −0 website/content/docs/boolean.md
  76. +68 −0 website/content/docs/collection-types.md
  77. +123 −0 website/content/docs/configuration-options.md
  78. +22 −0 website/content/docs/date.md
  79. +21 −0 website/content/docs/datetime.md
  80. +17 −0 website/content/docs/hidden.md
  81. +20 −0 website/content/docs/image.md
  82. +20 −0 website/content/docs/introduction.md
  83. +38 −0 website/content/docs/list.md
  84. +19 −0 website/content/docs/markdown.md
  85. +26 −0 website/content/docs/number.md
  86. +35 −0 website/content/docs/object.md
  87. +35 −0 website/content/docs/select.md
  88. +17 −0 website/content/docs/string.md
  89. +18 −0 website/content/docs/text.md
  90. +19 −0 website/content/docs/update-the-cms-version.md
  91. +28 −0 website/content/docs/widgets.md
  92. +30 −0 website/layouts/_default/baseof.html
  93. +7 −0 website/layouts/_default/li.html
  94. +9 −0 website/layouts/_default/list.html
  95. +6 −0 website/layouts/_default/single.html
  96. +42 −0 website/layouts/docs/single.html
  97. +34 −0 website/layouts/index.html
  98. +41 −0 website/static/admin/config.yml
  99. +16 −0 website/static/admin/index.html
  100. +206 −0 website/static/css/style.styl
  101. BIN website/static/images/logo.png
@@ -0,0 +1,22 @@
.DS_Store
node_modules
/dist
website/static/css/*.css

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
@@ -0,0 +1,17 @@
image: node:latest

before_script:
- npm install --progress=false

cache:
paths:
- node_modules/

publish:
stage: deploy
only:
- tags
script:
- npm run build
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
- npm publish
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}
@@ -0,0 +1,74 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at admin@zede.solutions. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
@@ -0,0 +1,46 @@
# CONTRIBUTING

Contributions are always welcome, no matter how large or small. Before contributing,
please read the [code of conduct](CODE_OF_CONDUCT.md).

For details on contributing to documentation, see [Website Directory Readme](https://github.com/netlify/netlify-cms/blob/master/website/README.md).

## Setup

> Install node on your system: [Node](https://nodejs.org/en/download)
### Install dependencies

> Only required on the first run, subsequent runs can use `npm run serve` to run the development server.
```sh
$ git clone https://gitlab.com/saleina/SaleinaCMS
$ cd SaleinaCMS
$ npm install
```

### Run locally

```sh
$ npm run serve
```

## Pull Requests

We actively welcome your pull requests!

If you need help with Git or our workflow, please ask on [Telegram](tg://resolve?domain=saleinacmsdiscussions). We want your contributions even if you're just learning Git. Our maintainers are happy to help!

Saleina CMS uses the [Forking Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows#forking-workflow) + [Feature Branches](https://www.atlassian.com/git/tutorials/comparing-workflows#feature-branch-workflow). Additionally, PR's should be [rebased](https://www.atlassian.com/git/tutorials/merging-vs-rebasing) on master when opened, and again before merging.

1. Fork the repo.
2. Create a branch from `master`. If you're addressing a specific issue, prefix your branch name with the issue number.
3. If you've added code that should be tested, add tests.
4. If you've changed APIs, update the documentation.
5. PR's must be rebased before merge (feel free to ask for help).
6. PR should be reviewed by two maintainers prior to merging.

## License

By contributing to Saleina CMS, you agree that your contributions will be licensed
under its [MIT license](LICENSE).
21 LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Zelalem Mekonen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
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.
@@ -0,0 +1,2 @@
build:
cd website ; hugo --minify ; npm install ; ../node_modules/.bin/stylus --include ../node_modules/nib/nib ./public/css
@@ -0,0 +1,34 @@
# Saleina CMS

[![](https://data.jsdelivr.com/v1/package/npm/saleina-cms/badge)](https://www.jsdelivr.com/package/npm/saleina-cms)

A CMS for static site generators. Give non-technical users a simple way to edit
and add content to any site built with a static site generator.

## How it works

Saleina CMS is a single-page app that you pull into the `/admin` part of your site.

It presents a clean UI for editing content stored in a Git repository.

You setup a YAML config to describe the content model of your site, and typically
tweak the main layout of the CMS a bit to fit your own site.

When a user navigates to `/admin` they'll be prompted to login, and once authenticated
they'll be able to create new content or edit existing content.

Read more about Saleina CMS [Introduction](https://saleinacms.org/docs/).

# Installation and Configuration

A Quick and easy install, that just requires you to create a single HTML file and a configuration file. All the CMS files are loaded from a CDN. To learn more about this installation method, refer to the [Docs](https://saleinacms.org/docs/)

# Change Log

This project adheres to [Semantic Versioning](http://semver.org/).
Every release is documented on the Gitlab [Tags](https://gitlab.com/saleina/SaleinaCMS/tags) page.

# License

Saleina CMS is released under the [MIT License](LICENSE).
Please make sure you understand its [implications and guarantees](https://writing.kemitchell.com/2016/09/21/MIT-License-Line-by-Line.html).
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
}
@@ -0,0 +1,3 @@
[build]
command = "make build"
"publish" = "website/public"

0 comments on commit a692dd7

Please sign in to comment.
You can’t perform that action at this time.