Fork of nextcloud/integration_mastodon v5.2.0 (6a56211), AGPL-3.0, with
upstream copyright notices and CHANGELOG preserved unchanged.
Rebranded: app ID, namespace, dashboard widgets, reference provider, icon
component, search provider IDs and every user-facing string. GoToSocial
calls them posts, not toots, and its mascot is a sloth.
Deliberately NOT rebranded: MastodonAPIService, MastodonAPIController,
route names and config keys. They speak the Mastodon client API, which is
what GoToSocial implements -- renaming them would make the code claim a
protocol that does not exist, and would make this fork expensive to rebase
on future upstream releases.
Translations are inherited. Strings reworded by the rebrand fall back to
English; the rest still work in all 124 locales.
Assisted-by: Claude Code:claude-opus-5
41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
const path = require('path')
|
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
|
const ESLintPlugin = require('eslint-webpack-plugin')
|
|
const StyleLintPlugin = require('stylelint-webpack-plugin')
|
|
|
|
const buildMode = process.env.NODE_ENV
|
|
const isDev = buildMode === 'development'
|
|
webpackConfig.devtool = isDev ? 'cheap-source-map' : 'source-map'
|
|
|
|
webpackConfig.stats = {
|
|
colors: true,
|
|
modules: false,
|
|
}
|
|
|
|
const appId = 'integration_gotosocial'
|
|
webpackConfig.entry = {
|
|
personalSettings: { import: path.join(__dirname, 'src', 'personalSettings.js'), filename: appId + '-personalSettings.js' },
|
|
adminSettings: { import: path.join(__dirname, 'src', 'adminSettings.js'), filename: appId + '-adminSettings.js' },
|
|
dashboardHome: { import: path.join(__dirname, 'src', 'dashboardHome.js'), filename: appId + '-dashboardHome.js' },
|
|
dashboard: { import: path.join(__dirname, 'src', 'dashboard.js'), filename: appId + '-dashboard.js' },
|
|
popupSuccess: { import: path.join(__dirname, 'src', 'popupSuccess.js'), filename: appId + '-popupSuccess.js' },
|
|
socialsharing: { import: path.join(__dirname, 'src', 'socialsharing.js'), filename: appId + '-socialsharing.js' },
|
|
}
|
|
|
|
webpackConfig.plugins.push(
|
|
new ESLintPlugin({
|
|
extensions: ['js', 'vue'],
|
|
files: 'src',
|
|
failOnError: !isDev,
|
|
configType: 'eslintrc',
|
|
})
|
|
)
|
|
webpackConfig.plugins.push(
|
|
new StyleLintPlugin({
|
|
files: 'src/**/*.{css,scss,vue}',
|
|
failOnError: !isDev,
|
|
}),
|
|
)
|
|
|
|
module.exports = webpackConfig
|