Major structural reorganization and feature additions: ## Folder Reorganization - Move 17 luci-app-* packages to package/secubox/ (except luci-app-secubox core hub) - Update all tooling to support new structure: - secubox-tools/quick-deploy.sh: search both locations - secubox-tools/validate-modules.sh: validate both directories - secubox-tools/fix-permissions.sh: fix permissions in both locations - .github/workflows/test-validate.yml: build from both paths - Update README.md links to new package/secubox/ paths ## AppStore Migration (Complete) - Add catalog entries for all remaining luci-app packages: - network-tweaks.json: Network optimization tools - secubox-bonus.json: Documentation & demos hub - Total: 24 apps in AppStore catalog (22 existing + 2 new) - New category: 'documentation' for docs/demos/tutorials ## VHost Manager v2.0 Enhancements - Add profile activation system for Internal Services and Redirects - Implement createVHost() API wrapper for template-based deployment - Fix Virtual Hosts view rendering with proper LuCI patterns - Fix RPCD backend shell script errors (remove invalid local declarations) - Extend backend validation for nginx return directives (redirect support) - Add section_id parameter for named VHost profiles - Add Remove button to Redirects page for feature parity - Update README to v2.0 with comprehensive feature documentation ## Network Tweaks Dashboard - Close button added to component details modal Files changed: 340+ (336 renames with preserved git history) Packages affected: 19 luci-app, 2 secubox-app, 1 theme, 4 tools 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
38 lines
2.0 KiB
JavaScript
38 lines
2.0 KiB
JavaScript
'use strict';
|
|
'require view';
|
|
'require secubox-theme/theme as Theme';
|
|
'require auth-guardian.api as api';
|
|
|
|
return view.extend({
|
|
load: function() { return api.getOAuthProviders(); },
|
|
render: function(data) {
|
|
var providers = data.providers || [];
|
|
var icons = {google:'🔵',github:'⚫',facebook:'🔷',twitter:'🐦'};
|
|
var colors = {google:'#4285f4',github:'#333',facebook:'#1877f2',twitter:'#1da1f2'};
|
|
|
|
return E('div', {class:'cbi-map'}, [
|
|
E('link', { 'rel': 'stylesheet', 'href': L.resource('secubox-theme/secubox-theme.css') }),
|
|
E('h2', {}, '🔑 OAuth Providers'),
|
|
E('p', {style:'color:#94a3b8;margin-bottom:20px'}, 'Configure third-party authentication providers.'),
|
|
E('div', {style:'display:grid;gap:16px'}, [
|
|
['google', 'Google', 'Sign in with Google account'],
|
|
['github', 'GitHub', 'Sign in with GitHub account'],
|
|
['facebook', 'Facebook', 'Sign in with Facebook account'],
|
|
['twitter', 'Twitter/X', 'Sign in with Twitter account']
|
|
].map(function(p) {
|
|
var provider = providers.find(function(x) { return x.id === p[0]; });
|
|
var enabled = provider ? provider.enabled : false;
|
|
return E('div', {style:'background:#1e293b;padding:20px;border-radius:12px;display:flex;align-items:center;gap:16px'}, [
|
|
E('span', {style:'font-size:32px'}, icons[p[0]] || '🔐'),
|
|
E('div', {style:'flex:1'}, [
|
|
E('div', {style:'font-weight:600;color:#f1f5f9;font-size:16px'}, p[1]),
|
|
E('div', {style:'color:#94a3b8;font-size:13px'}, p[2])
|
|
]),
|
|
E('span', {style:'padding:6px 12px;border-radius:6px;font-weight:600;background:'+(enabled?'#22c55e20;color:#22c55e':'#64748b20;color:#64748b')}, enabled ? 'Enabled' : 'Disabled')
|
|
]);
|
|
}))
|
|
]);
|
|
},
|
|
handleSaveApply:null,handleSave:null,handleReset:null
|
|
});
|