Skins support
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
// This file will be loaded on all pages, regardless of theme.
|
||||
|
||||
import { start } from 'rails-ujs';
|
||||
import 'font-awesome/css/font-awesome.css';
|
||||
|
||||
require.context('images/', true);
|
||||
|
||||
start();
|
||||
|
@@ -3,6 +3,8 @@
|
||||
const { length } = require('stringz');
|
||||
const { delegate } = require('rails-ujs');
|
||||
|
||||
import { processBio } from 'themes/glitch/util/bio_metadata';
|
||||
|
||||
delegate(document, '.account_display_name', 'input', ({ target }) => {
|
||||
const nameCounter = document.querySelector('.name-counter');
|
||||
|
||||
@@ -35,3 +37,7 @@ delegate(document, '#account_header', 'change', ({ target }) => {
|
||||
|
||||
header.style.backgroundImage = `url(${url})`;
|
||||
});
|
||||
|
||||
delegate(document, '#user_setting_theme', 'change', ({ target }) => {
|
||||
target.form.submit();
|
||||
});
|
||||
|
@@ -4,7 +4,9 @@ pack:
|
||||
about:
|
||||
admin: admin.js
|
||||
auth:
|
||||
common: common.js
|
||||
common:
|
||||
filename: common.js
|
||||
stylesheet: true
|
||||
embed: embed.js
|
||||
error:
|
||||
home:
|
||||
|
Reference in New Issue
Block a user