apiqcms / kms Goto Github PK
View Code? Open in Web Editor NEWSimple and powerful Ruby on Rails CMS for developers
Home Page: http://apiq.io
License: MIT License
Simple and powerful Ruby on Rails CMS for developers
Home Page: http://apiq.io
License: MIT License
Sprockets::FileNotFound: couldn't find file 'codemirror/lib/codemirror'
vendor
folder not included in gem package
When moving page to another position, need to do this twice to make it saved and placed where it was dropped.
When working with several tabs (and different KMS sections), would be good to have more verbose titles - http://joxi.ru/xAeJLoBFYE9wWr
Separating rendering from app will allow to make APIQ even more flexible by getting closer to Headless CMS possibilities
Hello, @GarPit ! If you publish something, please check it twice before deploy. I think you know what I mean.
In Rails 4.2, the length fingerprint of compiled asset is 64
Error in Console:
Uncaught TypeError: Cannot set property 'dir' of undefined
Looks like solution can be found in ckeditor gem - galetahub/ckeditor@82cb23e
If you use another cloud storage(like s3), that support s3 api, for example, mailru hotbox(https://mcs.mail.ru/hotbox/) use must add host to carrierwave config.
At least, for controllers
Use bundle
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.1.1)
kms was resolved to 0.9.0, which depends on
rails (~> 5.0.0)
Add ability to edit 404 page
There is an issue after running: RAILS_ENV=development bin/rake db:migrate :
Running via Spring preloader in process 6023
== 20160727081524 CreatePages: migrating ======================================
-- create_table(:kms_pages)
-> 0.0017s
== 20160727081524 CreatePages: migrated (0.0018s) =============================
== 20160727081525 CreateTemplates: migrating ==================================
-- create_table(:kms_templates)
-> 0.0014s
== 20160727081525 CreateTemplates: migrated (0.0015s) =========================
== 20160727081526 AddTemplateIdToPages: migrating =============================
-- add_column(:kms_pages, :template_id, :integer)
-> 0.0009s
== 20160727081526 AddTemplateIdToPages: migrated (0.0010s) ====================
== 20160727081527 CreateAssets: migrating =====================================
-- create_table(:kms_assets)
-> 0.0012s
== 20160727081527 CreateAssets: migrated (0.0013s) ============================
== 20160727081528 AddAncestryToPages: migrating ===============================
-- add_column(:kms_pages, :ancestry, :string)
-> 0.0008s
-- add_index(:kms_pages, :ancestry)
-> 0.0011s
== 20160727081528 AddAncestryToPages: migrated (0.0021s) ======================
== 20160727081529 DeviseCreateUsers: migrating ================================
-- create_table(:kms_users)
-> 0.0027s
-- add_index(:kms_users, :email, {:unique=>true})
-> 0.0010s
-- add_index(:kms_users, :reset_password_token, {:unique=>true})
-> 0.0017s
== 20160727081529 DeviseCreateUsers: migrated (0.0057s) =======================
== 20160727081530 AddFullpathToPages: migrating ===============================
-- add_column(:kms_pages, :fullpath, :string)
-> 0.0005s
== 20160727081530 AddFullpathToPages: migrated (0.0006s) ======================
== 20160727081531 AddRoleToUsers: migrating ===================================
-- add_column(:kms_users, :role, :string)
-> 0.0009s
== 20160727081531 AddRoleToUsers: migrated (0.0010s) ==========================
== 20160727081532 AddTemplatableFieldsToPages: migrating ======================
-- add_column(:kms_pages, :templatable, :boolean, {:default=>false})
-> 0.0012s
-- add_column(:kms_pages, :templatable_type, :string)
-> 0.0006s
== 20160727081532 AddTemplatableFieldsToPages: migrated (0.0020s) =============
== 20160727081533 AddHiddenToPage: migrating ==================================
-- add_column(:kms_pages, :hidden, :boolean, {:default=>false})
-> 0.0010s
== 20160727081533 AddHiddenToPage: migrated (0.0011s) =========================
== 20160727081534 AddPositionToKmsPages: migrating ============================
-- add_column(:kms_pages, :position, :integer, {:default=>0, :null=>false})
-> 0.0010s
== 20160727081534 AddPositionToKmsPages: migrated (0.0011s) ===================
== 20160727081535 CreateKmsSnippets: migrating ================================
-- create_table(:kms_snippets)
-> 0.0007s
== 20160727081535 CreateKmsSnippets: migrated (0.0008s) =======================
== 20160727081536 CreateKmsSettings: migrating ================================
-- create_table(:kms_settings)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `json' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x005588484c5998>
Did you mean? JSON
/home/siswa/Documents/Projects/Rails/cmskms/db/migrate/20160727081536_create_kms_settings.kms.rb:5:in `block in change'
/home/siswa/Documents/Projects/Rails/cmskms/db/migrate/20160727081536_create_kms_settings.kms.rb:4:in `change'
-e:1:in `<main>'
NoMethodError: undefined method `json' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x005588484c5998>
Did you mean? JSON
/home/siswa/Documents/Projects/Rails/cmskms/db/migrate/20160727081536_create_kms_settings.kms.rb:5:in `block in change'
/home/siswa/Documents/Projects/Rails/cmskms/db/migrate/20160727081536_create_kms_settings.kms.rb:4:in `change'
-e:1:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Here is a Gemfile.
Any suggestion?
Hi,
Right now, I know that set the web site language to be Chinese via config.i18n.default_locale = 'zh-CN'
at the file /config/application.rb
after I install kms into my rails app. But I cannot find any guideline for the front-end. Is there anyone can help?
Thanks.
Would be cool if typing {%
or {{
automatically add %}
or }}
Rails5 after adding to existng project
rake db:migrate
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /Users/ccc/.rvm/gems/ruby-2.3.3@synchro/gems/less-rails-2.8.0/lib/less/rails/railtie.rb:16)
DEPRECATION WARNING: You are using the a deprecated processor interface Less::Rails::ImportProcessor.
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /Users/ccc/.rvm/gems/ruby-2.3.3@synchro/gems/less-rails-2.8.0/lib/less/rails/railtie.rb:21)
== 20170120190125 AddRoleToUsers: migrating ===================================
-- add_column(:kms_users, :role, :string)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedTable: ERROR: relation "kms_users" does not exist
: ALTER TABLE "kms_users" ADD "role" character varying
Need to forbid creation of more than 1 templatable page on 1 level
Because of its therubyracer dependency 👎
It’s possible to drag and drop page to top level so it looks like root page
Redirects to https and triggers a security warning in Firefox
Can you help me To figure out How can i make submenus work.
Here is My Nav codes
<div class="collapse navbar-collapse flex-sm-row-reverse" id="headernav">
<ul class=" nav navbar-nav menu">
{% for p in: index.children.find_all_by(hidden: false published: true) do: %}
<li class="nav-item">
<a class="nav-link" href="/{{ p.fullpath }}">{{ p.title }}</a>
</li>
{% end for %}
</ul>
</div
Using Above codes the sub pages are not showing on navigation.
Thanks in advance
Thanks very interesny project. But some problems make me crazy.
If i'll add stylesheet containing russian comments(in cp1251 or koi8r) it will crash assets page. To solve it i should edit comments or remove file from assets directory. I understand that this asset will not compile(utf8 support only). But can i get error instead of crash?
If i selected template for some one page i can't undo this decision. But what should i do if i want to create second template later?
In the last i want to propose removing site tree from center to page submenu like modx(super style). It will be terrible if someone move or delete any page. In current syle it will be easy.
And want to propose adding html editor like tinymce or any other for content manager.
As described here:
Sometimes (files with comments) asset content type can be defined as "text/x-csrc". For such type we can't see CodeMirror editor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.