Semantic-Org/Semantic-UI-Meteor là một trong những repo mã nguồn mở mà TopGit theo dõi, hiện có 222 sao, viết chủ yếu bằng JavaScript. Official Semantic UI Integration for Meteor
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Create an empty custom.semantic.json inside a /client/ folder somewhere in your project.
Example: /client/lib/semantic-ui/custom.semantic.json.
Start meteor
Edit the file custom.semantic.json to select only the definitions and themes you want
Example: set themesbasic to true, leave default as true
Save the file and it will generate Semantic UI
Check the generated-structure table below for editable files and folders.
IMPORTANT: If you are happy with the default values you will NEED to remove .custom.semantic.json to generate Semantic UI. (see Generating Trigger)
NOTE: Another way to use ONLY the default values is to use this package: https://atmospherejs.com/semantic/ui-css
meteor add semantic:ui-css
Getting Started & Initializing Modules
Semantic UI requries some components to be initialized or they will not work (Dropdowns, Menus, Accordions, etc)
Refer to the Usage sections in a module on how to initialize each element eg: Semantic UI Accordion Usage
Example of initializing a dropdown using a template helper
Template.myDropdown.rendered = function() {
// be sure to use this.$ so it is scoped to the template instead of to the window
this.$('.ui.dropdown').dropdown({on: 'hover'});
// other SUI modules initialization
};
Abstracted version which you use on any template helper
function initAccordions(template) {
template.$('.ui.accordion').accordion();
}
function initDropdowns(template) {
template.$('.ui.dropdown').dropdown({on: 'hover'});
}
Template.myDropdowns.onRendered({
initDropdowns(this);
})
custom.semantic.json
custom.semantic.json is the most important file. If it is empty, semantic:ui will generate the content with all the definitions and themes. By default, it sets to true all definitions and the core-theme "default"(which should always be true).
Changing any value will trigger the package to regenerate the files/folders accordingly.
Be aware when you strip away definitions. The site definition is always needed and so is the default theme. Here an example of the most minimal custom.semantic.json file.
{
"definitions": {
"site": true // <- needs to be true
},
"themes": {
"basic": true, // <- a theme
"default": true // <- core "theme" needs to be true
}
}
Generated Structure
This package generates the following structure based on custom.semantic.json
The following table explains the generated files/folders and if they are editable without losing any changes when generating.
File/Folder
Description
Generated
Editable
definitions/
contains the less and javascript definitions for each component
always
no
site/
contains your current site's theme
only if it does not exist
yes
themes/
contains pre-packaged themes including Semantic's default theme
always
no
.custom.semantic.json
copy of custom.semantic.json (see Generating Trigger)
always
no
custom.semantic.json
contains definitions and themes to be included or not
only if the file is empty
yes
semantic.less
imports the definitions
always
no
theme.config.import.less
defines which theme to use per components
only if the file does not exist
yes
theme.import.less
imports the right themes
always
no
site/
This folder contains your current site's theme. It is generated only when it does not exist. Therefore if you change custom.semantic.json to turn definitions/themes on/off, then it will not affect site/. You will either need to add/remove files in site/ or remove the site/ folder so it can be regenerated again.
Generating Trigger
Every time Meteor starts (or refreshes) it calls the package semantic:ui to generate Semantic UI.
The package has a simple mechanism based on the difference of custom.semantic.json and .custom.semantic.json to avoid generating all the Semantic UI files and folders each time Meteor starts (or refreshes).
Therefore if the file .custom.semantic.json does not exist or it is different from custom.semantic.json then it will generate Semantic UI.
Dependencies
(Meteor <1.3) flemay:less-autoprefixer: Semantic UI needs autoprefixer to be compiled.
Note 1: You can choose any less-autoprefixer package.
Note 2: Since the flemay:less-autoprefixer package compiles LESS files you don't need the less package.
Đọc thêm về Semantic-Org/Semantic-UI-Meteor ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Semantic-Org/Semantic-UI-Meteor là nguồn chính thức.
Semantic-Org/Semantic-UI-Meteor có bao nhiêu sao?
Semantic-Org/Semantic-UI-Meteor có 222 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Semantic-Org/Semantic-UI-Meteor. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Semantic-Org/Semantic-UI-Meteor có phải mã nguồn mở không?
Có — Semantic-Org/Semantic-UI-Meteor phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/Semantic-Org/Semantic-UI-Meteor.
Semantic-Org/Semantic-UI-Meteor có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho Semantic-Org/Semantic-UI-Meteor. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
Semantic-Org/Semantic-UI-Meteor là gì?
Semantic-Org/Semantic-UI-Meteor (Semantic-Org/Semantic-UI-Meteor) là dự án JavaScript trên GitHub. Theo mô tả gốc: Official Semantic UI Integration for Meteor
Đọc đầy đủ README ở tab phía trên.
Chưa chắc Semantic-UI-Meteor có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về Semantic-UI-Meteor.