{"id":24989763,"url":"https://github.com/eyal-wowhub/addonconfig","last_synced_at":"2025-03-29T12:15:22.362Z","repository":{"id":271034063,"uuid":"911264153","full_name":"Eyal-WowHub/AddonConfig","owner":"Eyal-WowHub","description":"A library that generates addon settings from a template.","archived":false,"fork":false,"pushed_at":"2025-02-09T04:35:35.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T05:25:36.144Z","etag":null,"topics":["lib","library","lua","world-of-warcraft","world-of-warcraft-addon","wow","wow-addon"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eyal-WowHub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-02T16:02:20.000Z","updated_at":"2025-02-09T04:35:38.000Z","dependencies_parsed_at":"2025-01-05T14:34:09.315Z","dependency_job_id":"2dee4e88-7d41-4716-b0ad-d79609d9ced7","html_url":"https://github.com/Eyal-WowHub/AddonConfig","commit_stats":null,"previous_names":["eyal-wow-addons/settingsgenerator","eyal-wowhub/settingsgenerator","eyal-wowhub/addonconfig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FAddonConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FAddonConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FAddonConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FAddonConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eyal-WowHub","download_url":"https://codeload.github.com/Eyal-WowHub/AddonConfig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180923,"owners_count":20736460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lib","library","lua","world-of-warcraft","world-of-warcraft-addon","wow","wow-addon"],"created_at":"2025-02-04T13:03:26.515Z","updated_at":"2025-03-29T12:15:22.357Z","avatar_url":"https://github.com/Eyal-WowHub.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AddonConfig\n\nA library that generates addon settings from a template.\n\n#### Dependencies: [LibStub](https://www.curseforge.com/wow/addons/libstub), [Contracts](https://github.com/Eyal-WowHub/Contracts)\n\n### Examples:\n\n```lua\nlocal Config = LibStub(\"AddonConfig-1.0\")\n```\n\n#### Traditional Template\n\nThe following example demonstrates the traditional template structure for creating the settings:\n\n```lua\nlocal settings = {\n    name = \"AddonName\",\n    type = \"vertical-layout\",\n    props = {\n        {\n            name = \"Category 1\",\n            type = \"vertical-layout\",\n            props = {\n                {\n                    name = \"Click Me!\",\n                    type = \"button\",\n                    click = ClickHandler\n                }\n            }\n        },\n        {\n            name = \"Category 2\",\n            type = \"vertical-layout\",\n            props = {}\n        },\n        {\n            name = \"Category 3\",\n            type = \"vertical-layout\",\n            props = {}\n        }\n    }\n}\n\nlocal optionsID = Config:Generate(settings)\n```\n\n#### Simplified Template\n\nFor a more concise approach, you can use the following simplified template style, which produces the same results as the above:\n\n```lua\nlocal settings = {\n    {\n        name = \"AddonName\"\n    },\n    {\n        name = \"Category 1\",\n        layout = {\n            {\n                name = \"Click Me!\",\n                type = \"button\",\n                click = ClickHandler\n            }\n        }\n    },\n    {\n        name = \"Category 2\",\n        layout = {}\n    },\n    {\n        name = \"Category 3\",\n        layout = {}\n    }\n}\n\nlocal optionsID = Config:Generate(settings, \"vertical-style\")\n```\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyal-wowhub%2Faddonconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyal-wowhub%2Faddonconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyal-wowhub%2Faddonconfig/lists"}