mirror of
				https://github.com/livebook-dev/livebook.git
				synced 2025-10-31 07:46:18 +08:00 
			
		
		
		
	* Add initial user config modal * Assign user ids * Update session data to hold user ids * Get users list for specific ids * Render user avatar * User update * Refactor user changes * Subscribe to individual user updates * Show users in side panel * Add sidebar to homepage * Don't generate the same color twice in a row * Add documentation notes * Fix tests * Add tests * Keep users in session data * Rename color to hex_color
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Elixir
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Elixir
		
	
	
	
	
	
| defmodule LivebookWeb.Router do
 | |
|   use LivebookWeb, :router
 | |
|   import Phoenix.LiveDashboard.Router
 | |
| 
 | |
|   pipeline :browser do
 | |
|     plug :accepts, ["html"]
 | |
|     plug :fetch_session
 | |
|     plug :fetch_live_flash
 | |
|     plug :put_root_layout, {LivebookWeb.LayoutView, :root}
 | |
|     plug :protect_from_forgery
 | |
|     plug :put_secure_browser_headers
 | |
|   end
 | |
| 
 | |
|   pipeline :auth do
 | |
|     plug LivebookWeb.AuthPlug
 | |
|     plug LivebookWeb.UserPlug
 | |
|   end
 | |
| 
 | |
|   scope "/", LivebookWeb do
 | |
|     pipe_through [:browser, :auth]
 | |
| 
 | |
|     live "/", HomeLive, :page
 | |
|     live "/home/user-profile", HomeLive, :user
 | |
|     live "/home/import/:tab", HomeLive, :import
 | |
|     live "/home/sessions/:session_id/close", HomeLive, :close_session
 | |
|     live "/sessions/:id", SessionLive, :page
 | |
|     live "/sessions/:id/user-profile", SessionLive, :user
 | |
|     live "/sessions/:id/shortcuts", SessionLive, :shortcuts
 | |
|     live "/sessions/:id/settings/runtime", SessionLive, :runtime_settings
 | |
|     live "/sessions/:id/settings/file", SessionLive, :file_settings
 | |
|     live "/sessions/:id/cell-settings/:cell_id", SessionLive, :cell_settings
 | |
|     live "/sessions/:id/cell-upload/:cell_id", SessionLive, :cell_upload
 | |
|     get "/sessions/:id/images/:image", SessionController, :show_image
 | |
| 
 | |
|     live_dashboard "/dashboard", metrics: LivebookWeb.Telemetry
 | |
|   end
 | |
| 
 | |
|   scope "/authenticate", LivebookWeb do
 | |
|     pipe_through :browser
 | |
| 
 | |
|     get "/", AuthController, :index
 | |
|     post "/", AuthController, :authenticate
 | |
|   end
 | |
| end
 |