mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
User profile pages (favorites, created content, recent activity, security & access) (#1615)
* Super * User profile page * Fixing python style * Python unit tests * Touchups and js tests * Addressing comments
This commit is contained in:
committed by
GitHub
parent
5ae98bc7c9
commit
7e1852ee88
22
superset/assets/javascripts/profile/index.jsx
Normal file
22
superset/assets/javascripts/profile/index.jsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Badge, Col, Label, Row, Tabs, Tab, Panel } from 'react-bootstrap';
|
||||
|
||||
import App from './components/App';
|
||||
|
||||
const $ = window.$ = require('jquery');
|
||||
/* eslint no-unused-vars: 0 */
|
||||
const jQuery = window.jQuery = $;
|
||||
require('bootstrap');
|
||||
require('./main.css');
|
||||
|
||||
|
||||
const profileViewContainer = document.getElementById('app');
|
||||
const bootstrap = JSON.parse(profileViewContainer.getAttribute('data-bootstrap'));
|
||||
|
||||
const user = bootstrap.user;
|
||||
|
||||
ReactDOM.render(
|
||||
<App user={user} />,
|
||||
profileViewContainer
|
||||
);
|
||||
Reference in New Issue
Block a user